summaryrefslogtreecommitdiff
path: root/board/orangepi/orangepi-one/post-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'board/orangepi/orangepi-one/post-build.sh')
-rwxr-xr-xboard/orangepi/orangepi-one/post-build.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/orangepi/orangepi-one/post-build.sh b/board/orangepi/orangepi-one/post-build.sh
new file mode 100755
index 000000000..46e890527
--- /dev/null
+++ b/board/orangepi/orangepi-one/post-build.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+# post-build.sh for OrangePi One taken from CubieBoard's post-build.sh
+# 2013, Carlo Caione <carlo.caione@gmail.com>
+
+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