Felix Fietkau
b62cdc2ed6
binutils: run install twice instead of overwriting the final toolchain with the initial one
...
fixes compiler error after a binutils rebuild/reinstall without
rebuilding the rest of the toolchain
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43785 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-12-27 13:00:09 +00:00
Felix Fietkau
f4b6b84555
binutils: enable plugin support
...
--enable-plugin is necessary for gcc-ar, gcc-nm and gcc-ranlib to work, which
must be used with GCC 4.9 for LTO to work.
Without this option, gcc-ar etc. will just fail with
sorry - this program has been built without plugin support
Using the normal ar from binutils with GCC 4.9 and -flto will cause linking
with static "convenience" libraries to fail.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43783 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-12-27 12:59:53 +00:00
Felix Fietkau
95672f9712
binutils: remove linaro version string, it confuses gcc lto support detection
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43004 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-20 11:43:08 +00:00
Felix Fietkau
31cedb36a2
toolchain: fix binutils broken symlink
...
The Makefile for binutils creates a broken symlink to "binutils-linaro" in
"trunk/build_dir/toolchain-<target>_gcc-4.9-linaro_uClibc-0.9.33.2".
Modify the Makefile to point the symlink to the correct directory.
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42954 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-18 19:25:24 +00:00
Felix Fietkau
961d49f15b
binutils: remove old versions
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42776 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 18:40:38 +00:00
Felix Fietkau
83224c64f4
binutils: update -linaro to 2.24.0-2014.09
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42704 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-30 21:36:12 +00:00
Jonas Gorski
1e34874596
toolchain/binutils: do not install host libiberty.a into target lib dir
...
Binutils target build will pick it up and break build on e.g. arm:
libtool: link: arm-openwrt-linux-uclibcgnueabi-gcc -shared .libs/archive.o .libs/archures.o .libs/bfd.o .libs/bfdio.o .libs/bfdwin.o .libs/cache.o .libs/coffgen.o .libs/corefile.o .libs/format.o .libs/init.o .libs/libbfd.o .libs/opncls.o .libs/reloc.o .libs/section.o .libs/syms.o .libs/targets.o .libs/hash.o .libs/linker.o .libs/srec.o .libs/binary.o .libs/tekhex.o .libs/ihex.o .libs/stabs.o .libs/stab-syms.o .libs/merge.o .libs/dwarf2.o .libs/simple.o .libs/compress.o .libs/verilog.o .libs/elf32-arm.o .libs/elf32.o .libs/elf-nacl.o .libs/elf-vxworks.o .libs/elf.o .libs/elflink.o .libs/elf-attrs.o .libs/elf-strtab.o .libs/elf-eh-frame.o .libs/dwarf1.o .libs/elf32-gen.o .libs/cpu-arm.o -L/mnt/dl/slave/at91/build/staging_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/usr/lib -L/mnt/dl/slave/at91/build/staging_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/lib -L/mnt/dl/slave/at91/build/staging_dir/toolchain-arm_arm926ej-s_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/mnt/dl/slave/at91/build/staging_dir/toolchain-arm_arm926ej-s_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -L/mnt/dl/slave/at91/build/build_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/binutils-2.24/bfd/../libiberty/pic -liberty -lz -march=armv5te -mtune=arm926ej-s -mfloat-abi=soft -Wl,-lc -Wl,--as-needed -Wl,-lm -Wl,--no-as-needed -Wl,-soname -Wl,libbfd-2.24.so -o .libs/libbfd-2.24.so
/mnt/dl/slave/at91/build/staging_dir/toolchain-arm_arm926ej-s_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib/libiberty.a: could not read symbols: File format not recognized
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42430 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-07 09:38:10 +00:00
Imre Kaloz
5957d6c39d
[toolchain/binutils]: upgrade the Linaro binutils to 2.24-2013.12
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39210 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-07 15:03:55 +00:00
Imre Kaloz
c1855f67b0
[toolchain/binutils]: add support for Linaro binutils 2.23.2-2013.06
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37944 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-09-11 13:18:23 +00:00
Felix Fietkau
e12995bc2f
binutils: remove some unused obsolete versions
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37093 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-06-30 07:54:37 +00:00
Florian Fainelli
c60478ef64
toolchain/binutils: fix partial MD5 sum from r35813
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35816 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-26 16:52:36 +00:00
Florian Fainelli
b9f4311f67
toolchain/binutils: fix 2.19.1 MD5 sum
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35813 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-26 16:40:17 +00:00
Florian Fainelli
b316ab42bb
[toolchain] binutils: remove 2.21
...
There is no point in keeping around 2.21 when 2.21.1 which is a bugfix release
is there.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34265 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-19 19:37:43 +00:00
Florian Fainelli
8414b2f2c1
[toolchain] binutils: add support for 2.23.1
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34262 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-19 19:37:28 +00:00
Felix Fietkau
ce44bef353
build: add the + token to any commands that can pass through the jobserver, fixes parallel build on some systems
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33523 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-23 09:50:01 +00:00
Felix Fietkau
640986da6e
binutils: enable parallel builds
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33443 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-09-15 14:18:16 +00:00
Felix Fietkau
a8311020d6
toolchain: fix up lib64 symlink to lib before copying the initial prefix dir to avoid errors on copying
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32556 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-30 21:43:59 +00:00
Felix Fietkau
488f47237e
toolchain: keep the initial gcc around for later uclibc rebuilds
...
testing uclibc changes is tricky because the final gcc tends to miscompile
uclibc code or barf up internal compiler errors.
install binutils into $(TOOLCHAIN_DIR)/initial (without changing the configure
prefix) and copy it from there to $(TOOLCHAIN_DIR)/ so that the initial gcc
can be put into $(PATH) for the uclibc build, even if the final gcc
is already installed.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32553 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-30 18:12:15 +00:00
Imre Kaloz
85e9b90485
[toolchain/binutils]: add binutils 2.22
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30375 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-08 15:49:48 +00:00
Mirko Vogt
162666ffcc
[toolchain/binutils] adjust md5sum of v2.21.1 since archive got replaced meanwhile
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29836 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-20 22:54:30 +00:00
Hauke Mehrtens
749ff706f1
binutils: add binutils 2.21.1
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27919 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-08-06 09:53:58 +00:00
Imre Kaloz
e8454acdb4
[toolchain/binutils]: remove the CS variant - broken since it's addition
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25648 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-21 11:43:16 +00:00
Imre Kaloz
ec1ab875da
[toolchain/binutils]: add binutils 2.21
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25567 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-18 09:52:19 +00:00
Imre Kaloz
318e9e0922
[toolchain]: remove support for binutils 2.18 and 2.20
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23685 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-28 07:26:07 +00:00
Michael Büsch
ef39b40498
optionally support parallel toolchain build. This defaults to off, because certain toolchain versions are known to break on parallel build. However, it significantly speeds up the build and latest versions of the tools do compile fine.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23196 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-03 12:54:07 +00:00
Felix Fietkau
f1f392ab5f
toolchain: fix the sysroot mess by getting rid of $(TOOLCHAIN_DIR)/usr and moving it back to $(TOOLCHAIN_DIR), this change makes the toolchain relocatable again, which should fix the SDK
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22723 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-19 12:49:51 +00:00
Florian Fainelli
919f5d8ee5
[toolchain] fix graphite options with gcc-4.5, add libelf for LTO, fix mbsd_multi patch, patch from Bernhard Loos
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21046 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-20 16:18:08 +00:00
Alexandros C. Couloumbis
ff2a19f4ec
add binutils-2.20.1
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20137 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-11 11:50:25 +00:00
Felix Fietkau
aea2ea2dea
binutils: fix path to cloog and ppl
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18265 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-02 00:47:24 +00:00
Felix Fietkau
4067bdf501
add binutils 2.20
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18263 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-02 00:47:17 +00:00
Felix Fietkau
08cce6702e
add a binutils variant based on a binutils snapshot and codesourcery g++ enhancements (compiles, but fails to link the kernel)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18060 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-19 02:09:59 +00:00
Felix Fietkau
8f33d392f4
remove binutils 2.17 and 2.19
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15619 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-05 11:01:35 +00:00
Nicolas Thill
84f43d1453
[toolchain] move common variables to a dedicated include file
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14648 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-23 23:52:27 +00:00
Felix Fietkau
b892e1fb85
build system refactoring in preparation for allowing packages to do host-build steps
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14610 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-22 04:37:20 +00:00
Nicolas Thill
293b872934
[toolchain] cosmetic & coherency fixes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14397 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-03 21:25:48 +00:00
Nicolas Thill
3cdd8c0d66
[toolchain] binutils: add support for v2.19.1 (from #4492 , thanks to dwrobel)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14393 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-03 16:23:01 +00:00
Florian Fainelli
73b13003a6
[toolchain] libssp should also be configured in binutils
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14376 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-02 23:45:33 +00:00
Felix Fietkau
8bce44babc
install readelf to STAGING_DIR_HOST (eglibc requires it, not all systems have it)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14196 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-26 04:54:25 +00:00
Felix Fietkau
9f7a7201f3
add binutils 2.19 (patch from #4367 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14075 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-17 19:29:09 +00:00
Nicolas Thill
3b75e47f8f
[massive] add support for alternative C libraries (currently only glibc/eglibc)
...
other (related) changes:
- kernel headers are now installed using "make headers_install" on 2.6
- target names now contain an openwrt "vendor" tag (e.g. mips-openwrt-linux-gnu)
- build directory names now contain gcc/libc name/version
- default cpu for x86 is now i486 (required to build glibc/eglibc)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13931 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-08 01:49:11 +00:00
Imre Kaloz
d3cdf53d78
nuke binutils 2.16.1 - old, unused, buggy
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13481 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-02 18:23:25 +00:00
Nicolas Thill
850a33d79c
add md5sums for binutils & gcc and use the GNU mirror facility
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13143 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-08 21:18:33 +00:00
Felix Fietkau
78aec4b21d
disable autorebuild for the toolchain, as it can easily lead to build breakages
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12492 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-02 10:57:35 +00:00
Nicolas Thill
119bfa9050
use qstrip macro to strip quoted CONFIG_* strings
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11832 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-14 23:24:58 +00:00
Jeremy Kerr
e5eb114697
[toolchain] provide a cleaner way to specify a biarch toolchain build
...
Currently, to build a biarch toolchain, we need to explicitly give
options to the binutils and gcc configure commands:
CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS="--enable-targets=powerpc64-linux-uclibc"
CONFIG_EXTRA_GCC_CONFIG_OPTIONS="--enable-biarch --enable-targets=powerpc64-linux-uclibc"
This change replaces the command line options with an 'extra arch'
configure option:
CONFIG_EXTRA_TARGET_ARCH=y
CONFIG_EXTRA_TARGET_ARCH_NAME="powerpc64"
And a way to invoke this extra arch on the compiler command-line:
CONFIG_EXTRA_TARGET_ARCH_OPTS="-m64"
In this case, this results in an extra compiler:
'powerpc64-linux-uclibc-gcc', which invokes
'powerpc-linux-uclibc-gcc -m64'
This is a more standard way of building biarch toolchains, and allows
the packages to not have to care about how to invoke the 64-bit
compiler.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10802 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-12 23:14:42 +00:00
Imre Kaloz
ffc2b70896
update binutils autoconf scripts, too
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10005 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-28 18:13:08 +00:00
Imre Kaloz
08e9c42e67
fixup softfloat handling
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10003 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-28 18:06:47 +00:00
Felix Fietkau
3a5ab101f0
Add binutils extra configure options
...
Currently, we can specify extra configure options for gcc, but not
binutils.
This change adds an EXTRA_BINUTILS_CONFIG_OPTIONS config variable,
so we can add configure options for binutils.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9407 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-23 06:23:20 +00:00
Felix Fietkau
d10a56dc58
build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8362 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-07 00:04:25 +00:00
Felix Fietkau
7170cf7ed0
remove the custom Build/Prepare override in binutils, use PATCH_DIR, refresh patches using quilt
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7752 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-28 07:20:42 +00:00