summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2014-02-22scripts: Update config.guess and config.subBryan Hundven2-165/+18
Update config.guess and config.sub from: http://git.savannah.gnu.org/gitweb/?p=config.git Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> [yann.morin.1998@free.fr: further update] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <befa8e8e81336bc1c415.1393054644@Bryans-MacBook-Pro.local> Patchwork-Id: 323128
2014-02-25newlib: fix extract process for custom versionTrevor Woerner1-1/+1
newlib: fix extract process for custom version If the user specifies the use of a custom newlib version, the logic in the extract function was reversed, so this step would fail. Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org> [yann.morin.1998@free.fr: keep leading indentation] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <c727adf1b7bd2c1e891d.1393353347@openSUSE-i7> Patchwork-Id: 324060
2014-05-05cc/gcc: only build required core passesYann E. MORIN"1-2/+2
We now know exactly what pass to build, so build only what is required. Reported-by: Trevor Woerner <trevor.woerner@linaro.org> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-02-04binutils: Added ranlib to tools listRay Donnelly1-3/+3
so that it is available to available to the core C compiler build because static libraries are built and ranlib is used on them. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Message-Id: <CAOYw7dt=+DdnKAHNShfs6a+=7sS+DLQYkyxnQMAwmw7E7zqvgA@mail.gmail.com> Patchwork-Id: 316477
2014-01-04cc/gcc: add option to enable/disable decimal floatsYann E. MORIN"1-0/+10
Decimal floats need support form the C library, namely support for fenv, which is missing in uClibc for any architecture but x86/32. Add an option (a choice) to enable or disable decimal floats. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-01-04libc/uClibc: add option to enable fenvYann E. MORIN"1-7/+5
Support for fenv.h is a little bit more tricky that enabling it only for x86-32 is not right. Add an option for the user to choose whther to install fenv.h or not. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-01-06libc/glibc: fix downloading addonsYann E. MORIN"1-3/+3
Do to glibc what we did to eglibc in #dff359adf15c. Only (very) old versions of glibc have other external addons, and they are no longer meaningful. But for consistency, do the change nonetheless. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-01-05libc/glibc: print name of skipped addonYann E. MORIN"1-1/+1
When trying to extract an already present (aka bundled) addon, print the name of that addon, for clarity, and to help analyse the build.log post-mortem. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-01-04cc/gcc: set CXXFLAGS at configure gccDaniel Dittmann1-0/+2
Since gcc 4.8 C++ is also used as implementation language (see gcc release notes). Signed-off-by: "Daniel Dittmann" <ddittmann@gmx.net> Message-Id: <acc7d11bc77b30f21c5b.1388863298@bernalk.machteam> Patchwork-Id: 306883
2014-01-04libc-uclibc: enable fenv for x86 32-bitYann E. MORIN"1-0/+7
Without it, gcc-4.8 fails to build. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-01-04cc/gcc: diable libsanitizer without NPTLYann E. MORIN"1-0/+3
gcc-4.8 comes with a new library to sanitise memory access: - heap-, stack-, and global-buffer overflow, use-after-free - data-races between threads This library requires some _np parts of the API, which are not implemented in the (old) LinuxThreads, which is still available in uClibc. Since NPTL requires a i486 or above, i386 are stuck with using LT, which precludes building the libsanitizer. Disable libsanitizer, a bit like libatomic is. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Niels Penneman <niels@penneman.org>
2014-01-03libc/eglibc: fix downloading of localedef addonYann E. MORIN"1-3/+3
For the versions of eglibc where the ports addon is not external (ie, all versions after, and including 2.17), we would fail to download the localedef addon, since the test did not care about the addon we were about to download, only whether the ports addon was external or not. Fix that by skipping the ports addon only if that's the addon we're trying to download. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-01-03cc/gcc: fix gcc 4.8 build for C library without threads supportNiels Penneman1-0/+5
Signed-off-by: Niels Penneman <niels@penneman.org> Message-Id: <309df93f4354c80e05c9.1388743085@i7sb.local> Patchwork-Id: 306521
2014-01-02scripts: do not allow commas in directories, it breaks thingsYann E. MORIN"1-0/+3
The comma is used by the autotools as separator in many sed expressions, which break if a directory contains commas. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-01-01kernel/linux: fix fall-out due to arm64 special caseYann E. MORIN"1-3/+3
Cset 3b61be3d7aa6 (prepare for arch whose kenel name is not the standard name) failed to name a variable consistently, so all archs but arm64 were broken. Fix that by renaming the variable in a consistent way. Reported-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-12-30arch/arm: add support for AArch64Yann E. MORIN"2-1/+14
AArch64 id the 64-bit variant for ARM. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Zhenqiang Chen <zhenqiang.chen@linaro.org> Cc: Michael Hope <michael.hope@linaro.org>
2013-12-30kernel/linux: prepare for arch whose kenel name is not the standard nameYann E. MORIN"1-2/+5
For some architectures, the kernel architecture name is not the common name of the architecture for other tools. For example: ARM 64-bit is commonly referenced as aarch64, but the kernel calls it arm64. Signed-off-by: Michael Hope <michael.hope@linaro.org> Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> [yann.morin.1998@free.fr: split out of the aarch64 patch] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-12-31scripts: update config.{guess,sub}Yann E. MORIN"2-80/+119
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-12-31libc/newlib: fix variables for avr32 headersYann E. MORIN"1-6/+10
Some of the avr32headers related variables are used in different functions, so have to be declared globally, not locally. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-11-19cc/gcc: Add Fortran support for Baremetal buildZhenqiang Chen1-0/+10
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> [yann.morin.1998@free.fr: fix damage due to mailer] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <CACgzC7D5HCVS-qX=ydcQphNFH=VGgJzTdZWQWaLKAv-CdE8crA@mail.gmail.com> Patchwork-Id: 292703
2013-11-16libc/{glibc,eglibc}: Don't download glibc-ports when not availableYann E. MORIN"2-0/+10
Don't download glibc-ports when glibc or eglibc version greater than 2.16, because the "ports" source is mainline in the glibc or eglibc since version 2.17. Signed-off-by: "Daniel Zimmermann" <netzimme@gmail.com> Message-Id: <9c045ca3cf1b9dc89da3.1384602843@haus-VirtualBox> Patchwork-Id: 291766 [yann.morin.1998@free.fr: slightly tweak subject, change variable name] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-11-15debug/gdb: fix canadian-cross in case of static cross gdbYann E. MORIN"1-2/+2
Building the cross-gdb shoud be done using the host compiler, not the native compiler. Reported-by: Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-11-15libc/(e)glibc: fix extra configparmsYann E. MORIN"1-1/+1
In case ${CT_LIBC_GLIBC_CONFIGPARMS} starts with a dash, printf will try to interpret it as an option for itself, and will invariably flail in panic as it does not recognise any of it. Use a more robust solution, as suggested by Cody. Reported-by: "Roberto A. Foglietta" <roberto.foglietta@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Cody P Schafer <devel-lists@codyps.com>
2013-11-15scripts/functions: use portable 'gzip -dc'Yann E. MORIN"1-1/+1
'zcat' on MacOS-X is broken (it is not gzip's zcat, but compres' zcat). Use 'gzip -dc' for portability, as suggested by Anthony. Reported-by: Fernando Ortiz <fortiz2k@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Anthony Foiani <anthony.foiani@gmail.com>
2013-11-15scripts: remove duplicate '/' in prefix, it breaks relocationYann E. MORIN"1-0/+3
Reported-by: Richard Weinberger <richard.weinberger@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-11-08cc/gcc: Add support for golangYann E. MORIN"2-0/+2
Signed-off-by: Richard Weinberger <richard@nod.at> Message-Id: <ca374aef944e28a6ec3c.1383921708@azrael> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-08-01complibs/isl: add HTTP mirrorMichael Hope1-1/+2
Add well-known HTTP mirror as a fallback. This lets crosstool-ng work when behind a HTTP/HTTPS only proxy. Signed-off-by: Michael Hope <michaelh@juju.net.nz> [me: split original patch in two] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <aeb4a850d0786ee62dc2.1375559989@wanda> Patchwork-Id: 264436
2013-08-01libc/newlib: add HTTP mirrorMichael Hope1-1/+2
Add well-known HTTP mirror as a fallback. This lets crosstool-ng work when behind a HTTP/HTTPS only proxy. Signed-off-by: Michael Hope <michaelh@juju.net.nz> [yann.morin.1998@free.fr: split patch in two] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <aeb4a850d0786ee62dc2.1375559989@wanda> Patchwork-Id: 264436
2013-05-04complibs/cloog: add support for the ISL backendYann E. MORIN"1-22/+49
CLooG 0.18+ will use ISL instead of PPL, so we have to configure adequately depending of which backend is in use. The Kconfig entries will decide for us which is selected, so we can rely on either PPL xor ISL to be selected, not both. Reported-by: "Plotnikov Dmitry" <leitz@ispras.ru> [Dmitry did a preliminray patch to add ISL support, which this patch is inspired from] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-05-05cc/gcc: add preliminray support for 4.8Yann E. MORIN"1-10/+22
This means: - introduce the new symbols for 4.8 - do not always select PPL if graphite is selected Reported-by: "Plotnikov Dmitry" <leitz@ispras.ru> [Dmitry did a preliminray patch to add gcc-4.8 support, which this patch is inspired from] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-05-03complibs: add ISLYann E. MORIN"1-0/+128
ISL is used by gcc-4.8 onward for GRAPHITE, so is also used as backend for CLooG 0.18.0 onward. Reported-by: "Plotnikov Dmitry" <leitz@ispras.ru> [Dmitry did a preliminray patch to add ISL, which this one is inspired from] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-05-13cc/gcc: Set CXX_FOR_BUILD for bare metal and canadian build.Zhenqiang Chen1-0/+1
>From 4.8, g++ is used as the default compiler to build the toolchain. Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> Message-Id: <CACgzC7B-LQvAw3hOYhBA7b7g0H1WtH20gqXM=Y=YFO4FrnZKWQ@mail.gmail.com> Patchwork-Id: 243590
2013-05-03scripts: handle gcc 4.7 and 4.8 in addToolsVersion.shYann E. MORIN"1-1/+5
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-05-05scripts: help debugging missing directoriesYann E. MORIN"1-0/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-05-02cc/gcc: modify to build gcc-4.8-based cross-toolsJongsung Kim1-0/+5
Building cross-tool based on gcc-4.8 fails while "Installing pass-2 core C compiler", because building libgcc.mvars needs libbacktrace.a that gcc.sh doesn't build. This patch inserts a few lines configuring, and making libbacktrace into gcc.sh to build gcc-4.8-based cross-tools successfully. Reported-by: Plotnikov Dmitry <leitz@ispras.ru> Signed-off-by: Jongsung Kim <neidhard.kim@lge.com> Message-Id: <201305031831.33395.neidhard.kim@lge.com> Patchwork-Id: 241258
2013-04-13complibs/ppl: only add -fpermissive flag to CXXFLAGSSamuel Martin1-3/+10
-fpermissive is not a valid option to gcc. Adding it to the CFLAGS make the ppl checks fail with the following error: [ALL ] Making check in tests [ALL ] cc1: warnings being treated as errors [ERROR] cc1: error: command line option "-fpermissive" is valid for C++/ObjC++ but not for C [ALL ] cc1: warnings being treated as errors [ERROR] cc1: error: command line option "-fpermissive" is valid for C++/ObjC++ but not for C [ERROR] make[7]: *** [formatted_output.o] Error 1 Signed-off-by: "Samuel Martin" <smartin@aldebaran-robotics.com> Message-Id: <bba2482a06a11415207e.1365876457@smartin-de-2.aldebaran.lan> Patchwork-Id: 236383
2013-03-21scripts/functions: add xz-ed linux tarballsJerzy Grzegorek"1-0/+1
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Message-Id: <d0ec17a687dc80754e0f.1363860872@NX5000> Patchwork-Id: 229619
2013-03-21kernel/linux: add xz-ed linux tarballsJerzy Grzegorek"1-0/+1
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Message-Id: <f249828223fc75313bee.1363860871@NX5000> Patchwork-Id: 229618
2013-03-31arch/avr32: Fix download of header filesMartin Guy2-10/+13
This patch fixes the download of the avr32 headers in crosstool-ng by fetching them directly from Atmel's web site instead of the now-broken URL given by the original author of the avr32-header-fetching modification, who fetched them from a copy on his own, now-defunct server. It also adds the necessary logic to extract from a zip file, as that is how the headers are packaged. To configure it for avr32 after launching ct-ng menuconfig in an empty directory: Paths and misc options -> Shell to use as CONFIG_SHELL = sh Target options -> Target Architecture = avr32 Toolchain options -> Tuple's alias = avr32 Binary utilities -> binutils version = 2.18a C compiler gcc version = 4.2.2 C-library newlib version = 1.17.0 Enable IOs on long long = yes Enable IOs on floats and doubles = yes Disable the syscalls supplied with newlib = yes CONFIG_SHELL is necessary to get round the "fragment: command not found" bug when binutils-2.18 is configured using bash. Prepared against crosstool-ng mercurial trunk on 31 March 2012. Signed-off-by: Martin Guy <martinwguy@gmail.com> [yann.morin.1998@free.fr: update bundles sample accordingly] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <CAL4-wQrg_NQ7jm-NCADqeyQr9twyhtx42OUGNThP6gWeqZc=kw@mail.gmail.com> Patchwork-Id: 232612
2013-03-16debug/dmalloc: enforce cross-compilationSamuel Martin"1-0/+3
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Message-Id: <69772732f551aa342a2c.1363446264@laptop> Patchwork-Id: 228221
2013-03-16debug/strace: enforce cross-compilationSamuel Martin"1-0/+3
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Message-Id: <24b6540a08cbca7ee1fa.1363446263@laptop> Patchwork-Id: 228220
2013-03-16debug/gdb: enforce gdbserver cross-compilationSamuel Martin"1-0/+3
Signed-off-by: Samuel Martin <s.martin49@gmail.com> Message-Id: <ca85cad85c4dd20e74f1.1363446262@laptop> Patchwork-Id: 228219
2013-03-03libc/glibc: do not overwrite existing bits/syscall.hYann E. MORIN"1-1/+4
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Rafael C <groups.r2@gmail.com> Cc: Jérôme BARDON <bardon.pro@gmail.com> Cc: Daniel Price <daniel.price@gmail.com>
2013-03-03libc/glibc: fix installing syscall.h when installing start-files.Yann E. MORIN"1-2/+9
Reported-by: Rafael C <groups.r2@gmail.com> Reported-by: Jérôme BARDON <bardon.pro@gmail.com> Reported-by: Daniel Price <daniel.price@gmail.com> [yann.morin.1998@free.fr: use a conditional approach, also suggested by Daniel] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: a litle bit of trivial code-reorderingYann E. MORIN"1-11/+7
Move all options-setting code at the same place. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: fix possibly broken codeYann E. MORIN"1-2/+3
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: move the ncurses build to a backendYann E. MORIN"1-56/+82
This cleans up the code a bit. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: always enable expat for the cross-gdbYann E. MORIN"1-10/+6
There's no point in not supporting XML in the cross-gdb. I mean, come on... ;-) It's still the responsibility of the user to have the necessary devel expat packages installed for his/her distro. Reported-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: fix $need_expat_src usage for native-gdbYann E. MORIN"1-20/+39
For the native-gdb (ie on the target), we unconditionally need to build expat. Make it a backend, it makes a litle bit cleaner code. Reported-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-03-03debug/gdb: fix $need_ncurses_src usageYann E. MORIN"1-1/+1
It should be used only to decide whether we need to download/extract ncurses, not wheter we should build it or not. Reported-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>