diff options
-rw-r--r-- | build-arm-images.sh.in | 2 | ||||
-rw-r--r-- | build-rootfs.sh.in | 2 | ||||
-rw-r--r-- | mkimage.sh.in | 4 | ||||
-rw-r--r-- | mkrootfs.sh.in | 3 |
4 files changed, 7 insertions, 4 deletions
diff --git a/build-arm-images.sh.in b/build-arm-images.sh.in index c1f02a9..4b01d5c 100644 --- a/build-arm-images.sh.in +++ b/build-arm-images.sh.in @@ -2,7 +2,7 @@ set -e -PLATFORMS="beaglebone cubieboard2 odroid-u2 rpi rpi2" +PLATFORMS="beaglebone cubieboard2 odroid-u2 rpi rpi2 usbarmory" DATE=$(date '+%Y%m%d') for f in ${PLATFORMS}; do diff --git a/build-rootfs.sh.in b/build-rootfs.sh.in index bfd6ff9..5d5644d 100644 --- a/build-rootfs.sh.in +++ b/build-rootfs.sh.in @@ -2,7 +2,7 @@ set -e -PLATFORMS="beaglebone cubieboard2 odroid-u2 rpi rpi2" +PLATFORMS="beaglebone cubieboard2 odroid-u2 rpi rpi2 usbarmory" for f in ${PLATFORMS}; do ./mkrootfs.sh $@ $f diff --git a/mkimage.sh.in b/mkimage.sh.in index 96199fa..a0359a7 100644 --- a/mkimage.sh.in +++ b/mkimage.sh.in @@ -113,7 +113,7 @@ fi # double check PLATFORM is supported... case "$PLATFORM" in - bananapi|beaglebone|cubieboard2|odroid-u2|rpi|rpi2);; + bananapi|beaglebone|cubieboard2|odroid-u2|rpi|rpi2|usbarmory);; *) die "The $PLATFORM is not supported, exiting..." esac @@ -182,6 +182,8 @@ elif [ "$PLATFORM" = "odroid-u2" ]; then dd if=${ROOTFSDIR}/boot/bl2.signed.bin of=${LOOPDEV} seek=31 >/dev/null 2>&1 dd if=${ROOTFSDIR}/boot/u-boot.bin of=${LOOPDEV} seek=63 >/dev/null 2>&1 dd if=${ROOTFSDIR}/boot/E4412_S.tzsw.signed.bin of=${LOOPDEV} seek=2111 >/dev/null 2>&1 +elif [ "$PLATFORM" = "usbarmory" ]; then + dd if=${ROOTFSDIR}/boot/u-boot.imx of=${LOOPDEV} bs=512 seek=2 conv=fsync fi mountpoint -q ${ROOTFSDIR}/boot && umount ${ROOTFSDIR}/boot diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index d082ba2..c112790 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -47,7 +47,7 @@ Usage: $PROGNAME [options] <platform> Supported platforms: i686, i686-musl, x86_64, x86_64-musl, bananapi, beaglebone, cubieboard2, odroid-u2, - rpi, rpi2 (armv7) + rpi, rpi2 (armv7), usbarmory Options -b <syspkg> Set an alternative base-system package (defaults to base-system) @@ -138,6 +138,7 @@ case "$PLATFORM" in odroid-u2) _ARCH="armv7l"; QEMU_BIN=qemu-arm-static;; rpi) _ARCH="armv6l"; QEMU_BIN=qemu-arm-static;; rpi2) SUBPLATFORM="rpi"; _ARCH="armv7l"; QEMU_BIN=qemu-arm-static;; + usbarmory) _ARCH="armv7l"; QEMU_BIN=qemu-arm-static;; x86_64) _ARCH="x86_64"; QEMU_BIN=qemu-x86_64-static;; x86_64-musl) _ARCH="x86_64-musl"; QEMU_BIN=qemu-x86_64-static;; *) die "$PROGNAME: invalid platform!";; |