Commit Graph

4193 Commits

Author SHA1 Message Date
Alexey Neyman
2f052394a5 Merge pull request #596 from stilor/sed-vs-gsed
Determine whether -E/-r option selects extended regexp
2017-02-15 20:36:39 -08:00
Alexey Neyman
07e03aed8c Skip gettext/libiconv on linux-gnu
Previous version by Ray Donnelly was skipping them for all *linux*.
This skips it for GLIBC only.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-14 22:45:56 -08:00
Alexey Neyman
7bcf18bfab Determine whether -E/-r option selects extended regexp
... and then use the right option. See the note in scripts/functions
on where we should use ${foo} and where just 'foo'; this boils down to
whether we can expect the build tools override to be in effect (e.g. in
the actual build scripts) or not (i.e. outside of scripts/build).
While running in scripts/functions, or in scripts/crosstool-NG.sh the
build tools override directory (.build/tools/bin) may have not been
set up (yet, or at all).

Also, modify the installed scripts (populate, xldd) accordingly.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-13 22:47:40 -08:00
Alexey Neyman
fbc6932308 Merge pull request #594 from stilor/wget-vs-curl
Select wget vs curl, BSD stat vs GNU stat
2017-02-13 22:45:45 -08:00
Alexey Neyman
c440a13a82 Merge pull request #595 from stilor/binutils-mutextattr
Backport mutextattr typo fix to 2.24 and 2.23.2
2017-02-13 21:20:52 -08:00
Alexey Neyman
f9bec4ed7c stat: determine whether it is BSD or GNU flavor
Seems like MacOS may have either in the path.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-12 22:02:28 -08:00
Alexey Neyman
41ba1d99c8 Update config.{guess,sub} while testing curl
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-12 22:02:28 -08:00
Alexey Neyman
35f89c4064 Detect both wget/curl and allow user to select the agent
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-12 22:02:23 -08:00
Alexey Neyman
6f7c83fc3d Merge pull request #593 from dflogeras/fix-toolchain-typo
Fix typo in toolchain.in
2017-02-12 14:44:49 -08:00
Dave Flogeras
0aa0701fcd Fix typo in toolchain.in
Signed-off-by: Dave Flogeras <dflogeras2@gmail.com>
2017-02-12 17:47:33 -04:00
Alexey Neyman
8bef083201 Backport mutextattr typo fix to 2.24 and 2.23.2
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-12 11:40:22 -08:00
Alexey Neyman
c31ed45a65 Merge pull request #589 from stilor/skip-complibs-check-on-host-canadian
Skip complibs check on host for canadian
2017-02-12 11:19:31 -08:00
Alexey Neyman
5676c72d52 Merge pull request #590 from stilor/cygwin-old-gcc-glibc
Fix Cygwin build of old gcc and glibc
2017-02-12 11:19:18 -08:00
Alexey Neyman
7b86176b77 Backport -fPIC patch for Cygwin
Original patch by: Ray Donnelly <mingw.android@gmail.com>
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-11 16:59:43 -08:00
Alexey Neyman
39e77a3d34 Propagate Cygwin stat64 patch to 2.21 and older versions
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-11 16:35:28 -08:00
Alexey Neyman
b620a5faae Remove linux patches for R_X86_64_JUMP_SLOT
'relocs' is no longer built when installing the headers.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-11 16:21:54 -08:00
Alexey Neyman
5415d7ab62 Add host configuration for cygwin64
... backported from newer GCC releases.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-11 16:20:59 -08:00
Alexey Neyman
7e6392a872 Remove 'relocs' from archscripts being built
... it is not needed to install headers and causes build failures
in more than one setup (cygwin, macos).

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-11 16:20:53 -08:00
Alexey Neyman
c8e8281533 Skip comp.libs checking on host for canadian
... they all want to run the binaries they produced, which fails
when build!=host.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-11 12:49:48 -08:00
Alexey Neyman
7dfae65ce9 Make zlib's 'make check' actually fail if test fails
Upstream: https://github.com/madler/zlib/pull/225

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-11 12:14:33 -08:00
Alexey Neyman
57e1e7e742 Merge pull request #587 from stilor/select-uclibceavi-suffix
Allow one to select uclibceabi/uclibcgnueabi suffix
2017-02-10 23:55:47 -08:00
Alexey Neyman
4d49730711 Merge pull request #586 from stilor/restore-old-kernel-libc
Restore old kernel/glibc versions
2017-02-10 23:55:33 -08:00
Alexey Neyman
93db580091 Merge pull request #584 from stilor/disallow-gold-for-elf2flt
Require BFD linker if building for flat format
2017-02-10 23:55:16 -08:00
Alexey Neyman
e6a748c06a Merge pull request #585 from stilor/disable-cxx-gdb
Supply --disable-build-with-cxx instead of requiring C++
2017-02-10 23:54:50 -08:00
Alexey Neyman
3eed0ca096 Merge pull request #582 from elimisteve/patch-1
README.md typo: archictecture -> architecture
2017-02-10 00:45:04 -08:00
Steve Phillips
b1b128158f README.md typo: archictecture -> architecture
Signed-off-by: Steve Phillips <steve@tryingtobeawesome.com>
2017-02-10 00:32:41 -08:00
Alexey Neyman
0468f8daf1 Allow one to select uclibceabi/uclibcgnueabi suffix
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 23:48:56 -08:00
Alexey Neyman
5920157fdd Supply --disable-build-with-cxx instead of requiring C++
... when building native GDB/gdbserver.

