aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2023-02-10 12:02:06 -0300
committerEneas U de Queiroz <cotequeiroz@gmail.com>2023-02-12 10:55:05 -0300
commit9a49e257d638b2bb84e050e26942f496c14fa6f5 (patch)
tree6291eb9bdb361f4328a2cf53caa610d0a8016527
parenteeba2a67caa2b9b92ffb9d756089408643971a2e (diff)
downloadupstream-9a49e257d638b2bb84e050e26942f496c14fa6f5.tar.gz
upstream-9a49e257d638b2bb84e050e26942f496c14fa6f5.tar.bz2
upstream-9a49e257d638b2bb84e050e26942f496c14fa6f5.zip
toolchain: wrapper.sh: fix TOOLCHAIN_SYSROOT path
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>
-rwxr-xr-xtarget/toolchain/files/wrapper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/toolchain/files/wrapper.sh b/target/toolchain/files/wrapper.sh
index 6a0cdfff6c..0b06343f09 100755
--- a/target/toolchain/files/wrapper.sh
+++ b/target/toolchain/files/wrapper.sh
@@ -46,7 +46,7 @@ TOOLCHAIN_BIN_DIR="$REALNAME_DIR/"
export PATH="$TOOLCHAIN_BIN_DIR":$PATH
export GCC_HONOUR_COPTS
-TOOLCHAIN_SYSROOT="$TOOLCHAIN_BIN_DIR/../.."
+TOOLCHAIN_SYSROOT="$TOOLCHAIN_BIN_DIR/.."
if [ ! -d "$TOOLCHAIN_SYSROOT" ]; then
echo "Error: Unable to determine sysroot (looking for $TOOLCHAIN_SYSROOT)!" >&2
exit 1