diff options
Diffstat (limited to 'mkrootfs.sh.in')
-rw-r--r-- | mkrootfs.sh.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index 1be40cf..bedcb0c 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -46,7 +46,7 @@ usage() { Usage: $PROGNAME [options] <platform> Supported platforms: i686, i686-musl, x86_64, x86_64-musl, - bananapi, beaglebone, cubieboard2, cubietruck, + dockstar, bananapi, beaglebone, cubieboard2, cubietruck, odroid-u2, rpi, rpi2 (armv7), usbarmory Options @@ -91,7 +91,7 @@ register_binfmt() { fi mountpoint -q /proc/sys/fs/binfmt_misc || modprobe -q binfmt_misc; mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc case "${_ARCH}" in - armv?l*) + armv*) echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register cp -f $(which qemu-arm-static) $rootfs/usr/bin || die "failed to copy qemu-arm-static to the rootfs" ;; @@ -125,6 +125,7 @@ case "$PLATFORM" in i686) _TARGET_ARCH="$PLATFORM"; _ARCH="i386";; x86_64-musl) _TARGET_ARCH="$PLATFORM"; _ARCH="x86_64";; x86_64) _TARGET_ARCH="$PLATFORM"; _ARCH="x86_64";; + dockstar) _TARGET_ARCH="armv5tel"; _ARCH="armv5tel";; rpi-musl) _TARGET_ARCH="armv6l-musl"; _ARCH="armv6l";; rpi) _TARGET_ARCH="armv6l"; _ARCH="armv6l";; *-musl) _TARGET_ARCH="armv7l-musl"; _ARCH="armv7l";; @@ -145,6 +146,7 @@ case "$PLATFORM" in bananapi*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;; beaglebone*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;; cubieboard2*|cubietruck*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;; + dockstar*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;; odroid-u2*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;; rpi2*) SUBPLATFORM=rpi; QEMU_BIN=qemu-arm-static;; rpi*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;; |