build-arm-images: build all rootfs/images.

This commit is contained in:
Juan RP 2015-06-07 12:31:45 +02:00
parent 42b599fa97
commit 4c81ceefdd
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh
TARGET="$1"
[ -n "$TARGET" ] && shift
set -e
@ -8,7 +9,8 @@ PLATFORMS="beaglebone cubieboard2 cubietruck odroid-u2 rpi rpi2 usbarmory"
DATE=$(date '+%Y%m%d')
for f in ${PLATFORMS}; do
if [ -z "$TARGET" -o "$TARGET" = "$f" ]; then
if [ -z "$TARGET" -o "$TARGET" = "$f" ]; then
./mkrootfs.sh $@ $f
./mkimage.sh void-${f}-rootfs-${DATE}.tar.xz
xz -T0 void-${f}-${DATE}.img
fi