[Buildroot] [PATCH 03/11] Add post-build.sh script for Arietta G25
Biagio Montaruli
biagio.hkr at gmail.com
Wed Aug 10 11:05:59 UTC 2016
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 at 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
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
+
--
2.7.4
More information about the buildroot
mailing list