aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/libc/newlib.sh
Commit message (Collapse)AuthorAgeFilesLines
* libc/newlib: fix variables for avr32 headersYann E. MORIN"2013-12-311-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>
* libc/newlib: add HTTP mirrorMichael Hope2013-08-011-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
* arch/avr32: Fix download of header filesMartin Guy2013-03-311-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* libc/newlib: update fetch locationTrevor Woerner2013-03-031-1/+1
| | | | | | | | | | | The menu system provides an option to allow a user to request newlib version 2.0.0. newlib-2.0.0, however, is not available at the download location currently being used. It is, however, available (as are other supported versions of newlib) at an alternate location. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Message-Id: <75ab5151c7f5dc9086e3.1362334313@suse64> Patchwork-Id: 224561
* libc: get rid of libc_finishYann E. MORIN"2013-01-101-4/+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>
* libc/newlib: install AVR32 headers during the start-files-and-headers phaseYann E. MORIN"2013-01-101-9/+11
| | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* libc/newlib: remove getting from CVSYann E. MORIN"2012-10-301-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>
* libc/newlib: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustomDavid Holsgrove2012-10-111-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
* libc/newlib: build newlib in the proper stepYann E. MORIN"2011-07-171-4/+4
| | | | | | | | | | | Currently, newlib is built in the start_file step, which is wrong, but was needed when the baremetal integration was... well, 'unfinished'. Now that we build the baremetal compiler from the final cc step, and a proper core gcc in pass-1 and pass-2, we can move the newlib build to the step do_libc, where it belongs. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* libc/newlib: build manual for newlibYann E. MORIN"2011-12-151-0/+15
| | | | | | Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> [yann.morin.1998@anciens.enib.fr: copy with a single call to 'cp'] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* libc/newlib: remove hard-coded "-O"Zhenqiang Chen2011-11-281-1/+1
| | | | | | | | With hard-coded "-O", users can not customize CFLAGS_FOR_TARGET by CT_TARGET_CFLAGS. If "-O" is needed, users can input it in CT_TARGET_CFLAGS. By default, "-Os" is enabled. Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
* libc/newlib: add option to optimise for sizeZhenqiang Chen2011-11-221-0/+2
| | | | | | | Add an option to build with -Os instead of the default -O. Reviewed-by: Michael Hope Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
* libc/newlib: Add extra config for newlib.Zhenqiang Chen2011-11-181-1/+2
| | | | | | | So users can input config like --enable-newlib-register-fini. Reviewed-by: Michael Hope Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
* libc/newlib: add a config option allowing to disable builtin syscallsKévin PETIT2011-08-281-0/+5
| | | | | | | | | | Allows to choose if one wants to keep or not the syscalls that are provided with newlib. It passes the --disable-newlib-supplied-syscalls or --enable-newlib-supplied-syscalls to the configure script. If one chooses to disable the builtin syscalls, he/she will have to write his/her own. This can be usefull to port newlib to a new platform/board. Signed-off-by: Kévin PETIT <kpet@free.fr>
* libc/newlib: log even moreYann E. MORIN"2011-03-201-1/+1
| | | | | | Also log variable assignement for single commands. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* libc: remove now unneeded do_libc_headersYann E. MORIN"2011-01-221-4/+0
| | | | | | do_libc_headers is now a noop, and is no longer used, so remove that step. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts: PARALLELMFLAGS is evil, renameYann E. MORIN"2011-01-221-1/+1
| | | | | | | | | | The reunification of the glibc/eglibc code paths exposed a nasty bug in the glibc build: use of PARALLELMFLAGS breaks the build. See the explanations in that bug report against FC6: https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=212111 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts: remove aria2c as downloader, retain only curl and wgetYann E. MORIN"2010-11-161-6/+0
| | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* libc/newlib: add option to compile support for IOs on C99 formatsYann E. MORIN"2010-10-231-0/+5
| | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* libc/newlib: add option to compile support for long long IOsYann E. MORIN"2010-10-231-0/+5
| | | | Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* libc/newlib: add option to compile support for float IOsYann E. MORIN"2010-10-231-1/+16
| | | | | | | Adds support to enable/disable IOs of floating point values (float, double, and long double). Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
* scripts: add "FILE" and "CFG" debug levels.Anthony Foiani2010-10-221-1/+1
| | | | | | | | | | | | I ran into some minor difficulties looking through the build log for a particular file: I wasn't interested in seeing it unpacked, but only when it is built or installed. Adding these two levels allows me to differentiate between those cases. [Yann E. MORIN: Those are blind log levels, and are used only to search in the build-log afterward.] Signed-off-by: Anthony Foiani <anthony.foiani@gmail.com>
* libc/newlib: build in the 'start files' passYann E. MORIN"2010-06-131-8/+6
| | | | | | | | | | | | | | | A few facts: - building the C library requires a proper core compiler - core compiler is issued from one of the core passes - the C library is required to build libstdc++ - newlib is only built for baremetal - in bare metal, the final compiler is issued from one of the core passes So we need to build the C library between core pass 1 and core pass 2. The only place is eithe libc_headers() or libc_start_files(). The most pertinent seems to be libc_start_files(). So we build newlib from libc_start_files(), and leave libc() empty.
* libc/newlib: don't do // downloadsYann E. MORIN"2010-04-211-0/+9
| | | | | | | The newlib FTP site does not like // downloads, and quickly blocks the IP from the downloader. Override the number of chunks when downloading newlib.
* scripts/functions: make CT_Patch dumberYann E. MORIN"2010-04-111-1/+1
| | | | | It is the responsibility of the caller to split the package name from its version. It already knows that.
* libc/newlib: only compute version string, not full filenameYann E. MORIN"2010-04-111-8/+8
|
* libc/newlib: allow using CVS snapshotsYann E. MORIN"2009-10-261-12/+27
| | | | | | | The newlib "team" rolls new releases about once a year (december). This is quite a long time between releases, in case code was fixed. So, allow user to use a CVS snapshot to benefit early from fixes and enhancements to newlib.
* libc/newlib: cleanup the build and finish stepsYann E. MORIN"2009-10-261-14/+12
| | | | | | | | | | | | build step: - ./configure - remove glibc-specific options - pass the target CFLAGS in the correct variable - make: - build in // finish step: - print proper message in finish step
* libc/newlib: fix host/target confusionYann E. MORIN"2009-10-251-2/+6
| | | | | | | newlib handles the build/host/target a bit differently as one would expect: build : not used host : the nachine that builds newlib target : the machine on which newlib will run
* Removed debug lineMartin Lund2009-06-201-2/+0
|
* Fix libc configMartin Lund2009-06-201-3/+4
|
* Misc AVR32 cleanups.Martin Lund2009-06-201-4/+0
|
* Changed copyrightMartin Lund2009-06-141-2/+2
|
* Added support for Atmel AVR32 headersMartin Lund"2009-05-231-2/+17
|
* Temp fix for newlib configure. Updated avr32 crosstool.config.Martin Lund"2009-05-221-3/+4
|
* Added initial AVR32 support (bare-metal,newlib)Martin Lund"2009-05-221-0/+71