aboutsummaryrefslogtreecommitdiffstats
path: root/target/toolchain
Commit message (Collapse)AuthorAgeFilesLines
* treewide: add ORIG_PATH variableMichael Pratt2023-06-121-0/+1
| | | | | | | | | | | | | | Add a variable that stores the original value of $PATH in the host system's shell, before Make alters it. This can be useful for when it is necessary to ignore symlinks and programs made by the build system. Define this new variable before all instances of 'export PATH:=' or similar. Signed-off-by: Michael Pratt <mcpratt@pm.me> (cherry picked from commit d87a8aa148ddf93b199a759deb088fff73787025)
* toolchain: wrapper.sh: use --rpath-linkEneas U de Queiroz2023-02-121-2/+2
| | | | | | | Use --rpath-link option instead of --rpath. The former is used only at link-time, while the latter is searched at run-time as well. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
* toolchain: wrapper.sh: fix TOOLCHAIN_SYSROOT pathEneas U de Queiroz2023-02-121-1/+1
| | | | | | | | | 62c1740676 changed the location of the script from $(TOOLCHAIN_DIR)/usr to $(TOOLCHAIN_DIR), but the TOOLCHAIN_SYSROOT used in wrapper.sh was still expecting to find the script under usr/bin. Fixes: 62c1740676 toolchain: fix the sysroot mess by getting... Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
* toolchain: switch packaged toolchain to tar.xzPaul Spooren2021-10-211-4/+5
| | | | | | | | Currently the tar.bz2 while ImageBuilder and SDK switched to tar.xz. Unify it for faster compression since it will make use of multi-threading. Signed-off-by: Paul Spooren <mail@aparcar.org>
* config: pack toolchain per default on buildbotsPaul Spooren2021-10-081-0/+1
| | | | | | | The toolchain can be used for accelerated CI builds. This commit enabled the packing of it by default on buildbots. Signed-off-by: Paul Spooren <mail@aparcar.org>
* target: fix copying of licenses for SDK/toolchainAdrian Schmutzler2021-02-141-1/+4
| | | | | | | | | | | | | | | The SDK and target/toolchain copy the license file into their directories. During the rename/move from LICENSE to a LICENSES folder, this has not been updated. Update it now, and include the new COPYING file. While at it, improve formatting/indent. Fixes: 882e3014610b ("LICENSES: include all used licenses in LICENSES directory") Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* build: improve ccache supportRoman Yeryomin2020-07-111-1/+1
| | | | | | | | | | | | | | | | | | Set CCACHE_DIR to $(TOPDIR)/.ccache and CCACHE_BASEDIR to $(TOPDIR). This allows to do clean and dirclean. Cache hit rate for test build after dirclean is ~65%. If CCACHE is enabled stats are printed out at the end of building process. CCACHE_DIR config variable allows to override default, which could be useful when sharing cache with many builds. cacheclean make target allows to clean the cache. Changes from v1: - remove ccache directory using CCACHE_DIR variable - remove ccache leftovers from sdk and toolchain make files - introduce CONFIG_CCACHE_DIR variable - introduce cacheclean make target Signed-off-by: Roman Yeryomin <roman@advem.lv>
* toolchain/wrapper.sh: fix remaining shellcheck warningsPetr Štetiar2020-07-111-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes following warnings: In target/toolchain/files/wrapper.sh line 18: REALNAME=$(readlink -f $0) ^-- SC2086: Double quote to prevent globbing and word splitting. -- In target/toolchain/files/wrapper.sh line 20: REALNAME_BASE=$(basename $REALNAME) ^-------^ SC2086: Double quote to prevent globbing and word splitting. -- In target/toolchain/files/wrapper.sh line 21: REALNAME_DIR=$(dirname $REALNAME) ^-------^ SC2086: Double quote to prevent globbing and word splitting. -- In target/toolchain/files/wrapper.sh line 74: exec $TARGET_TOOLCHAIN_TRIPLET-$BINARY.bin $GCC_SYSROOT_FLAGS $TARGET_FUNDAMENTAL_CFLAGS $TARGET_ROOTFS_CFLAGS "$@" ^-----------------------^ SC2086: Double quote to prevent globbing and word splitting. -- In target/toolchain/files/wrapper.sh line 77: exec $TARGET_TOOLCHAIN_TRIPLET-$BINARY.bin $LD_SYSROOT_FLAGS $TARGET_FUNDAMENTAL_LDFLAGS "$@" ^-----------------------^ SC2086: Double quote to prevent globbing and word splitting. -- In target/toolchain/files/wrapper.sh line 80: exec $TARGET_TOOLCHAIN_TRIPLET-$BINARY.bin $TARGET_FUNDAMENTAL_ASFLAGS "$@" ^-----------------------^ SC2086: Double quote to prevent globbing and word splitting. -- In target/toolchain/files/wrapper.sh line 83: exec $TARGET_TOOLCHAIN_TRIPLET-$BINARY.bin "$@" ^-----------------------^ SC2086: Double quote to prevent globbing and word splitting. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* toolchain/wrapper.sh: Replace read with read -rRosen Penev2020-07-111-1/+1
| | | | | | | | Without -r, backslashes would get mangled. Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* toolchain: wrapper.sh: harmonize leading whitespacesAdrian Schmutzler2019-12-311-10/+10
| | | | | | | Convert leading spaces to tabs and generally harmonize leading whitespace indent in the file. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* toolchain: wrapper.sh: use /bin/sh instead of bashRosen Penev2019-12-311-1/+1
| | | | | | | | No bash features are actually used here. Signed-off-by: Rosen Penev <rosenp@gmail.com> [slightly adjust commit title] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* toolchain/wrapper: replace legacy backticks with $()Rosen Penev2019-12-311-3/+3
| | | | | | | | | | This replaces deprecated backticks by more versatile $(...) syntax. Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com> [alter commit title, extend commit message] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* target/toolchain/files/wrapper.sh: simplify 'case'Eneas U de Queiroz2019-07-151-9/+1
| | | | | | | Removed an eglibc remnant, and while at it, grouped all of the TOOLCHAIN_PLATFORMs using the same FLAGS together. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
* merge: etc: update remaining filesZoltan HERPAI2017-12-081-1/+1
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* merge: targets: update image generation and targetsZoltan HERPAI2017-12-081-3/+3
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* build: get rid of host.mkFelix Fietkau2017-02-261-1/+0
| | | | | | Defined required host related variables in toplevel.mk instead Signed-off-by: Felix Fietkau <nbd@nbd.name>
* target/toolchain: Fix toolchain packaging without package buildMicha Lenk2016-09-061-0/+1
| | | | | | | | | | | | If the toolchain is packaged for later use as external toolchain, the resulting tarball is created in $BIN_DIR. But without building all packages first that directory isn't created, hence 'make target/toolchain/compile' fails when trying to create the toolchain tarball with error "Cannot open: No such file or directory". To fix that the $BIN_DIR is created before using it. Signed-off-by: Micha Lenk <micha@lenk.info>
* IB/SDK/toolchain: use lower cases filenamesAlexander Couzens2016-06-011-1/+1
| | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* IB/SDK/toolchain: use VERSION_DIST_SANITIZED instead of VERSION_DISTAlexander Couzens2016-06-011-1/+1
| | | | | | VERSION_DIST can contains spaces which produces problems when used as file name Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* toolchain: rename OpenWrt into LEDEAlexander Couzens2016-05-052-4/+4
| | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* targets: Use configured distribution name for SDK, IB, and Toolchain tarball ↵Felix Fietkau2016-01-031-1/+1
| | | | | | | | | | | | names We allow to configure the version distribution name; let's also use it for the tarballs (SDK, ImageBuilder, and SDK). Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> SVN-Revision: 48081
* target/toolchain: Fix tarball filenameFelix Fietkau2016-01-031-0/+1
| | | | | | | | | | Toolchain makefile was missing include of version.mk so the openwrt version was missing from the filename. This patch fixes that. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> SVN-Revision: 48080
* toolchain: respect CONFIG_VERSION_FILENAMES and add host system suffixJo-Philipp Wich2015-02-071-4/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44311
* target/toolchain/Config.in: Clarify packaging of toolchain.John Crispin2014-10-141-3/+5
| | | | | | | | | Change the "help" info to emphasize that this option refers specifically to packaging the toolchain that would be built anyway. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> SVN-Revision: 42912
* target/toolchain: strip files, leave out the initial gccFelix Fietkau2014-08-261-0/+10
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42302
* build: consistently use 'depends on' instead of 'depends'Felix Fietkau2013-04-171-1/+1
| | | | | | | | make the syntax more compatible with kernel menuconfig Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36351
* add preliminary support for muslFlorian Fainelli2012-11-231-0/+4
| | | | | | | | Musl is an alternative C-library, see http://www.musl-libc.org for more infos. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34314
* derive system from hostcc to allow building inside a chrootJohn Crispin2012-08-221-2/+2
| | | | SVN-Revision: 33228
* target/toolchain: fix installation after r22723Gabor Juhos2010-09-041-3/+3
| | | | SVN-Revision: 22887
* target/toolchain: match toolchain directory name changes in r19885 & r20215 ↵Nicolas Thill2010-04-151-3/+3
| | | | | | (closes: #7148 & #7162) SVN-Revision: 20865
* do not use the wrapper scripts for exportable toolchains internally. on some ↵Felix Fietkau2009-11-192-0/+101
| | | | | | systems the wrapper scripts are broken, and their use should be opt-in SVN-Revision: 18454
* Add a target (CONFIG_MAKE_CONFIG) that creates an exportable toolchain. The ↵Felix Fietkau2009-11-143-0/+61
toolchain will zipped and saved under $(TOPDIR)/bin directory. Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com> SVN-Revision: 18419