Commit Graph

3952 Commits

Author SHA1 Message Date
Alexey Neyman
973664c906 Forgot to saveconfig the changes for ARM/elf2flt sample
Hence, it is better to enforce via config rules: elf2flt does not
play nice with ld wrapper, when both ld.bfd and ld.gold are present.
Limit the choices to just 'ld.bfd' for flat-format architectures.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 21:21:57 -08:00
Alexey Neyman
df555a65db Merge pull request #580 from stilor/arm-elf2flt
ARM with arch suffix -  elf2flt fix
2017-02-08 23:19:02 -08:00
Alexey Neyman
308c6b9a14 Add a contrived ARM with elf2flt sample
... that exhibited the issue with elf2flt configuration. Original reported
did not provide the config, and did not respond.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-07 00:36:51 -08:00
Carlos Santos
755de234cb elf2flt: use CT_ARCH to set target CPU, not CT_TARGET
CT_TARGET is composed as "${CT_ARCH}${CT_ARCH_SUFFIX}", so CT_TARGET may
become something like "armv7", for example. This is used by the configure
script to set the "CPU" variable in the Makefile, leading to a commad line
containing

    -DTARGET_armv7 -DTARGET_CPU="armv7"

In this case the compilation of elf2flt.c fails with "Don't know how to
support your CPU architecture??". Passsing "CPU=${CT_ARCH}" in the make
command line overrides the configured value and solves the problem.

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
2017-02-06 22:20:21 -08:00
Alexey Neyman
18775775e5 Merge pull request #577 from stilor/enable-wchar-in-a-sample
Enable WCHAR in a sample
2017-02-06 22:10:15 -08:00
Alexey Neyman
9cd1fa128d Merge pull request #578 from stilor/elf2flt-pickup-zlib-fix
Pick up upstream fixes in elf2flt
2017-02-06 22:10:08 -08:00
Alexey Neyman
82975ae7b0 Merge pull request #579 from stilor/arch-32-warning
Remove "pre-declaration" of config options
2017-02-06 22:09:58 -08:00
Alexey Neyman
431821741f Remove "pre-declaration" of config options
... these are apparently not needed with the current kconfig and only
result in warnings like "SYMBOL changed state" and "reassigning SYMBOL".

Perhaps, it was necessary to run kconfig without first generating
config.gen? But now all the targets that invoke $(CONF) have
`config_files` as a dependency.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-06 15:15:41 -08:00
Alexey Neyman
acd6066bee Pick up upstream fixes
... including zlib fix in configure, needed to build canadian crosses
with elf2flt.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-06 12:42:10 -08:00
Alexey Neyman
2db8d4400c Enable WCHAR in a sample
... needed to build canadian cross on top of it.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-06 12:03:42 -08:00
Alexey Neyman
46bfc8a4dc Merge pull request #575 from stilor/ncurses-configure
Allow some tunables for ncurses
2017-02-06 00:04:33 -08:00
Alexey Neyman
ee12992547 Merge pull request #576 from stilor/update-kernel-libc
Update kernel & glibc
2017-02-06 00:03:59 -08:00
Alexey Neyman
a459a33936 Merge pull request #574 from stilor/uclibc-obstack
3 unrelated uClibc changes, see individual commits
2017-02-05 20:42:02 -08:00
Alexey Neyman
df7579f205 Merge pull request #573 from stilor/add-libz-companion-lib
Add zlib as a companion lib
2017-02-05 20:41:46 -08:00
Alexey Neyman
8995bb66f0 Update to most recent kernels
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-05 16:10:53 -08:00
Alexey Neyman
e69734cb12 Add glibc 2.25
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-05 16:10:40 -08:00
Alexey Neyman
71dccfffbb Add a canadian elf2flt sample
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-05 14:26:09 -08:00
Alexey Neyman
fed6287bfa Patch elf2flt to link libz last
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-05 14:26:09 -08:00
Alexey Neyman
d91277e377 Add zlib as a companion lib
with version 1.2.11.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-05 14:26:02 -08:00
Alexey Neyman
ef841ea312 Allow some tunables for ncurses
- Allow user to specify configure arguments to pass through to host/target
ncurses.
- Checkbox for --disable-database
- String option for --with-fallbacks

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-05 14:20:01 -08:00
Alexey Neyman
df68f203b4 Use 'make olddefconfig' in uClibc/uClibc-ng configuration
instead of 'make oldconfig' and responding 'y'. This avoids 'Broken pipe'
errors in the log, as well as selects default setting for all options not
explicitly set.

This requires a small fix in the old uClibc. Won't have to maintain that fix
for long though :)

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-04 21:16:10 -08:00
Alexey Neyman
344d324d19 Obsolete uClibc 0.9.33.2
It has not seen any new commits since July 2015, and haven't had any
releases since May 2012.

The only two architectures marked as supported by uClibc but not by
uClibc-ng are v850 and i960. Both are marked as "BROKEN" in the most
recent release of uClibc, 0.9.33.2.

RIP, uClibc.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-04 12:18:52 -08:00
Alexey Neyman
1007349456 Remove OBSTACK from uclibc-ng config
It has been (incompletely) removed since 1.0.21.

