Dhyey Patel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/39407 )
Change subject: xcompile: check for prebuilt toolchain support ......................................................................
xcompile: check for prebuilt toolchain support
*) Currently xcompile only looks for the toolchain present in coreboot source folder. Add support to check if the prebuilt toolchain binary is installed in the OS.
*) Note: Current patch will only respect prebuilt toolchain present in linux distros. Need to add more robust solution for Windows and Macintosh.
Change-Id: I76000ebaf79e2c3c3329923aff132ac9a6bd5bd3 Signed-off-by: Griffin98 griffin98@protonmail.com --- M util/xcompile/xcompile 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/39407/1
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 59908c5..a2f3ee9 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -39,6 +39,12 @@ XGCCPATH=${XGCCPATH:-"$(pwd)/../../util/crossgcc/xgcc/bin/"} fi
+# Look for installed toolchain +if [ -d "/usr/share/crossgcc/bin/" ] +then + XGCCPATH=${XGCCPATH:-"/usr/share/crossgcc/bin/"} +fi + # coreboot crossgcc path if [ -d "$(pwd)/util/crossgcc/xgcc/bin/" ] then