aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
Commit message (Collapse)AuthorAgeFilesLines
* musl: update musl to 1.1.16+ and switch to download from gitChristian Lamparter2017-01-1631-1595/+7
| | | | | | | | | | | | | | | | | | | | | This patch updates musl to 1.1.16+ [0] and removes all the backported patches. This is a major release and tagged as such. For more information visit musl-libc.org or read the WHATSNEW. Furthermore, this patch also changes musl to download directly from git. This makes it easier to update musl in the future. The patch custom Add-format-attribute-to-some-function-declarations.patch was assigned a new 400- number. This should avoid confusion since 0xx numbers are usually assigned to backports. [0] <http://git.musl-libc.org/cgit/musl/commit/?id=769f53598e781ffc89191520f3f8a93cb58db91f> Cc: Hannu Nyman <hannu.nyman@iki.fi> Cc: Koen Vandeputte <koen.vandeputte@ncentric.com> Cc: Jo-Philipp Wich <jo@mein.io> Cc: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
* musl: refresh patchesKoen Vandeputte2016-12-261-1/+1
| | | | Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* musl: backport various post-1.1.15 fixesKoen Vandeputte2016-12-2626-0/+1513
| | | | | | | | | | | Backport most important fixes up to latest HEAD - Taken post-commit reverts/fixes into account Compile tested Run-tested on cns3xxx & imx6 targets Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* musl: rename a custom backport patchKoen Vandeputte2016-12-261-0/+0
| | | | | | Ensure there is room in the numbering for next patches Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* toolchain/gcc: update 6.x to 6.3.0Syrone Wong2016-12-2425-9/+7
| | | | | | | | This is a bugfix release Build and run tested on mvebu/Linksys WRT1900AC v1 Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
* toolchain: remove ppl/cloog, disable graphite for gcc 4.8Felix Fietkau2016-12-242-11/+2
| | | | | | | | graphite is disabled by default and it's not worth carrying ppl and cloog for supporting this feature on the old gcc 4.8, which is only used for ARC Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: implement make check and make package/X/checkFelix Fietkau2016-12-171-0/+1
| | | | | | | | | | | | | | | | This is intended to be used for a wide array of package sanity checks. The first check that is implemented is for the hash of downloaded files. It checks: - Missing hash - Use of SHA256 instead of MD5 - dl/<file> hash not matching hash in makefile - deprecated MD5SUM variable The deprecated MD5SUM variable check is skipped for feeds/ until OpenWrt is updated as well Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: clean up download hashesFelix Fietkau2016-12-1610-18/+18
| | | | | | Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* gcc: rip out transactional memory related bloat from crtbeginFelix Fietkau2016-12-142-0/+22
| | | | | | | Slightly improves compression for each executable, saving about 4k from the default ar71xx rootfs Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain: gcc: disable ifunc on *-musl by defaultYousong Zhou2016-11-242-0/+76
| | | | | | | | Otherwise the built binaries may fail with Error relocating /usr/bin/qemu-system-x86_64: unsupported relocation type 37 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* toolchain: fix MIPS softfloat build issue for gcc-5.4.0BangLang Huang2016-11-141-0/+174
| | | | Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
* musl: fix parsing of quoted time zone namesHannu Nyman2016-10-311-0/+11
| | | | | | | | | | | | | | | fix parsing of the < > quoted time zone names. Compare the correct character instead of repeatedly comparing the first character. Patch has been submitted to upstream as http://www.openwall.com/lists/musl/2016/10/24/3 Longer explanation in http://www.openwall.com/lists/musl/2016/10/19/1 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> [Jo-Philipp Wich: move references into commit message, shorten title prefix] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* toolchain/gdb: update to version 7.12Felix Fietkau2016-10-243-5/+5
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* binutils: remove old unused versionsFelix Fietkau2016-10-2410-212/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/binutils: Add binutils 2.27Daniel Engberg2016-10-137-0/+110
| | | | | | | Add binutils 2.27 to toolchain Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net> Signed-off-by: Felix Fietkau <nbd@nbd.name> [refresh patches]
* toolchain: Rework external toolchain libc selectionFlorian Fainelli2016-09-283-5/+26
| | | | | | | | | | | | | | | | Make it a choice menu which offers the 3 C libraries we know about: glibc, uClibc and musl. While at it, make it possible for the external toolchain libc to select USE_GLIBC, USE_UCLIBC or USE_MUSL which is used by several packages to conditionally include specific CFLAGS (e.g: iproute2). Because USE_GLIBC et al. can now be selected by external toolchains, we need to restrict the per-libc menus to check on !EXTERNAL_TOOLCHAIN. While at it, make musl the default C library for external toolchain to match the internal toolchain. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* fortify-headers: update to 0.8Kevin Darbyshire-Bryant2016-09-271-2/+2
| | | | Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* config: enable shadow passwords unconditionallyMatthias Schiffer2016-09-261-1/+0
| | | | | | | | | | | | | Configurations without shadow passwords have been broken since the removal of telnet: as the default entry in /etc/passwd is not empty (but rather unset), there will be no way to log onto such a system by default. As disabling shadow passwords is not useful anyways, remove this configuration option. The config symbol is kept (for a while), as packages from feeds depend on it. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* toolchain/gcc: bump GCC 6.1.0 to 6.2.0Syrone Wong2016-09-0423-8/+8
| | | | | | Compile and run tested on ar71xx and mvebu Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
* glibc: re-enable parallel buildsFelix Fietkau2016-08-301-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* glibc: switch to 2.24 by default and remove old versions, fixes security issuesFelix Fietkau2016-08-305-85/+2
| | | | | | | | | | | | | | | | | | | 2.24 fixes the following CVEs compared to 2.23: - CVE-2016-3075 - CVE-2016-3706 - CVE-2016-1234 - CVE-2016-4429 - CVE-2016-5417 CVEs fixed in 2.23: - CVE-2015-8776 - CVE-2015-8777 - CVE-2015-8778 - CVE-2015-8779 - CVE-2014-9761 - CVE-2015-7547 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* glibc: add 2.24Dirk Neukirchen2016-08-306-3/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | since eglibc is deprecated just use glibc as name - fix build errors w. stack-protector (observed for x86_64): libresolv_pic.a(gethnamaddr.os): In function `addrsort': gethnamaddr.c:(.text+0x425): undefined reference to `__stack_chk_guard' by additionally setting libc_cv_ssp_strong=no like previously libc_cv_ssp=no was set - fix compile errors on 2.24 x86 introduced by upstream changesets "Optimize i386 syscall inlining" errors are like: - https://sourceware.org/ml/libc-alpha/2015-10/msg00745.html and trying to fix with the whats suggested at: https://patchwork.openembedded.org/patch/118909/ leads to other error: gcc6: elf/librtld.os: In function `__mmap': (.text+0x131a9): undefined reference to `__libc_do_syscall' or: gcc5: elf/dl-load.os {standard input}: Assembler messages: {standard input}:5129: Error: symbol `__x86.get_pc_thunk.cx' is already defined instead of testing other flags/effects (-fno-omit-frame-pointer) just use -O2 (like buildroot does) instead of -Os boot+pings tested on: qemu malta (le+be) (gcc5+bin2.25.1) qemu aarch64 (gcc5+bin2.25.1) qemu x86_64 (gcc6+bin2.26) qemu x86 generic (gcc6+bin2.26) Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
* toolchain: include yasm in x86 toolchainDaniel Golle2016-08-193-1/+72
| | | | | | | Some libraries require yasm to build with in-line assembly for x86 targets. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* toolchain/uClibc: add missing config symbolStijn Tintel2016-08-151-0/+1
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* gcc: optionally build gccgo compilerMatteo Croce2016-08-115-2/+49
| | | | | | Tested with eglibc on x86 and armv7 so far Signed-off-by: Matteo Croce <matteo.croce@canonical.com>
* gcc: add a patch to generate better code with Os on mipsFelix Fietkau2016-08-042-0/+25
| | | | | | Also happens to reduce compressed code size a bit Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gcc/arc-2016.03: Fix building on hosts with gcc 6.xAlexey Brodkin2016-07-271-0/+153
| | | | | | | | | | | | | On attempt to build ARC toolchain on the host with gcc 6.1 I saw the same failure as described in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959 This change adds a back-port of the fix from upstream gcc, see https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=233572 Note the fix is already a part of gcc-5.4 and gcc-6.1 so no need for the same fix for others. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
* Remove existing old link before creating a new oneStefan Weil2016-07-251-1/+2
| | | | | | | This is needed after a kernel update, otherwise the new link is written as linux/linux-$(LINUX_VERSION). Signed-off-by: Stefan Weil <sw@weilnetz.de>
* toolchain/gcc: disable libmpx to fix build errors on x86 with gcc 6.1Felix Fietkau2016-07-211-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gcc: add 6.1.0Syrone Wong2016-07-1523-0/+892
| | | | | | | | | | | -fno-plt and musl-libc patches already get upstream, then dropped in GCC 6. Other patches are almost identical compared to GCC 5.4. Compile and run tested on ar71xx/Qihoo C301 and mvebu/Linksys WRT1900ac v1 Signed-off-by: Syrone Wong <wong.syrone@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanups/fixes]
* toolchain: get rid of GCC_VERSION_5 config symbolFelix Fietkau2016-07-152-5/+0
| | | | | | Replace it with !GCC_VERSION_4_8 to be more future compatible Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gcc: clean up remaining references to the old linaro versionFelix Fietkau2016-07-152-7/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gdb: update to version 7.11.1Felix Fietkau2016-07-151-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gdb: reorganize patch layoutFelix Fietkau2016-07-157-2/+1
| | | | | | | | Use ./patches and ./patches-arc instead of version dependent patches. We should have only one main supported version (along with the special case for arc). Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/binutils: add 2.26.1Syrone Wong2016-07-157-0/+110
| | | | | Signed-off-by: Syrone Wong <wong.syrone@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [fixes/cleanup]
* musl: remove sh3 workaroundHauke Mehrtens2016-07-131-6/+0
| | | | | | The GCC bug 67260 is fixed upstream now, remove this workaround. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* musl: update musl to version 1.1.15Hauke Mehrtens2016-07-136-3741/+72
| | | | | | | The removed patch is already integrated in upstream musl. Add one additional patch which fixes a regression on mips. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* gcc: update gcc to version 5.4.0Hauke Mehrtens2016-07-1339-153/+15
| | | | | | The removed patches are already integrated in upstream gcc. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* toolchain: skip gcc/minimal for muslFelix Fietkau2016-07-077-48/+46
| | | | | | | | No extra libc header build step is done, so no extra toolchain is needed for preparing it. This saves a significant amount of build time and disk space Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain/gdb: Use correct folder name for ARC patchesAlexey Brodkin2016-06-134-13/+0
| | | | | | | | | | | Even though ARC tools were released as arc-2016.03 we have a little bit different version name for GDB. That's because both Binutils and GDB come from the same git repo but from different branches (and so different tags). Also removing an extra patch that made its way into release. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
* treewide: replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-072-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* toolchain: uClibc: Bump to the most recent version 1.0.14Alexey Brodkin2016-05-272-2/+2
| | | | | | This change updates uClibc version to the most recent 1.0.14 release. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
* toolchain: Bump ARC tools to arc-2016.03Alexey Brodkin2016-05-1929-23/+49
| | | | | | | | | | | | | | | | | This change switches ARC tools to the most recent arc-2016.03 version. ARC GNU tools of version arc-2016.03 bring some quite significant changes like: * Binutils v2.26+ (upstream commit id 202ac19 with additional ARC * patches) * GCC v4.8.5 * GDB 7.10 More about changes, improvements and fixes could be found here: https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03 Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
* toolchain: gcc: fix build with GCC 6Matthias Schiffer2016-05-081-0/+117
| | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* branding: add LEDE brandingJohn Crispin2016-03-242-5/+5
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* toolchain/uClibc: enable UCLIBC_HAS_OBSOLETE_BSD_SIGNALHauke Mehrtens2016-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is required to build net-snmp. If that options is disabled in uClibc then net-snmp doesn't detect sighold support on its configuration stage and so defines HAVE_SIGHOLD as 0. That in its turn causes compilation of the following branch of timerPause() in apps/snmpnetstat: ------------------>8---------------- int oldmask; oldmask = sigblock(sigmask(SIGALRM)); if (!signalled) { sigpause(0); } sigsetmask(oldmask); ------------------>8---------------- Now in uClibc all 3 sigblock(), sigmask() and sigsetmask() were removed back in 2005, see: https://git.busybox.net/uClibc/commit/?id=5aa7aa7fa7ec2a0fe567ac0b2595b46add6f3594 And all that causes net-snmp linkage to fail this way: ------------------>8---------------- .libs/if.o: In function `intpr': if.c:(.text+0x908): undefined reference to `sigmask' if.c:(.text+0x90e): undefined reference to `sigblock' if.c:(.text+0x924): undefined reference to `sigsetmask' ------------------>8---------------- If we enable UCLIBC_HAS_OBSOLETE_BSD_SIGNAL in uClibc then branch with sighold is used in timerPause() and everything builds as expected. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49178
* toolchain/gdb: Update to 7.11John Crispin2016-03-104-5/+5
| | | | | | | | Update gdb to version 7.11 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 48989
* musl: update to latest git, adds some fixes for the mips64 port and regular ↵Felix Fietkau2016-03-073-3308/+3736
| | | | | | | | expressions Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48957
* gcc: update gcc 5 to version 5.3.0Felix Fietkau2016-02-2939-65/+30
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48826
* toolchain: use musl instead of glibc by default for mips64Felix Fietkau2016-02-261-4/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48804