summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2013-01-28scripts: fix finishing the toolchain when download/extract-only is setYann E. MORIN"1-2/+7
In case we only download or extract the sources, do not fail while finishing the toolchain: the test-suite directory may not exist, so we can't chmod it. Also, use safer constructs that won't trigger the 'set -e' in case of failure (eg.: "[ ... ] && ..." is not safe in case the test fails). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-27script: allow to pass any float value for CT_LOADSamuel Martin1-1/+1
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Message-Id: <b51acf21c72b4a8e882e.1359320015@laptop> Patchwork-Id: 216062
2013-01-20arch: allow adding a suffix to the arch-part of a tupleYann E. MORIN"12-18/+15
For some architectures, it is legit to have an alternate value in the 'architecture' part of the tuple. For example: armv5te-* armv7a8-* Besides, some packages expect the tuple to reflect the arch variant (eg. openMPI) to detect the variant's capabilities (eg. atomic primitives). This patch adds an option for the user to specify a suffix to be added to the arch-part of the tuple. Signed-off-by: Willy Tarreau <w@1wt.eu> Message-ID: <20130120225822.GS6838@1wt.eu> Patch-Id: 213994 [yann.morin.1998@free.fr: make it a suffix, not an override] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-10scripts: woops, root's UID is 0, not 1000!Yann E. MORIN"1-1/+1
Left-over from a test... :-( Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-10scripts: check for running as rootYann E. MORIN"1-0/+8
Running as root is really, really dangerous. Add a runtime-check that refuses to build if running as root. Can be overriden with a double switch in the menuconfig. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-10libc: get rid of libc_finishYann E. MORIN"7-25/+0
At long last, we no longer have any libc that requries a libc_finish. Yeah! Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-10libc/newlib: install AVR32 headers during the start-files-and-headers phaseYann E. MORIN"1-9/+11
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-09arch/arm: add option to use *eabihf tuplesYann E. MORIN"1-0/+4
Toolchains that use the hard-float ABI now are to be denoted by a tuple ending in *eabihf, while the prevbious *eabi is now an indication that the toolchain uses the softfloat ABI. This is purely a cosmetic thing, for distros to differentiate their hardfloat-ABI ports from their softfloat-ABI ports. (note: softfloat ABI does not mean that it is using softfloats; it can be using hardfloat instructions, but using the softfloat ABI). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-09scripts: update config.{guess,sub}Yann E. MORIN"2-39/+37
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-27scripts/addToolsVersion: handle elf2fltYann E. MORIN"1-0/+1
The one was missing from the list. It is very improbable that we ever need it, as elf2flt does no release, and we always get it from CVS head. But for the sake of consistency, we just add it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-27scripts/addToolsVersion: properly handle .in vs. .in.2Yann E. MORIN"1-22/+19
While most components have their version in the .in file, some have it in the .in.2 (eg. elf2flt). Currently, to handle this case, we indiscriminately munge both files, but this is wrong: in the elf2flt case, if we add a binutils version, we do not want it to be added to elf2flt, and conversely. So, for each tool, we need to explicitly know what file to munge. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-26script/addToolsVersion: fix eglibc version separatorYann E. MORIN"1-2/+2
eglibc uses '_', not '.' to separate major/minor. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-26libc/glibc: both glibc and eglibc have pkgversion and bugurlYann E. MORIN"1-4/+2
Well, all eglibc version we support do, and latest glibc versions we support do. Not all glibc versions do, but older versions simply ignore the unrecognised ./configure flags. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-26libc/eglibc: remove now superfluous config knobsYann E. MORIN"1-10/+2
All eglibc versions we now have support pkgversion and bugurl. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-26libc/glibc: always enable obsolete RPCYann E. MORIN"1-4/+2
Since unrecognised ./configure flags are simply ignored, we can always pass --enable-obsolete-rpc. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-06scripts/showTuple: fix stdoutYann E. MORIN"1-2/+2
Since we've had the debug shell feature, fd #7 is now used to redirect stderr, while it was previously unused. Use fd #9 to redirect stdout. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-09complibs/ppl: fix build with newer gccYann E. MORIN"1-2/+14
ppl-0.10.x does not build with gcc-4.6+, as it uses constructs that were warnings with gcc-4.5 and before, but are now errors with gcc-4.6 and above. Fix that by passing -fpermissive in CFLAGS for ppl 0.10. Reported-by: Jeremy Rosen <jeremy.rosen@openwide.fr> Reported-by: Peter Korsgaard <jacmet@uclibc.org> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-05scripts/xldd: use user's sed and grepYann E. MORIN"1-2/+2
xldd uses sed and grep as detected by ./configure. This works well if is used on the machine that build the toolchain. But if the user moves the toolchain to another machine where sed and grep are not in the same directory (eg. /bin/sed vs. /usr/bin/sed), then xldd will stop functionning. Fix that by using ${SED} and ${GREP} if they are set in the environment. Reported-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-11-25cc/gcc: do not print 'core' or 'final'Yann E. MORIN"1-6/+6
In gcc-'s core and final passes, do not print 'core' or 'final' in log messages. We already print it in step messages. Also, as we use the core backend to build the bare-metal final gcc, it can be disturbing to read 'core' while we're in fact in 'final'. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-11-22cc: add a flag for skipping core passesYann Diorcet1-0/+8
It is used for skipping unnecessary compilation steps when the libc doesn't need to be compiled (eg. when we do not use a C library). Signed-off-by: Yann Diorcet <diorcet.yann@gmail.com> Message-Id: <150eadb0117e697d79aa.1353625025@blackmint> Patchwork-Id: 201222
2012-11-22scripts/functions: fix debug-shellYann E. MORIN"1-9/+13
Properly catch resuming the build when continuing past the failed command. The 'case ;;&' construct is a bash4ism. Get rid of it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-11-21scripts: refine static linking check to better guide the userDaniel Price1-15/+36
The current mechanism to check if static linking is possible, and the mesage displayed on failure, can be puzzling to the unsuspecting user. Also, the current implementation is not using the existing infrastructure, and is thus difficult to enhance with new tests. So, switch to using the standard CT_DoExecLog infra, and use four tests to check for the host compiler: - check we can run it - check it can build a trivial program - check it can statically link that program - check if it statically link with libstdc++ That should cover most of the problems. Hopefully. (At the same time, fix a typo in a comment) Signed-off-by: Daniel Price <daniel.price@gmail.com> [yann.morin.1998@free.fr: split original patch for self-contained changes] [yann.morin.1998@free.fr: use steps to better see gcc's output] [yann.morin.1998@free.fr: commit log] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <163f86b5216fc08c672a.1353459722@nipigon.dssd.com> Patchwork-Id: 200536
2012-11-21scripts: fail on ':' in pathsDaniel Price1-0/+3
Signed-off-by: Daniel Price <daniel.price@gmail.com> [yann.morin.1998@free.fr: split original patch for self-contained changes] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <163f86b5216fc08c672a.1353459722@nipigon.dssd.com> Patchwork-Id: 200536
2012-11-19binutils: introduce the infrastructure to support binutils alternativesYann Diorcet3-154/+92
Rework binutils in order to provide soon binutils alternative. Signed-off-by: Yann Diorcet <diorcet.yann@gmail.com> [yann.morin.1998@free.fr: split up original patch for self-contained changes] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <d3d1d51f399e6d2c1163.1353320546@macbook-smorlat.local> Patchwork-Id: 199971
2012-11-16scripts: add BUILD/HOST extra cflags/ldflagsYann Diorcet10-14/+83
On some hosts, and for certain toolchains (eg. toolchain targetting the upcoming Darwin), it may be necessary to pass arbitrary CFLAGS and/or LDFLAGS when building the components. And necessary infrastructure: - EXTRA_{CFLAGS,LDFLAGS}_FOR_{BUILD,HOST} as config options - pass those extra flags to components Fix-up a slight typo in elf2flt at the same time (misnamed cflags). Signed-off-by: Yann Diorcet <diorcet.yann@gmail.com> Message-Id: <d24043276c9243a35421.1353077450@macbook-smorlat.local> Patchwork-Id: 199645
2012-11-19scripts: unquoted variable reference in glibc-eglibc.sh-commonDaniel Price1-1/+1
Signed-off-by: Daniel Price <daniel.price@gmail.com> Message-Id: <12f092a95a94bcf76912.1353367250@redfish.dssd.com> Patchwork-Id: 200215
2012-11-19binutils/sstrip: removeYann Diorcet2-46/+0
sstrip has been obsoleted for a while now, as it's still broken for some archs, and there seems to be no incentive to fix it upstream. Besides, the space gained with sstrip is marginal at best. Signed-off-by: Yann Diorcet <diorcet.yann@gmail.com> Message-Id: <65c8bf534d0647ce52cd.1353320545@macbook-smorlat.local> Patchwork-Id: 199970
2012-11-16complibs: introduce generic multi-complibs infrastructureYann Diorcet (diorcet yann8-18/+42
Use the same method as companion tools for providing generic and extendable companion libs. Signed-off-by: Yann Diorcet <diorcet.yann@gmail.com> Message-Id: <515c5c4635d99ebe4877.1353074410@macbook-smorlat.local> Patchwork-Id: 199613
2012-11-14libc/mingw: replace mingw32 with generic mingwYann Diorcet3-150/+72
Replace the 32-bit-only mingw32 with mingw-w64 that is capable of building toolchains for both 32-bit and 64-bit Windows. kernel/mingw: replace mingw32 with generic Windows kernel/windows: New windows kernel supporting 32 and 64 bit arch libc/mingw: Remove old options patches: Remove old mingw libc options' patches Signed-off-by: "Yann Diorcet" <diorcet.yann@gmail.com> [yann.morin.1998@free.fr: array var in libc/mingw.sh, typos] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <b045ac08fc9eac2e5ee3.1352898499@blackmint> Patchwork-Id: 198901
2012-11-13scripts: set default CFLAGS to optimise.Michael Hope1-1/+3
The extra CFLAGS override the product defaults, causing the product to be built without optimisation or debug. Be explicit and add these in. Reported-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: Michael Hope <michael.hope@linaro.org> Message-Id: <CANLjY-=3Gbio6nzUPhhevDHV7cUN=6Vigooe9nSf-RnGCqnjog@mail.gmail.com> Patchwork-Id: 198808
2012-11-02libc/eglibc: enable rpc in eglibc-2.16+Johannes Stezenbach1-0/+4
While eglibc-2.16 recommends to use TI-RPC instead of the old sunrpc, the old one can be included using a configure option. Since the user can still use TI-RPC to override the libc implementation, we enable rpc unconditionally. Signed-off-by: Johannes Stezenbach <js@sig21.net> Message-Id: <20121102140404.GA7707@sig21.net> Patchwork-Id: 196564
2012-11-07scripts/xldd: fix debug output layoutYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-10-31libc/uClibc: remove use of snapshots and specific dateYann E. MORIN"1-15/+7
We now have the ability to use a custom location, so supporting snapshots or custom date is no longer needed. Let the user do the required preparation in this case. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-10-11libc/uClibc: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustomDavid Holsgrove1-1/+11
CUSTOM_LOCATION config options only presented in menuconfig if component CUSTOM version selected. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> [yann.morin.1998@free.fr: fix indentation, don't patch custom dir location] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <712995e3e719fbbe24af.1349931201@localhost.localdomain> PatchWork-Id: 190794
2012-10-30scripts/functions: fix endless loop in debug-shell with IO redirectionJohannes Stezenbach1-2/+3
CT_DEBUG_INTERACTIVE is disabled when stdin, stdout or stderr are redirected, but the check is only done at the start of the build and doesn't catch when individual build commands use redirection. When stdin is redirected it will cause the debug shell to exit immediately, causing and endless loop. Thus, save the stdin/our/err file handles and restore them before invoking the debug shell. Signed-off-by: Johannes Stezenbach <js@sig21.net> Message-Id: <20121030102225.GA8303@sig21.net> Patchwork-Id: 195409
2012-10-30scripts/functions: use patch -i instead of IO redirectionJohannes Stezenbach1-2/+1
This makes the patch name show up on the command line logged by CT_DoExecLog so it's easier to see what is going on. The -i for patch is specified by Posix and supported by GNU patch and busybox patch. Signed-off-by: Johannes Stezenbach <js@sig21.net> [yann.morin.1998@free.fr: remove now-useless debug message] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <20121030103620.GB8303@sig21.net> Patchwork-Id: 195418
2012-10-30libc/newlib: remove getting from CVSYann E. MORIN"1-21/+7
We now have the ability to use a custom local directory/tarball, so it no longer makes sense to have the ability to use the CVS repository. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-10-11libc/newlib: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustomDavid Holsgrove1-1/+10
CUSTOM_LOCATION config options only presented in menuconfig if component CUSTOM version selected. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> [yann.morin.1998@free.fr: fix indentation] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <d02252752d4dc5e68ae3.1349931202@localhost.localdomain> PatchWork-Id: 190795
2012-10-29cc/gcc: remove svn sourceYann E. MORIN"1-23/+5
Since we now have the opportunity to use a custom local directory/tarball as the source for gcc, it no longer makes sense to retrieve gcc ourselves from its subversion repository. Cc: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-10-29debug/gdb: remove ncurses cleanupYann E. MORIN"1-9/+0
That's legacy code that was usefull when ncurses was installed in the sysroot. Still it's not longer the case (it's installed in a special dedicated directory), we can remove that piece of code. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-10-11debug/gdb: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustomDavid Holsgrove1-4/+13
CUSTOM_LOCATION config options only presented in menuconfig if component CUSTOM version selected. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> [yann.morin.1998@free.fr: don't patch custom dir location] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <9ea1b5021fc77582867f.1349931197@localhost.localdomain> PatchWork-Id: 190791
2012-10-11binutils/elf2flt: Add CUSTOM version, CUSTOM_LOCATION config options, GetCustomDavid Holsgrove1-8/+18
CUSTOM_LOCATION config options only presented in menuconfig if component CUSTOM version selected. Change elf2flt CT_ELF2FLT_VERSION from 'head' to 'cvs' if cvs selected in config Also remove hardcoded 'cvs-' from elf2flt component name, used in CT_Extract, CT_Patch and as the CT_SRC_DIR location for the configure stage. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> [yann.morin.1998@free.fr: fix indentation, don't patch custom dir location] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <288db3721a37844defa5.1349931196@localhost.localdomain> PatchWork-Id: 190789
2012-10-11binutils/binutils: Add CUSTOM version and CUSTOM_LOCATION config options and ↵David Holsgrove1-3/+14
GetCustom CUSTOM_LOCATION config options only presented in menuconfig if component CUSTOM version selected. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> [yann.morin.1998@free.fr: fix indentation, don't patch custom dir location] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <7a604b5df9c84a1e20c3.1349931195@localhost.localdomain> PatchWork-Id: 190788
2012-10-11cc/gcc: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustomDavid Holsgrove1-1/+9
CUSTOM_LOCATION config options only presented in menuconfig if component CUSTOM version selected. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> [yann.morin.1998@free.fr: don't patch custom directory location] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <f2272ac0f37cedd0bb91.1349931194@localhost.localdomain> PatchWork-Id: 190787
2012-10-22fix eglibc-2.16 manual buildJohannes Stezenbach1-4/+9
Signed-off-by: Johannes Stezenbach <js@sig21.net> Message-Id: <20121022133228.GA16536@sig21.net> Patchwork-Id: 193156
2012-10-21scripts/functions: return a proper error code in CT_DoExecLogYann E. MORIN"1-0/+5
Since we added the debug-shell feature, CT_DoExecLog no longer returns the error code of the command, but always return 0. This breaks the download mechanism, which relies on CT_DoExecLog to fail _on_purpose_ to detect that the ressource was not found at the specified URL. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-10-17scripts/functions: properly catch failure in CT_Test* helpersYann E. MORIN"1-1/+1
So we get caught by the trap-handler and have a chance to run the debug-shell. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Johannes Stezenbach <js@sig21.net>
2012-10-06scripts: add option to start an interactive debug shellYann E. MORIN"2-3/+101
Add an option that, when a command fails: - starts an interactive shell with the failed command's environment - attempts re-execution of the failed command, continues, or aborts at user's whim. Before starting the debug-shell, the backtrace is printed. When exiting for an abort, the standard error message is printed. Based on an idea and a patch from: Johannes Stezenbach <js@sig21.net> http://sourceware.org/ml/crossgcc/2012-09/msg00144.html Signed-off-by: Johannes Stezenbach <js@sig21.net> [yann.morin.1998@free.fr: integrate in the fault handler] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Johannes Stezenbach <js@sig21.net> Patchwork-Id: 191571 Patchwork-Id: 191668
2012-10-14scripts: move backtrace marker to CT_WORK_DIRJohannes Stezenbach2-3/+4
Avoid error when commands in scripts/crosstool-NG.sh fail before CT_BUILD_DIR is set. So we need to remove the backtrace marker of a potential previous build. Previously, it was implicitly removed because we did remove the directory it was in, which is no longer the case. Signed-off-by: Johannes Stezenbach <js@sig21.net> [yann.morin.1998@free.fr: remove backtrace marker on start of build] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <20121015094615.GA18673@sig21.net> Patchwork-Id: 191498
2012-10-17scripts: fix default work-dir nameYann E. MORIN"1-1/+1
It's been a long time the default work-dir changed its name from 'target' to '.build'. Change the left-over. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>