From 41b5b045ddca9286dab6b5345b6adba06514c1f1 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 27 Dec 2020 19:45:21 +0100 Subject: [PATCH] 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 '' 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/48937 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- util/xcompile/xcompile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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