aboutsummaryrefslogtreecommitdiff
path: root/board/nanopi-neo/post-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'board/nanopi-neo/post-build.sh')
-rwxr-xr-xboard/nanopi-neo/post-build.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/nanopi-neo/post-build.sh b/board/nanopi-neo/post-build.sh
new file mode 100755
index 0000000000..e6791e71ab
--- /dev/null
+++ b/board/nanopi-neo/post-build.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+# post-build.sh for Nanopi NEO, based on the Orange Pi PC
+# 2013, Carlo Caione <carlo.caione@gmail.com>
+# 2016, "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+BOARD_DIR="$( dirname "${0}" )"
+MKIMAGE="${HOST_DIR}/usr/bin/mkimage"
+BOOT_CMD="${BOARD_DIR}/boot.cmd"
+BOOT_CMD_H="${BINARIES_DIR}/boot.scr"
+
+# U-Boot script
+"${MKIMAGE}" -C none -A arm -T script -d "${BOOT_CMD}" "${BOOT_CMD_H}"