aboutsummaryrefslogtreecommitdiffstats
path: root/target/toolchain/files
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/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>
* toolchain: rename OpenWrt into LEDEAlexander Couzens2016-05-051-1/+1
| | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* 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
* do not use the wrapper scripts for exportable toolchains internally. on some ↵Felix Fietkau2009-11-191-0/+91
| | | | | | 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-141-0/+2
toolchain will zipped and saved under $(TOPDIR)/bin directory. Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com> SVN-Revision: 18419