Requested-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-04 11:26:15 -08:00
Alexey Neyman
10db7887ce Merge pull request #572 from stilor/uclibc-1.0.22
Uclibc 1.0.22
2017-02-03 11:57:36 -08:00
Alexey Neyman
44ee21b342 Merge pull request #570 from stilor/configure-check-cpp-python
Check for C++ in configure
2017-02-03 11:57:21 -08:00
Alexey Neyman
295381ab7a Merge pull request #571 from stilor/issue-569
Require C++ support for gdbserver 7.12 or newer
2017-02-03 11:57:07 -08:00
Alexey Neyman
39e880f594 Add a sample config.
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-03 00:10:48 -08:00
Alexey Neyman
623fdf15a6 Add support for AArch64 in uClibc-ng
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-02 23:37:57 -08:00
Alexey Neyman
a13e5b57c7 Add uClibc-ng 1.0.22
... and declare 1.0.21 obsolete.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-02 23:03:03 -08:00
Alexey Neyman
26ce9942a3 Require C++ support for gdbserver 7.12 or newer.
Also, do not select gdbserver for cross-gdb automatically, or it may
be selected even without meeting the dependencies (if C++ is not enabled)

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-02 18:06:28 -08:00
Alexey Neyman
df80f4e69d Check for C++ in configure
Recent GMP/GCC/GDB releases require c++.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-02 16:39:23 -08:00
Alexey Neyman
1baddb19ee Merge pull request #567 from stilor/fix-build-manuals
Fix build manuals
2017-01-30 12:48:47 -08:00
Alexey Neyman
51bedaf27e Merge pull request #566 from stilor/fix-gentoo-hang
Fix gentoo hang
2017-01-30 12:48:25 -08:00
Alexey Neyman
c83335c5a3 Use 'make install' to install DUMA
This serves two purposes:
- installs its manpage
- installs headers, without them it does not make sense to install a
static library

Unfortunately, there's no way to select shared-only build of DUMA.
Hence, disable selection for static library.

Also, allow user to select whether to use stock or ct-ng's wrapper.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-30 12:11:37 -08:00
Alexey Neyman
bd318e886b Fix installation of manuals for binutils
It was running 'make gas ld ...', which was succeeding, but didn't install
anything.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-30 12:11:37 -08:00
Alexey Neyman
6c9e949ae3 Fix location where libc manual is built
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-30 12:11:37 -08:00
Alexey Neyman
7d1b203d06 Add install wrapper
... to work around Gentoo's wrapper idiosyncrasy.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-30 12:10:47 -08:00
Alexey Neyman
a08a4c4b88 Allow for per-tool templates when creating overrides
... will be used to implement a smarter install wrapper.

While there, correct the spelling of "OVERIDE".

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-30 12:10:47 -08:00
Alexey Neyman
a78dc93b64 Merge pull request #568 from stilor/bump-autoconf-req-2.65
Bump autoconf requirement to 2.65

Trivial, merged immediately.
2017-01-29 21:40:43 -08:00
Alexey Neyman
30c91131a1 Bump autoconf requirement to 2.65
Required by automake 1.15.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-29 21:39:44 -08:00
Alexey Neyman
c6d8554332 Merge pull request #565 from stilor/enable-mingw-tools-fortran
Enable Fortran & tools in x86_64-w64-mingw
2017-01-29 21:20:49 -08:00
Alexey Neyman
d2bf553656 Enable Fortran & tools in x86_64-w64-mingw
... both were recently a source of bug that didn't manifest on *-linux-*

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-28 13:35:55 -08:00
Alexey Neyman
5b084c005b Merge pull request #564 from stilor/comptools-default-to-y-if-missing
Rework configure logic wrt GNU autotools
2017-01-28 13:34:14 -08:00
Alexey Neyman
d0682f9ad5 Merge pull request #563 from stilor/musl-mips-refix
Add a workaround for musl in build scripts
2017-01-28 13:33:43 -08:00
Alexey Neyman
7a94c81e5b Rework configure logic wrt GNU autotools
Rather than requiring them of a certain version, detect if they are present
(and have sufficient version) and select an appropriate companion tool
otherwise. The reason is that, for example, most recent gettext requires
automake 1.15, but the newest available CentOS has 1.13. Hence, the option
to "upgrade your system" does not apply, and the warning comment above
the companion tools is rather scary.

With this approach, it will work out of the box - either by using the host's
tools, or by building them as needed. Note that the user can still change
the setting in the config.

While there, propagate the new version checking macro to awk/bash/host binutils,
and switch from --with-foo=xxx to officially blessed FOO=xxx: the latter
does not require checking for bogus values (i.e., --with-foo, --without-foo)
and AC_PROG_* macros recognize the corresponding settings without further
modifications. For now, I kept --with-foo=, if only to complain and steer
people to the new way. To be cleaned up after a release.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-27 20:40:47 -08:00
Alexey Neyman
d7b043e360 Create <sgidefs.h> if MUSL doesn't create one
Document the status quo and work around for mips-musl.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-26 13:50:18 -08:00
Alexey Neyman
675f7bfa4e Remove previous patch to strace
GDB maintainers said, <sgidefs.h> must be provided by C library.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-26 13:37:52 -08:00
Alexey Neyman
0636034688 Merge pull request #562 from stilor/binutils-patch
Add binutils 2.27 patch
2017-01-26 13:34:28 -08:00
Alexey Neyman
a36a5893b2 Merge pull request #551 from stilor/obsolete-versions
Obsolete versions
2017-01-26 13:34:19 -08:00
Alexey Neyman
8f267b77ae Fix glibc build with GCC5/6.
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-26 12:19:49 -08:00