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>
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user