Commit Graph

10 Commits (2f757bc989540acb986031b0b69d1274a922ef0f)

Author SHA1 Message Date
Jo-Philipp Wich 5d7f822b66 buildroot: allow specifying libc personality for external toolchains
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35703 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-20 15:06:10 +00:00
Jo-Philipp Wich 05e668d206 [scripts] ext-toolchain.sh: don't pass CFLAGS when wrapping ld
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31549 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-01 22:45:55 +00:00
Jo-Philipp Wich 8f49540aa7 [scripts] ext-toolchain.sh: rework generated gcc wrapper
Only append -L and -Wl,-rpath-link flags if the command line contains -l, -L, -shared or -static flags;
this is needed to suppress "-rpath-link: linker input file unused because linking not done" on each cc invocation.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29946 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-29 18:53:12 +00:00
Jo-Philipp Wich 5da516bb55 [scripts] ext-toolchain.sh: support --wrap with src == dest
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29944 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-29 17:42:10 +00:00
Jo-Philipp Wich c071f2b90b [scripts] ext-toolchain.sh: CONFIG_NLS -> CONFIG_BUILD_NLS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29782 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-19 00:03:52 +00:00
Jo-Philipp Wich f24b74fc72 [scripts] ext-toolchain.sh: fix typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29781 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-19 00:01:54 +00:00
Jo-Philipp Wich 4926d6074e [scripts] ext-toolchain.sh: add option to write .config
Add a new --config option to generate a .config from a given toolchain,
this allows for easy integration of external toolchains, e.g.

  ./scripts/ext-toolchain.sh --toolchain /opt/mips-2011.03 --cflags "-muclibc" --config atheros

to setup a ready-to-compile atheros target using the external CodeSourcery toolchain.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29780 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 23:46:06 +00:00
Jo-Philipp Wich 838e920855 [scripts] ext-toolchain.sh: properly handle toolchains without sysroot support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29772 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 04:03:15 +00:00
Jo-Philipp Wich 20a5105819 [scripts] ext-toolchain.sh:
- use GCC's own idea of the target name (-dumpmachine)
	- display help if called without args
	- add copyright foo
	- remove some leftover flag handling code


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29769 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 03:32:30 +00:00
Jo-Philipp Wich 39407a1e6e [scripts] add ext-toolchain.sh, a utility for external toolchains
The ext-toolchain.sh utility script implements various external toolchain tasks:
  * Testing of available features, like c++, soft-float or ipv6 support
  * Finding the libc implementation (uclibc or eglibc/glibc)
  * Inferring the GNU target name
  * Finding shared objects for packaging (libc, libpthread, ...)
  * Finding executables for packaging (ldd, gdbserver, ...)
  * Generating wrapper scripts for toolchain commands


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29765 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-01-18 03:03:24 +00:00