diff --git a/build-arm-images.sh.in b/build-arm-images.sh.in index 4b01d5c..875d00e 100644 --- a/build-arm-images.sh.in +++ b/build-arm-images.sh.in @@ -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 diff --git a/build-rootfs.sh.in b/build-rootfs.sh.in index 5d5644d..16ae5bf 100644 --- a/build-rootfs.sh.in +++ b/build-rootfs.sh.in @@ -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