Message ID | 1470827167-9426-5-git-send-email-biagio.hkr@gmail.com |
---|---|
State | Changes Requested |
Headers | show |
Hello, On Wed, 10 Aug 2016 13:05:59 +0200, Biagio Montaruli wrote: > +if [ -e ${BINARIES_DIR}/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.5.bin ]; then > + if [ -e ${BINARIES_DIR}/boot.bin ]; then > + mkdir ${BINARIES_DIR}/arietta-at91bootstrap > + mv ${BINARIES_DIR}/*.bin ${BINARIES_DIR}/arietta-at91bootstrap > + cp -v ${BINARIES_DIR}/arietta-at91bootstrap/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.5.bin ${BINARIES_DIR}/boot.bin > + else > + mv ${BINARIES_DIR}/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.5.bin ${BINARIES_DIR}/boot.bin > + fi > +else > + echo "Cannot find the AT91bootstrap image for Arietta-G25" > +fi > + Seeing this, I believe the original logic in the genimage.cfg file was much better: - file boot.bin { - image = "at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.7.bin" - }; If you really want to have the proper filename in $(BINARIES_DIR), then do something as simple as: mv ${BINARIES_DIR}/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.5.bin ${BINARIES_DIR}/boot.bin The rest of the post-build script seems useless. Thanks, Thomas
diff --git a/board/acmesystems/arietta-g25/post-build.sh b/board/acmesystems/arietta-g25/post-build.sh new file mode 100755 index 0000000..2ebc00a --- /dev/null +++ b/board/acmesystems/arietta-g25/post-build.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -e ${BINARIES_DIR}/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.5.bin ]; then + if [ -e ${BINARIES_DIR}/boot.bin ]; then + mkdir ${BINARIES_DIR}/arietta-at91bootstrap + mv ${BINARIES_DIR}/*.bin ${BINARIES_DIR}/arietta-at91bootstrap + cp -v ${BINARIES_DIR}/arietta-at91bootstrap/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.5.bin ${BINARIES_DIR}/boot.bin + else + mv ${BINARIES_DIR}/at91sam9x5_arietta-sdcardboot-linux-zimage-dt-3.8.5.bin ${BINARIES_DIR}/boot.bin + fi +else + echo "Cannot find the AT91bootstrap image for Arietta-G25" +fi +
Add post build script for Arietta G25 in order to organize AT91bootstrap files after building and to make the final binary file used to boot Arietta Signed-off-by: Biagio Montaruli <biagio.hkr@gmail.com> --- board/acmesystems/arietta-g25/post-build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 board/acmesystems/arietta-g25/post-build.sh