aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
Commit message (Collapse)AuthorAgeFilesLines
* 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
* musl: add mips64 portFelix Fietkau2016-02-261-0/+2714
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48803
* toolchain/glibc: remove obsolete versionsFelix Fietkau2016-02-2516-1393/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48780
* musl: update to version 1.1.14Felix Fietkau2016-02-257-17926/+8
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48762
* toolchain: add support of ARCv2 architectureJohn Crispin2016-02-183-1/+13
| | | | | | | | | | | | | | | | | | | | This change adds support of ARC ISAv2 processors in OpenWRT toolchain. In general gcc for ARC may compile code for both ISA versions simultaneously but libgcc will be built only for default architecture that's why it's necessary to specify --with-cpu on gcc configuration. As for uClibc we need to use different configurations for different ARC ISAs. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Felix Fietkau <nbd@openwrt.org> Cc: Jo-Philipp Wich <jow@openwrt.org> Cc: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 48739
* toolchain: use latest glibc 2.21 and 2.22 revisionsJo-Philipp Wich2016-02-174-22/+22
| | | | | | | | | Refresh patches and rework Makefile to fetch glibc from release branches instead of relying on tarballs. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48735
* toolchain: mark eglibc 2.19 brokenJo-Philipp Wich2016-02-171-0/+1
| | | | | | | | Upstream is dead and the last available version has multiple open CVEs. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48734
* toolchain/gdb: update to 7.10.1John Crispin2016-02-124-3/+3
| | | | | | | | | Minor bugfix update, released in Dec 2015 https://www.gnu.org/software/gdb/news/ Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 48708
* musl: fix an alignment issue that was breaking ldso on ARMv5Felix Fietkau2016-01-311-1/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48577
* musl: fix GDB debugging on mips (local, remote)Felix Fietkau2016-01-301-0/+55
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48575
* musl: update to the latest git version, fixes TLS issuesFelix Fietkau2016-01-307-7745/+17878
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48574
* glibc: switch to downloading version 2.22 via tarball instead of git to ↵Felix Fietkau2016-01-292-7/+13
| | | | | | | | improve mirror support Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48556
* glibc: switch to version 2.22 by defaultFelix Fietkau2016-01-292-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48555
* toolchain: fix default toolchain selection for mips64 added in r47355Felix Fietkau2016-01-291-1/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48554
* musl: fix mips vdso handlingHauke Mehrtens2016-01-251-3/+54
| | | | | | | | | | mips returns -ENOSYS in case it can not handle the vdso call and wants the libc to call the original syscall in such a case. This fixes the patch to add such handling. I hope this fixes the random reboots I got. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48501
* musl: update to 1.1.12 + git from 2016-01-22Felix Fietkau2016-01-259-201/+8125
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48486
* gcc: backport a libgcc fix for a dependency on libc write() on ARMFelix Fietkau2016-01-251-0/+35
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48485
* musl: Add format attribute to some function declarationsHauke Mehrtens2016-01-241-0/+209
| | | | | | | | | | | | | | | | | | | | | | | | | GCC and Clang are able to check the format arguments given to a function and warn the user if there is a error in the format arguments or if there is a potential uncontrolled format string security problem in the code. GCC does this automatically for some functions like printf(), but it is also possible to annotate other functions in a way that it will check them too. This feature is used by glibc for many functions. This patch adds the attribute to the some functions of musl expect for these functions where gcc automatically adds it. GCC automatically adds checks for these functions: printf, fprintf, sprintf, scanf, fscanf, sscanf, strftime, vprintf, vfprintf and vsprintf. The documentation from gcc is here: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html The documentation from Clang is here: http://clang.llvm.org/docs/AttributeReference.html#format-gnu-format Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48467
* musl: mips: add vdso supportHauke Mehrtens2016-01-231-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | vdso support is available on mips starting with kernel 4.4, see kernel commit a7f4df4e21 "MIPS: VDSO: Add implementations of gettimeofday() and clock_gettime()" for details. These are my micro benchmark results for 1.000.000 calls to clock_gettime(CLOCK_MONOTONIC, &tp) without vdso: root@OpenWrt:/# time ./vdso-test real 0m 0.95s user 0m 0.24s sys 0m 0.70s with vdso: root@OpenWrt:/# time /usr/bin/vdso-test real 0m 0.35s user 0m 0.34s sys 0m 0.00s Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 48466
* musl: backport a fix that caused the wrong relocations to be emitted on some ↵Felix Fietkau2016-01-211-0/+55
| | | | | | | | architectures Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48444
* toolchain: Reverse glibc/eglibc conditionals to check for eglibcFelix Fietkau2016-01-201-4/+4
| | | | | | | | | This will make adding future glibc versions easier because the conditionals won't have to be modified again. Signed-off-by: Michael Marley <michael@michaelmarley.com> SVN-Revision: 48399
* gcc: drop version 4.8-linaroFelix Fietkau2016-01-2040-1610/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48395
* binutils: switch to version 2.25.1 by defaultFelix Fietkau2016-01-202-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48394
* toolchain/musl: remove old CONFIG_MUSL_ENABLE_DEBUG optionFelix Fietkau2016-01-193-12/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48387
* toolchain: Add glibc 2.22Felix Fietkau2016-01-195-1/+76
| | | | | | Signed-off-by: Michael Marley <michael@michaelmarley.com> SVN-Revision: 48383
* toolchain/musl: enable debug informationFelix Fietkau2016-01-191-1/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48363
* gcc: remove v4.6 relictsFelix Fietkau2015-12-231-10/+0
| | | | | | | | | Fixes: commit f17e56eff5b9 ("gcc: remove version 4.6, it is no longer needed") CC: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com> SVN-Revision: 47965
* uClibc-ng: update to 1.0.9Felix Fietkau2015-12-032-3/+3
| | | | | | | | Update to 1.0.9, switch to XZ tarball. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org> SVN-Revision: 47715
* gcc: make colors optional based on the GCC_COLORS env varFelix Fietkau2015-11-251-0/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47642
* gcc: fix internal compiler error on MIPS with MIPS16 enabled (triggered by ↵Felix Fietkau2015-11-182-1/+24
| | | | | | | | libpcap) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47494
* gcc: switch to 5.2.0 by defaultFelix Fietkau2015-11-172-5/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47492
* gdb: use separate patches for upstream and ARC gdbFelix Fietkau2015-11-177-0/+66
| | | | | | | | | | | | | | | | | | | With bump of upstream GDB from 7.9 to 7.10 at least 100-no_extern_inline.patch became incompatible with ARC gdb (which is still based on upstream 7.9 branch). So until ARC support is not completely upstreamed (which we expect to happen in coming months) we'll need to have separate patches for ARC gdb. This time clean build-tested for Netgear WNDRMAC & AXS101. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Felix Fietkau <nbd@openwrt.org> Cc: John Crispin <blogic@openwrt.org> Cc: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 47491
* gcc: add a patch to 5.x that supports translation of __FILE__ pathsFelix Fietkau2015-11-171-0/+182
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47490
* musl: fix handling of point-to-point interfaces in getifaddrs()Jo-Philipp Wich2015-11-161-0/+18
| | | | | | | | | | | | Current musl reports the peer (remote) address of a point-to-point interface and does not store the local address at all. Apply the same special treatment of IFA_LOCAL to musl's getifaddrs() which is also used in glibc and uclibc. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47488
* gcc: set the isl/cloog prefix when graphite is enabled, disable it ↵Felix Fietkau2015-11-131-0/+10
| | | | | | | | explicitly if it is disabled in the config Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47465
* tools: add isl (used for graphite on GCC 5)Felix Fietkau2015-11-131-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47464
* toolchain/gdb: disable python supportFelix Fietkau2015-11-101-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47446
* gcc: remove version 4.6, it is no longer neededFelix Fietkau2015-11-1027-1102/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47443
* gcc: enable LTO support unconditionallyFelix Fietkau2015-11-101-5/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47442
* gcc: use version 5.x for octeon instead of 4.6 - it has been tested with glibcFelix Fietkau2015-11-101-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47441
* toolchain: add support of ARC architectureFelix Fietkau2015-11-1028-31/+891
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes binutils, gcc, gdb and uClibc-ng. Latest release of ARC gcc (as of today it is "arc-2015.06") is based on upstream gcc 4.8.4. Sources are available on GitHub, see: https://github.com/foss-for-synopsys-dwc-arc-processors/gcc Latest release of ARC binutils (as of today it is "arc-2015.06") is based on upstream binutils 2.23. Sources are available on GitHub, see: https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/releases/tag/arc-2015.06 Latest release of ARC GDB (as of today this is "arc-2015.06-gdb") is based on upstream gdb 7.9.1. Sources are available on GitHub, see: https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/releases/tag/arc-2015.06-gdb Note that for binutils and gdb that come from unified git repository (which is the case for upstream binutils/gdb today) we need to disable building of gdb in binutils and binutils in gdb hence in binutils: ------>8------ --disable-sim --disable-gdb ------>8------ and in gdb: ------>8------ --disable-binutils --disable-ld --disable-gas ------>8------ Also in gdb we disable sim because if the following breakage while building with it: ------------>8------------ /usr/bin/env bash ./../common/genmloop.sh -shell /usr/bin/env bash \ -mono -fast -pbb -switch sem5-switch.c \ -cpu a5f -infile ./mloop5.in \ -outfile-suffix 5 unknown option: bash Makefile:699: recipe for target 'stamp-5mloop' failed make[7]: *** [stamp-5mloop] Error 1 ------------>8------------ Cc: Felix Fietkau <nbd@openwrt.org> Cc: John Crispin <blogic@openwrt.org> Cc: Jonas Gorski <jogo@openwrt.org> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> SVN-Revision: 47438
* toolchain: remove obsolete kernel version checkFelix Fietkau2015-11-071-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47413
* uClibc: mark as broken for all architectures that use musl by defaultFelix Fietkau2015-11-071-0/+1
| | | | | | | | We will only support uClibc for targets that actually need it. Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47401
* toolchain/gdb: update to 7.10, sync with target package versionFelix Fietkau2015-11-064-8/+8
| | | | | | | | | Update toolchain gdb to 7.10. Refresh patches. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 47396