Elyes Haouas has uploaded this change for review.

View Change

util/xcompile: Remove the extra "/" added after {XGCCPATH}

XGCCPATH is equal "util/crossgcc/xgcc/bin/", so remove the extra "/"
added after "${XGCCPATH}.

Change-Id: Ide312b101af7f6e3c9b69e45db24c7d5abb8fc24
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
---
M util/xcompile/xcompile
1 file changed, 19 insertions(+), 6 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/70199/1
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 7fba665..d275015 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -52,14 +52,14 @@
}


-if [ "$("${XGCCPATH}/iasl" 2>/dev/null | grep -c ACPI)" -gt 0 ]; then
- IASL=${XGCCPATH}/iasl
+if [ "$("${XGCCPATH}iasl" 2>/dev/null | grep -c ACPI)" -gt 0 ]; then
+ IASL=${XGCCPATH}iasl
elif [ "$(iasl 2>/dev/null | grep -c ACPI)" -gt 0 ]; then
IASL=iasl
fi

-if program_exists "${XGCCPATH}/gcc"; then
- HOSTCC="${XGCCPATH}/gcc"
+if program_exists "${XGCCPATH}gcc"; then
+ HOSTCC="${XGCCPATH}gcc"
elif program_exists gcc; then
HOSTCC=gcc
elif program_exists cc; then
@@ -72,8 +72,8 @@
# none, just set the compiler to false(1) which will break early enough if
# used while being less confusing than errors about "g not found" when
# "$HOSTCXX -g" evaluates to "-g" and make drops the leading dash.
-if program_exists "${XGCCPATH}/g++"; then
- HOSTCXX="${XGCCPATH}/g++"
+if program_exists "${XGCCPATH}g++"; then
+ HOSTCXX="${XGCCPATH}g++"
elif program_exists g++; then
HOSTCXX=g++
elif program_exists c++; then

To view, visit change 70199. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ide312b101af7f6e3c9b69e45db24c7d5abb8fc24
Gerrit-Change-Number: 70199
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes Haouas <ehaouas@noos.fr>
Gerrit-MessageType: newchange