summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2020-12-27 19:45:21 +0100
committerHung-Te Lin <hungte@chromium.org>2020-12-29 14:36:16 +0000
commit41b5b045ddca9286dab6b5345b6adba06514c1f1 (patch)
treed2d9e09e16a81d4c44f00dbccf8a68779c425122 /util
parent8a02d98c5af8e4a1545ceb72593e3e7561107b79 (diff)
util/xcompile: fix XGCCPATH handling
This patch fixes the build with an external (coreboot) toolchain. When the toolchain is not under util/crossgcc/xgcc, setting XGCCPATH to /path/to/toolchain results in the error: toolchain.inc:169: The coreboot toolchain version of iasl '<date>' was not found The reason is that the xcompile script incorrectly assumes XGCCPATH to have a trailing slash. Change-Id: Ifcc4bd2b081fa3603420dc0a8cab3b47967ebc65 Signed-off-by: Michele Guerini Rocco <rnhmjoj@inventati.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48937 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'util')
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index c2374230d6..9fdda03406 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -51,7 +51,7 @@ program_exists() {
if [ "$("${XGCCPATH}/iasl" 2>/dev/null | grep -c ACPI)" -gt 0 ]; then
- IASL=${XGCCPATH}iasl
+ IASL=${XGCCPATH}/iasl
elif [ "$(iasl 2>/dev/null | grep -c ACPI)" -gt 0 ]; then
IASL=iasl
fi