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