diff options
author | Andrea Brancaleoni <miwaxe@gmail.com> | 2015-07-18 16:43:51 +0200 |
---|---|---|
committer | Andrea Brancaleoni <miwaxe@gmail.com> | 2015-07-18 16:44:49 +0200 |
commit | 8a42aecd3f32b35d3cb82429845e9d0009b24e84 (patch) | |
tree | 76d993640d7491191e56d7ae26319be116bf680f /mkrootfs.sh.in | |
parent | e514350f88c48f144fd2a76a3748fb35bd23b914 (diff) | |
download | hrmpf-8a42aecd3f32b35d3cb82429845e9d0009b24e84.tar.gz hrmpf-8a42aecd3f32b35d3cb82429845e9d0009b24e84.tar.xz hrmpf-8a42aecd3f32b35d3cb82429845e9d0009b24e84.zip |
mkrootfs: add dockstar support
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;; |