aboutsummaryrefslogtreecommitdiff
path: root/util/crossgcc/buildgcc
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2017-11-22 16:14:09 -0500
committerPatrick Georgi <pgeorgi@google.com>2017-11-28 10:48:01 +0000
commit0c2df6f02700b0aa3766ae3011e4c6162f6790e7 (patch)
treec50816636b1380f288e293fb82b626f066041df8 /util/crossgcc/buildgcc
parentb96712dfd9e99692804b4da01a4c543da2655f4c (diff)
util/crossgcc: Install a template for the edk2 build system
Add a CBSDK tool set template that can be used in edk2 simply by appending $prefix/share/edk2config/tools_def.txt to Conf/tools_def.txt. After that, build -t CBSDK uses the coreboot compilers, providing a more predictable compiler choice. Change-Id: I76b38c928b831ee6f31450aa0ad59b4f906f394d Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/22570 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-xutil/crossgcc/buildgcc5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 2f8a9f43ef..780d87a165 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -1236,6 +1236,11 @@ PROGNAME=$(basename "$0")
rm -f "$DESTDIR$TARGETDIR/share/$PROGNAME-*"
cp "$PROGNAME" "$DESTDIR$TARGETDIR/share/$PROGNAME-$CROSSGCC_VERSION-$CROSSGCC_COMMIT"
+# Adding edk2 tools template
+mkdir -p "$DESTDIR$TARGETDIR/share/edk2config"
+sed -e "s,@@PREFIX@@,$TARGETDIR,g" edk2tools.txt > "$DESTDIR$TARGETDIR/share/edk2config/tools_def.txt"
+printf "Copied EDK2 tools template ... ${green}ok${NC}\n"
+
cleanup
printf "\n${green}You can now run $NAME from $TARGETDIR.${NC}\n"