diff options
author | Victor Chong <victor.chong@linaro.org> | 2018-03-29 03:26:16 +0100 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2018-03-29 23:45:18 +0100 |
commit | b37391801290b4adbbc821832470216e98d4e900 (patch) | |
tree | dfcbbbb309698ec4169d57cd16eb9cb46c089f67 | |
parent | de60cfc6fbe1765d637a3dea360f3da432534336 (diff) |
opteed-build.sh: Copy images to UEFI dir
atf-build.sh expects TOS binaries to be available in the UEFI image
dir so copy them there.
Fixes: 0c485dab ("opteed-build.sh: Remove copy of images to UEFI dir")
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Fathi Boudra <fathi.boudra@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
-rwxr-xr-x | opteed-build.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/opteed-build.sh b/opteed-build.sh index 4f49d08..2dd40ff 100755 --- a/opteed-build.sh +++ b/opteed-build.sh @@ -106,6 +106,19 @@ function build_platform TOS_BIN="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_bin`" TOS_BIN_EXTRA1="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_bin_extra1`" TOS_BIN_EXTRA2="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_bin_extra2`" + DESTDIR="$EDK2_DIR/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/" + COREDIR="out/$TOS_ARCH-plat-$TOS_PLATFORM/core" + if [ $VERBOSE -eq 1 ]; then + echo "Copying TOS binaries to '$DESTDIR'" + CPFLAGS="-v" + else + CPFLAGS="" + fi + for file in $COREDIR/{"$TOS_BIN","$TOS_BIN_EXTRA1","$TOS_BIN_EXTRA2"}; do + if [ -f "$file" ]; then + cp -a $CPFLAGS $file "$DESTDIR" + fi + done else return 1 fi |