2014-12-15 19:28:57 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-04-30 15:17:33 +02:00
|
|
|
TARGET="$1"
|
2015-06-07 12:31:45 +02:00
|
|
|
[ -n "$TARGET" ] && shift
|
2015-04-30 15:17:33 +02:00
|
|
|
|
2017-02-20 17:17:34 +01:00
|
|
|
: ${PLATFORMS:="beaglebone cubieboard2 odroid-c2 odroid-u2 rpi rpi2 rpi3 usbarmory"}
|
2015-02-22 09:40:25 +01:00
|
|
|
DATE=$(date '+%Y%m%d')
|
2014-12-15 19:28:57 +01:00
|
|
|
|
2015-06-12 10:29:31 +02:00
|
|
|
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
|
2017-02-28 12:53:12 -05:00
|
|
|
if [ -z "$TARGET" -o "$TARGET" = "$target" ]; then
|
2015-06-12 11:02:30 +02:00
|
|
|
./mkrootfs.sh $@ $target && ./mkimage.sh void-${target}-rootfs-${DATE}.tar.xz && xz -T0 -9 void-${target}-${DATE}.img
|
2015-04-30 15:17:33 +02:00
|
|
|
fi
|
2014-12-15 19:28:57 +01:00
|
|
|
done
|