summary refs log tree commit diff
path: root/build-arm-images.sh.in
blob: d45200235faaa0d1a0cff2ff7995ef54fa1272ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

TARGET="$1"
[ -n "$TARGET" ] && shift

PLATFORMS="beaglebone cubieboard2 cubietruck odroid-u2 rpi rpi2 usbarmory"
DATE=$(date '+%Y%m%d')

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