beaglebone: adds barebox bootloader
jkt: This is a port of https://patchwork.ozlabs.org/patch/614226/
Change-Id: I646d843fe2b9248d5a2ed3855142f1545b7bab52
Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
diff --git a/board/czechlight_beaglebone/post-image.sh b/board/czechlight_beaglebone/post-image.sh
new file mode 100755
index 0000000..149ffb1
--- /dev/null
+++ b/board/czechlight_beaglebone/post-image.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage \
+ --rootpath "${TARGET_DIR}" \
+ --tmppath "${GENIMAGE_TMP}" \
+ --inputpath "${BINARIES_DIR}" \
+ --outputpath "${BINARIES_DIR}" \
+ --config "${GENIMAGE_CFG}"
+
+exit $?
+