From 8dfb5efab837095203eb07f41d586e6e3f487f91 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 12 Jun 2015 10:29:31 +0200 Subject: [PATCH] build-arm-images: build all ARM images for glibc and musl. --- build-arm-images.sh.in | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/build-arm-images.sh.in b/build-arm-images.sh.in index e6681ee..d452002 100644 --- a/build-arm-images.sh.in +++ b/build-arm-images.sh.in @@ -3,15 +3,19 @@ TARGET="$1" [ -n "$TARGET" ] && shift -set -e - 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 - ./mkrootfs.sh $@ $f - ./mkimage.sh void-${f}-rootfs-${DATE}.tar.xz - xz -T0 void-${f}-${DATE}.img +for f in ${PLATFORMS} x ${PLATFORMS} ; do + if [ "$f" = "x" ]; then + musl=1 + continue + fi + target=$f + if [ -n "$musl" ]; then + target=${f}-musl + fi + if [ -z "$ARGET" -o "$TARGET" = "$target" ]; then + ./mkrootfs.sh $@ $target && ./mkimage.sh void-${f}-rootfs-${DATE}.tar.xz && xz -T0 -9 void-${f}-${DATE}.img fi done