Suggested by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 22:14:36 -08:00
Alexey Neyman
a41978b95a Remove wrapping if in 300-gdb.sh
If GDB is turned off, the script will not be even sourced. Otherwise,
if GDB checkbox is set but none of the cross/native/gdbserver are
selected, debug.sh gives a bogus error message.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 21:21:57 -08:00
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
4ccbf49d11 Add a patch to build 2.15 for ARM
Fix from upstream.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 18:05:36 -08:00
Alexey Neyman
cc3432c4d6 Add notes about obsoletion policy for kernel/glibc.
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 18:05:36 -08:00
Alexey Neyman
5273394f55 Ports patches for glibc 2.12.1 .. 2.16
Add patches for versions that didn't have them - patches updated/retired
as necessary.

Also, disallow 2.12.2 for architectures in ports - this version did not have
ports addon.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 18:05:36 -08:00
Claus Strasburger
b5dc6e6c26 backport support patch for gcc 5 to glibc 2.13 arm ports
Signed-off-by: Claus Strasburger <claus@strasburger.de>
2017-02-09 18:05:36 -08:00
Alexey Neyman
7ba7707959 Add Ubuntu {12.04,14.04,16.04} configs.
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 18:05:36 -08:00
Alexey Neyman
01ce37fa09 Add CentOS6/7 sample configs
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 18:05:36 -08:00
Alexey Neyman
3582f42858 Fix typo
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 18:05:36 -08:00
Alexey Neyman
5e0b489b12 External addons supported by glibc even now
... though none are provided by default.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 18:05:36 -08:00
Alexey Neyman
ac4a37c8c4 Revert "patches: remove obsolete glibc patches"
This partially reverts commit 429b3e8846.

Bring back the patches for glibc 2.12 and newer. Propagate/refresh
some patches as needed.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 18:05:36 -08:00
Alexey Neyman
fb6fe0d70b Revert "glibc: Clean out old glibc versions"
This partially reverts commit 88e8852ccd.

Bring back releases 2.12 and newer of glibc, along with the associated
Kconfig machinery. Simplify it slightly.
2017-02-09 18:05:36 -08:00
Alexey Neyman
f6ef2be9f3 Revert "glibc: Remove support for downloading and extracting add-ons"
This reverts commit 39273e0843.
2017-02-09 18:05:36 -08:00
Alexey Neyman
e2110b21c8 Add older kernel versions up to 2.6.32.x
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-09 18:05:36 -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