summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2012-10-03scripts/gdb: If not building expat for gdb, disableDavid Holsgrove1-1/+7
--with-expat=yes is unconditionally passed to the gdb configure stage, instead of respecting the ${do_expat} decision. Disable if not needed. Prevents error building canadian cross; configure: error: expat is missing or unusable Where configure stage fails to find expat on the host compiler. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Message-Id: <4c4410a2a8aab24a29c5.1349244128@localhost.localdomain> PatchWork-Id: 188711
2012-09-26kernel/linux: change m68k/no-mmu linux arch tuple to use -uclinuxEsben Haabendal1-6/+8
GCC requires m68k arch tuples to be *-*-uclinux-* to support Linux on no-mmu m68k (ColdFire) cpus. Blackfin arch tuple must be *-*-linux-uclibc for FD_PIC_ELF toolchains, so we cannot just switch to uclinux for no-mmu Linux toolchains. Signed-off-by: "Esben Haabendal" <esben@haabendal.dk> Message-Id: <876271s1ee.fsf@arh128.prevas.dk> PatchWork-Id: 186976
2012-09-25scripts: update config.{guess,sub}Yann E. MORIN"2-5/+8
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-09-25scripts: exporting (even empty) LIBRARY_PATH and/or LPATH breaks gccYann E. MORIN"1-4/+2
If either LIBRARY_PATH or LPATH is set, even to the empty string, the gcc build breaks. Fix that by bailing-out rather than re-setting. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-09-20scripts: Use ${CT_TARGET}-strip to strip gdbserverZhenqiang Chen1-2/+2
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> [yann.morin.1998@free.fr: quote variables] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <CACgzC7BU9CPZ2cE+EYqnMe2WNz-wYby6f4tsmjJi715WmPmbWw@mail.gmail.com> PatchWork-Id: 185303
2012-05-12scripts: unset LIBRARY_PATH and LPATHErik Inge Bolsø1-0/+4
These environment variables set search path for gcc at link time, which can break the build. Signed-off-by: Erik Inge Bolsø <knan-ct@anduin.net> Message-Id: <alpine.BSF.2.00.1205130131550.21551@anduin.net> PatchWork-Id: 186872
2012-09-23kernel/linux: symlink custom kernel source dir with '-f'Jang, Bongseo1-1/+1
build fails to symlink to custom kernel dir when the build is not the first time because of 'ln -s' without '-f' option. Signed-off-by: "Jang, Bongseo" <graycells@gmail.com> Message-ID: <543e2981f2b723ecd850.1348370892@localhost.localdomain> PatchWork-ID: 186178
2012-09-20arch/microblaze: add new architectureDavid Holsgrove1-0/+21
Add Microblaze architecture support. This depends on EXPERIMENTAL, as upstream projects do not yet include full support to build a modern microblaze compiler. This is in the process of being updated, but is not currently publicly accessible. Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com> Message-Id: <9c93e18b3d68b19303f3.1348113870@localhost.localdomain> PatchWork-ID: 185305
2012-08-12scripts: add option to only use the mirrorYann E. MORIN"1-1/+7
Currently, if downloads are forbidden, the mirror is still tried for. Change this way: - if downlaods forbidden, do not try neither upstream locations nor mirror - add option to only use the mirror, and avoid upstream locations Signed-off-by: Austin Morton <austinpmorton@gmail.com> [yann.morin.1998@free.fr: broaden the if USE_MIRRORto enclode mirror location] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-09-12scripts: strip gdbserverZhenqiang Chen1-0/+6
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
2012-08-22cc/gcc: Add the ability to build gcc from svnYann E. MORIN"1-23/+42
I took some of the svn functionality from eglibc. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> [yann.morin.1998@free.fr: fix the conditional test in build script] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-22libc/{,e}glibc: remove rude wordings in commetnsYann E. MORIN"3-3/+3
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-22scripts/functions: remove rude wordingsYann E. MORIN"1-3/+2
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-22cc/gcc: cleanup comments from rude wordingsYann E. MORIN"1-3/+2
That comes from way back when nothing would work as expected, and I would easily get heated as soon as anything would break. Sigh, those were the old days. Apologies. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-19debug/expat: Update expat to 2.1.0Bryan Hundven1-1/+1
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Message-Id: <c59009fdaf23d82822c6.1345364052@flambe.is-a-geek.org>
2012-08-19scripts: use generic urls for sourceforgeBryan Hundven3-3/+3
For expat, duma, and strace, use the generic url and 302 to the mirror instead of trying to download a file from a downed mirror and failing. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Message-Id: <b69ebeb72fef93c04c84.1345364051@flambe.is-a-geek.org>
2012-08-07binutils/binutils: CT_BINUTILS_GOLD_THREADED should be CT_BINUTILS_GOLD_THREADSZhenqiang Chen1-1/+1
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
2012-08-04scripts: update config.{guess,sub}Yann E. MORIN"2-8/+19
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-04cc/gcc: remove duplicate code in core pass-1Yann E. MORIN"1-20/+6
Whatever the threading model (NPTL, LT...), we build the same core pass-1 compiler, so there is no need to have a case-esac construct. Remove now mis-leading and incorect comment. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-02scripts/xldd: fix pattern matching with new binutilsYann E. MORIN"1-3/+3
New binutils (circa 2.2x?) append 'program interpreter' to the (NEEDED) line for the dynamic linker, which breaks our current pattern. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-01cc/gcc: remove now useless condition-variableYann E. MORIN"1-21/+10
Both core pass-1 and -2 compilers are unconditionally built, so we no longer require a condition variable. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-01cc/gcc: always build core pass-1Yann E. MORIN"1-0/+9
Up until now, all conditions requiring a core pass-1 was when the threading implementation used was NPTL. So we only built the core pass-1 when NPTL was used. Now, things have changed (what? when? Dunno...), and some bare-metal canadian toolchains fail to build if a core pass-1 is not present. OTOH, a core pass-1, although not needed for non-NPTL builds, does no harm at all if it is present. So, unconditionally build a core pass-1 (but still pass conditional options to the core backend). Reported-by: Per Arnold Blaasmo <Per-Arnold.Blaasmo@atmel.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-08-01scripts/showSample: also print the threading implementationYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-07-31complibs/cloog: create missing m4 dirYann E. MORIN"1-0/+3
Because we now patch configure.in and configure, the Makefile quicks in a re-build rule as the source files are now more recent than the bundled generated files, and that fails because the m4 directory is missing, although on some systems where aclocal is not installed, the re-build rule does nothing (except a warning). Always create tht directory. Reported-by: Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> [Also thanks to Thomas De Schampheleire <patrickdepinguin@gmail.com> for some digging works on this issue] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-07-23scripts+samples: fix listings the samplesYann E. MORIN"1-36/+23
Since we use defconfigs to save the samples, listing all the samples can no longer be done by passing all the sample names at one to the script; we need to pass them one-by-one after we expand the sample's defconfig ibnto a complete .config. Reported-by: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-06-10debug/duma: fix download urlYann E. MORIN"1-1/+6
Sourceforge has again changed its mirroring system... :-( Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-17debug/gdb: add option to enable/disable the IPA lib for gdbserverYann E. MORIN"1-0/+8
gdbserver >= 7.2 comes with an optional library to use tracepoints, the In Process Agent (IPA) library, libinproctrace.so. Currently, we build gdbserver staticaly, but that breaks the build of the IPA lib. Add an option to biuld the IPA lib, but not if statically linking. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-09cc/gcc: do not build manuals in parallelYann E. MORIN"1-1/+1
Reported-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Reported-by: Johannes Stezenbach <js@sig21.net> Tested-by: Johannes Stezenbach <js@sig21.net> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-07samples: rework show-tupleYann E. MORIN"1-4/+3
Now that we are using defconfig files, the samples do not contain the full configuration, so we can not simply parse them to show their content. Instead, we must fake recalling a sample, and parse the generated .config file. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-06samples: use savedefconfig when saving samplesYann E. MORIN"1-5/+11
When saving a sample, use savedefconfig instead of copying the full .config file. This reduces the saved .config, and reduces clutter when it is later upgraded. Also use defconfig when retrieving a sample. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-06cc/gcc: add option to enable/disable libquadmathYann E. MORIN"1-0/+9
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-08scripts: fix mk-releaseYann E. MORIN"1-4/+15
mk-release was not adding the SoB lines in the commit messages. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-08scripts: fix catching build failures, the proper way, nowYann E. MORIN"1-1/+1
Serves me for pushing too fast... :-( Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-06scripts/functions: tweak the endianness LDFLAGSYann E. MORIN"1-2/+2
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-08scripts: fix catching failuresYann E. MORIN"1-0/+4
POSIX 1003.1-2008 does not say whether "set -e" should catch a sub-shell that exits with !0 (it has a list of conditions to catch, but no list of conditions not to catch, and this situation is not listed). bash-3 does not catch such a failure, but bash-4 does. That why, on my Squeeze system I did not see the issue, while Thomas did on is Lenny chroot. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-06scripts: update config.{guess,sub}Yann E. MORIN"2-10/+31
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-02-24libc/uClibc: add additional debug level between "minimal" and "all"Johannes Stezenbach1-0/+10
During application development it is desirable to enable malloc debugging and LD_DEBUG support, but the extensive debug spew from SUPPORT_LD_DEBUG_EARLY is only useful when working on uClibc's ld.so. Signed-off-by: Johannes Stezenbach <js@sig21.net>
2012-04-27Allow multi-word "install" command.Anthony Foiani1-1/+1
Autoconf can determine that the correct install command includes flags, e.g., "/usr/bin/install -c". When using this as a command, we can't enclose the value in double-quotes, as that makes some shells use the whole expression as a filename: # this is the value returned by autoconf and stored in CT_install $ ins="/usr/bin/install -c" # if we call it with quotes, the command is not found $ "${ins}" bash: /usr/bin/install -c: No such file or directory # removing the quotes lets it work as expected $ ${ins} /usr/bin/install: missing file operand Try `/usr/bin/install --help' for more information. Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
2012-04-09samples: . accepts previous comment as-isYann E. MORIN"1-3/+7
When updating a sample configuration with a comment, a dot '.' in the new comment keeps the previous comment. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-01-03cc/gcc: build core compilers for canadianYann E. MORIN"2-12/+6
Currently, we rely on an existing external cross-compiler targetting the target, to build the C library. This can pause quite a few problems if that compiler is different from the one we are building, because it could introduce some ABI issues. This patch removes this dependency, by building the core compilers as we do for standard cross, and also by building the binutils and gcc, for running on the build machine. This means we no longer need to offer the cross-sompiler selection in the menuconfig. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2012-04-02cc/gcc: add build frontendYann E. MORIN"1-2/+42
Bizarrely enough, the core gcc are not enough to be able to build a canadian cross, and a real, full cross compiler is required so that the canadian cross can be properly built... WTF?!? Sigh... Add a build-frontend, as was done for the binutils and the complibs. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-04-01cc/gcc: frontends are responsible for selecting the list of languagesYann E. MORIN"1-2/+4
Do for the final step the same as for the core step: compute the list of selected langauages from the frontend, not in the backend. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2011-08-15cc/gcc: pass the language list to the core backendYann E. MORIN"1-4/+6
As the core backend can be used to also build the bare-metal compiler, we have to tel it what languages to build. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-15cc/gcc: add language helper functionYann E. MORIN"1-14/+20
Add a function that prepares the language configure option. It is needed in at least two places, some commonalisation is needed. ;-) Unfortunately, it is no longer possible to print warnings about experimental languages any more. Anyway, the experimental status is clearly indicated in the menuconfig. so it should not be a surprise if the build breaks. :-/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-25complibs: fixup the host complibs install dirYann E. MORIN"9-13/+22
It's easier to have as much as possible stuff in the same place to ease backup/restore, and make things easier to follow. Move the host companion libraries install dir as a sub-dir of the build-tools install dir (but not directly in it, it would break for canadian or cross-native). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-25cc/gcc: cleanup the frontendsYann E. MORIN"1-35/+21
A few noop fix-ups: - fix the comments in core pass-1 - commonalise settings that can be Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-24complibs: add frontends for building to run on the build machineYann E. MORIN"6-0/+138
In canadian-cross, we need the companion libraries running on the build machine, to be able to build the two core gcc. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-24binutils: add frontends for building to run on the build machineYann E. MORIN"2-2/+45
In canadian-cross, we need binutils running on the build machine to be able to build the target C library. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-17complibs: split companion libraries to backend/frontend, a-la cc_coreYann E. MORIN"6-103/+235
Move the actual complibs codes to backend functions that builds the required combo of build/host/target as requested by a frontend. This split is currently a no-op, but is required for the upcoming canadian-cross rework, where we'll be needing to build the complibs twice, one for build/build, and one for build/host. This applies to the six companion libraries: - GMP - MPFR - PPL - Cloog/PPL - MPC - libelf Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-17binutils: split binutils to backend/frontend, a-la cc_coreYann E. MORIN"3-82/+149
Move the actual binutils code to a backend function that builds the required combo of build/host/target as requested by a frontend. This split is currently a no-op, but is required for the upcoming canadian-cross rework, where we'll be needing to build two binutils, one for build/build/target, and one for build/host/target. This applies to the three binutils: - GNU binutils - elf2flt - sstrip Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>