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

@ -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