diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2016-04-15 15:27:05 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2016-04-21 07:34:33 +0200 |
commit | e0383d2ce8b92b9efaa1e10f7234a7bb607a8a23 (patch) | |
tree | e23b33c7ba44f739924646419cbc63e040f91c7d /util/xcompile | |
parent | 479e31e0907e273b0ca4a8ad5326b1503144637a (diff) |
xcompile: support being called from payloads/external/.../.../
Change-Id: Icc1361fdd3a8369c4b442ce5b8807c549519c93a
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/14387
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/xcompile')
-rwxr-xr-x | util/xcompile/xcompile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 2479c39195..8e1cd10364 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -27,6 +27,12 @@ fi TMPFILE="" XGCCPATH=$1 +# payloads under payloads/external crossgcc path +if [ -d "$(pwd)/../../../../util/crossgcc/xgcc/bin/" ] +then + XGCCPATH=${XGCCPATH:-"$(pwd)/../../../../util/crossgcc/xgcc/bin/"} +fi + # libpayload crossgcc path if [ -d "$(pwd)/../../util/crossgcc/xgcc/bin/" ] then |