diff options
author | Juan RP <xtraeme@voidlinux.eu> | 2015-04-30 15:17:33 +0200 |
---|---|---|
committer | Juan RP <xtraeme@voidlinux.eu> | 2015-04-30 15:17:33 +0200 |
commit | 41e3a6c9540aa61c78e5f17335fa3ffc1d29b6d0 (patch) | |
tree | a0612cb6df3fc993c5ae75260335bee00d4e58b2 /build-arm-images.sh.in | |
parent | f263a250f6dcd5c123238f7e651ad84397bdcbff (diff) | |
download | hrmpf-41e3a6c9540aa61c78e5f17335fa3ffc1d29b6d0.tar.gz hrmpf-41e3a6c9540aa61c78e5f17335fa3ffc1d29b6d0.tar.xz hrmpf-41e3a6c9540aa61c78e5f17335fa3ffc1d29b6d0.zip |
build-{arm-images,rootfs}: added support to build just one platform.
Diffstat (limited to 'build-arm-images.sh.in')
-rw-r--r-- | build-arm-images.sh.in | 8 |
1 files changed, 6 insertions, 2 deletions
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 |