aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ext-toolchain.sh
Commit message (Collapse)AuthorAgeFilesLines
* scripts: ext-toolchain: add support for muslChristian Marangi2022-07-241-2/+12
| | | | | | | | Openwrt now supports only glibc and musl. Add support for musl and rework the libc check to handle the new config flags and correctly compile package basend on that. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* scripts: ext-toolchain: add support for info.mk in probe_ccChristian Marangi2022-07-241-0/+7
| | | | | | | Openwrt generate info.mk that contains the libc type. For probe_cc check if the file exist and parse directly it for LIBC type. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* scripts: ext-toolchain: actually probe libc type on config generationChristian Marangi2022-07-241-0/+1
| | | | | | | | Currently we never call probe_cc before config generation, this cause the script to never actually detect the correct libc type. Call probe_cc before config generation to correctl set the .config file. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* scripts: ext-toolchain: add option to overwrite configChristian Marangi2022-07-241-4/+18
| | | | | | | | It can be useful to overwrite an already generated config. Option are simply added at the end of the config and make defconfig will overwrite the relevant option with the new one. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* scripts: ext-toolchain: fix wrong prefix in print_config generationChristian Marangi2022-07-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | The parsed prefix in print_config is wrong and this produce broken generated .config that won't work with any external toolchain. Currently the prefix from a CC of 'arm-openwrt-linux-muslgnueabi-gcc-12.1.0' produce a prefix 'arm-openwrt-linux-muslgnueabi-gcc-' This is wrong as the real prefix should be 'arm-openwrt-linux-muslgnueabi-' This is probably caused by a change in how the toolchain is now handled that now append also the gcc version. Probably in ancient days the version wasn't part of the name and the prefix generation stripped the '-gcc' instead of the gcc version. Fix this and correctly strip the gcc version and the gcc suffix to correctly call toolchain bins. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* scripts: fix various typosJosh Soref2021-10-311-1/+1
| | | | | | | | | This only affects typos in comments or user-facing output. Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> [only picks changes to scripts, drop "commandline" replacement, fix case for "arbitrary", improve commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* scripts: Probe external toolchains for libthread-dbFlorian Fainelli2017-05-111-0/+1
| | | | | | | libthread-db is a package that can be configured for external toolchains, so let's have the script probe for it. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* scripts: Probe external toolchains for libgompFlorian Fainelli2017-05-111-1/+2
| | | | | | | Now that libgomp can be a package, probe external toolchains for that library. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* treewide: replace jow@openwrt.org with jo@mein.ioJo-Philipp Wich2016-06-071-1/+1
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* scripts: fix 64bit uclibc external toolchain detectionJohn Crispin2015-07-141-1/+1
| | | | | | | | according to gcc, UCLIBC_DYNAMIC_LINKER64 Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> SVN-Revision: 46362
* buildroot: allow specifying libc personality for external toolchainsJo-Philipp Wich2013-02-201-0/+4
| | | | SVN-Revision: 35703
* ext-toolchain.sh: don't pass CFLAGS when wrapping ldJo-Philipp Wich2012-05-011-1/+1
| | | | SVN-Revision: 31549
* ext-toolchain.sh: rework generated gcc wrapper Only append -L and ↵Jo-Philipp Wich2012-01-291-13/+44
| | | | | | -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. SVN-Revision: 29946
* ext-toolchain.sh: support --wrap with src == destJo-Philipp Wich2012-01-291-3/+9
| | | | SVN-Revision: 29944
* ext-toolchain.sh: CONFIG_NLS -> CONFIG_BUILD_NLSJo-Philipp Wich2012-01-191-2/+2
| | | | SVN-Revision: 29782
* ext-toolchain.sh: fix typoJo-Philipp Wich2012-01-191-2/+1
| | | | SVN-Revision: 29781
* ext-toolchain.sh: add option to write .config Add a new --config option to ↵Jo-Philipp Wich2012-01-181-3/+137
| | | | | | | | | | 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. SVN-Revision: 29780
* ext-toolchain.sh: properly handle toolchains without sysroot supportJo-Philipp Wich2012-01-181-9/+6
| | | | SVN-Revision: 29772
* ext-toolchain.sh: - use GCC's own idea of the target name (-dumpmachine) - ↵Jo-Philipp Wich2012-01-181-21/+21
| | | | | | display help if called without args - add copyright foo - remove some leftover flag handling code SVN-Revision: 29769
* add ext-toolchain.sh, a utility for external toolchains The ext-toolchain.sh ↵Jo-Philipp Wich2012-01-181-0/+410
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 SVN-Revision: 29765