diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2018-02-01 10:27:30 +0800 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2018-02-05 15:59:07 +0000 |
commit | 8ce47075b5886bde777047b1bdb59eb4440712df (patch) | |
tree | fc9a2266d1e2a08fe3b55ad47ee6ac0404fa07b0 | |
parent | cc1993f511acf6406bcb583ef697cad2fe480a32 (diff) |
atf-build: migrate to bl2_el3
When migrate to BL2_EL3 in ARM Trusted Firmware, bl2.bin should
be built out of fip.bin. Otherwise, non-TF ROM failes to load
bl2.bin because it doesn't recognize fip.bin format.
So copy bl2.bin to UEFI folder after ATF built.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
-rwxr-xr-x | atf-build.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/atf-build.sh b/atf-build.sh index 65d4dbc..5e03569 100755 --- a/atf-build.sh +++ b/atf-build.sh @@ -182,9 +182,17 @@ function build_platform # Copy resulting images to UEFI image dir # if [ $VERBOSE -eq 1 ]; then - echo "Copying bl1.bin and fip.bin to "$WORKSPACE/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/"" + echo "Copying bl1.bin bl2.bin and fip.bin to "$WORKSPACE/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/"" + echo "Copying images to '$WORKSPACE/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/':" + CPFLAGS="-v" + else + CPFLAGS="" fi - cp -a build/"$ATF_PLATFORM/$BUILD_TYPE"/{bl1,fip}.bin "$WORKSPACE/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/" + for file in build/"$ATF_PLATFORM/$BUILD_TYPE"/{bl1,bl2,fip}.bin; do + if [ -f "$file" ]; then + cp -a $CPFLAGS "$file" "$WORKSPACE/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV" + fi + done else return 1 fi |