toolchain: wrapper.sh: fix TOOLCHAIN_SYSROOT path
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Fri, 10 Feb 2023 15:02:06 +0000 (12:02 -0300)
committerEneas U de Queiroz <cotequeiroz@gmail.com>
Sun, 12 Feb 2023 13:55:05 +0000 (10:55 -0300)
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>
target/toolchain/files/wrapper.sh

index 6a0cdfff6c55b834e40bb1bbd457f76a0521e9e7..0b06343f09ff7a04196bd8c26f94056b79aef8d3 100755 (executable)
@@ -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