[Buildroot] [PATCH 08/11] Add post-build.sh script for Aria G25
Biagio Montaruli
biagio.hkr at gmail.com
Wed Aug 10 11:06:04 UTC 2016
Add post build script for Aria G25 in order to organize
AT91bootstrap files after building and to make the final
binary file used to boot Aria board
Signed-off-by: Biagio Montaruli <biagio.hkr at gmail.com>
---
board/acmesystems/aria-g25/post-build.sh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100755 board/acmesystems/aria-g25/post-build.sh
diff --git a/board/acmesystems/aria-g25/post-build.sh b/board/acmesystems/aria-g25/post-build.sh
new file mode 100755
index 0000000..b666039
--- /dev/null
+++ b/board/acmesystems/aria-g25/post-build.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -e ${BINARIES_DIR}/at91sam9x5_aria-sdcardboot-linux-zimage-dt-3.8.5.bin ]; then
+ if [ -e ${BINARIES_DIR}/boot.bin ]; then
+ mkdir ${BINARIES_DIR}/aria-at91bootstrap
+ mv ${BINARIES_DIR}/*.bin ${BINARIES_DIR}/aria-at91bootstrap
+ cp -v ${BINARIES_DIR}/aria-at91bootstrap/at91sam9x5_aria-sdcardboot-linux-zimage-dt-3.8.5.bin ${BINARIES_DIR}/boot.bin
+ else
+ mv ${BINARIES_DIR}/at91sam9x5_aria-sdcardboot-linux-zimage-dt-3.8.5.bin ${BINARIES_DIR}/boot.bin
+ fi
+else
+ echo "Cannot find the AT91bootstrap image for Aria-G25"
+fi
+
--
2.7.4
More information about the buildroot
mailing list