aboutsummaryrefslogtreecommitdiff
path: root/board/solidrun/mx6cubox/post-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'board/solidrun/mx6cubox/post-build.sh')
-rwxr-xr-xboard/solidrun/mx6cubox/post-build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/solidrun/mx6cubox/post-build.sh b/board/solidrun/mx6cubox/post-build.sh
new file mode 100755
index 0000000000..07c480e616
--- /dev/null
+++ b/board/solidrun/mx6cubox/post-build.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+
+$HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none \
+-n "boot script" -d $BOARD_DIR/boot.scr.txt $BOARD_DIR/boot.scr
+
+install -m 0644 -D $BOARD_DIR/boot.scr $TARGET_DIR/boot/boot.scr