build-{arm-images,rootfs}: added support to build just one platform.

This commit is contained in:
Juan RP 2015-04-30 15:17:33 +02:00
parent f263a250f6
commit 41e3a6c954
2 changed files with 11 additions and 3 deletions

View File

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

View File

@ -2,8 +2,12 @@
set -e
TARGET="$1"
PLATFORMS="beaglebone cubieboard2 odroid-u2 rpi rpi2 usbarmory"
for f in ${PLATFORMS}; do
./mkrootfs.sh $@ $f
if [ -z "$TARGET" -o "$TARGET" = "$f" ]; then
./mkrootfs.sh $@ $f
fi
done