summaryrefslogtreecommitdiff
path: root/libre/uboot-sunxi-linux-libre/mkscr
diff options
context:
space:
mode:
Diffstat (limited to 'libre/uboot-sunxi-linux-libre/mkscr')
-rwxr-xr-xlibre/uboot-sunxi-linux-libre/mkscr9
1 files changed, 9 insertions, 0 deletions
diff --git a/libre/uboot-sunxi-linux-libre/mkscr b/libre/uboot-sunxi-linux-libre/mkscr
new file mode 100755
index 000000000..b79add361
--- /dev/null
+++ b/libre/uboot-sunxi-linux-libre/mkscr
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+if [[ ! -x /usr/bin/mkimage ]]; then
+ echo "mkimage not found. Please install uboot-tools:"
+ echo " pacman -S uboot-tools"
+ exit 1
+fi
+
+mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d /boot/uboot-sunxi-linux-libre/boot.txt /boot/uboot-sunxi-linux-libre/boot.scr