summaryrefslogtreecommitdiff
path: root/board/theobroma-systems/puma/post-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'board/theobroma-systems/puma/post-build.sh')
-rwxr-xr-xboard/theobroma-systems/puma/post-build.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/theobroma-systems/puma/post-build.sh b/board/theobroma-systems/puma/post-build.sh
new file mode 100755
index 0000000000..93fd341fc2
--- /dev/null
+++ b/board/theobroma-systems/puma/post-build.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -x
+
+MKIMAGE=$HOST_DIR/bin/mkimage
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
+install -m 0644 -D $BOARD_DIR/defaultEnv.txt $TARGET_DIR/boot/defaultEnv.txt
+install -m 0644 -D $BOARD_DIR/userEnv.txt $TARGET_DIR/boot/userEnv.txt
+
+$MKIMAGE -n rk3399 -T rksd -d $BINARIES_DIR/u-boot-spl.bin ${BINARIES_DIR}/spl_sd.img