From 0c2df6f02700b0aa3766ae3011e4c6162f6790e7 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 22 Nov 2017 16:14:09 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/22570 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/crossgcc/buildgcc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util/crossgcc/buildgcc') 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" -- cgit v1.2.3