summaryrefslogtreecommitdiff
path: root/libre/uboot-sunxi/mkscr
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-02 03:35:17 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-02 03:35:17 -0300
commit2df1f2841f65200bd77b2f1caff014678b378a79 (patch)
tree7659c47bf5bd7b92f32710b4d84cd5276ee8a2d5 /libre/uboot-sunxi/mkscr
parentd9d60d9827cd11a78aed45d65aa13fd292eb4cdf (diff)
uboot-sunxi: add new package to [libre]
Diffstat (limited to 'libre/uboot-sunxi/mkscr')
-rwxr-xr-xlibre/uboot-sunxi/mkscr9
1 files changed, 9 insertions, 0 deletions
diff --git a/libre/uboot-sunxi/mkscr b/libre/uboot-sunxi/mkscr
new file mode 100755
index 000000000..272b6a7a5
--- /dev/null
+++ b/libre/uboot-sunxi/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.txt boot.scr