Unified · Split
| @@ -47,7 +47,7 @@ Usage: $PROGNAME [options] <platform> · 46 unmodified lines | ||
| 47 | 47 | |
| 48 | 48 | Supported platforms: i686, i686-musl, x86_64, x86_64-musl, |
| 49 | 49 | dockstar, bananapi, beaglebone, cubieboard2, cubietruck, |
| 50 | − odroid-u2, rpi, rpi2 (armv7), usbarmory | |
| 50 | + odroid-u2, rpi, rpi2 (armv7), usbarmory, ci20 | |
| 51 | 51 | |
| 52 | 52 | Options |
| 53 | 53 | -b <syspkg> Set an alternative base-system package (defaults to base-system) |
| @@ -97,12 +97,15 @@ register_binfmt() { · 43 unmodified lines | ||
| 97 | 97 | case "${_ARCH}" in |
| 98 | 98 | armv*) |
| 99 | 99 | 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 |
| 100 | − cp -f $(which qemu-arm-static) $rootfs/usr/bin || die "failed to copy qemu-arm-static to the rootfs" | |
| 100 | + ;; | |
| 101 | + mipsel*) | |
| 102 | + echo ':mipsel:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mipsel-static:' > /proc/sys/fs/binfmt_misc/register | |
| 101 | 103 | ;; |
| 102 | 104 | *) |
| 103 | 105 | die "Unknown target architecture!" |
| 104 | 106 | ;; |
| 105 | 107 | esac |
| 108 | + cp -f $(which $QEMU_BIN) $rootfs/usr/bin || die "failed to copy $QEMU_BIN to the rootfs" | |
| 106 | 109 | } |
| 107 | 110 | |
| 108 | 111 | # |
| @@ -131,6 +134,8 @@ case "$PLATFORM" in · 22 unmodified lines | ||
| 131 | 134 | dockstar) _TARGET_ARCH="armv5tel"; _ARCH="armv5tel";; |
| 132 | 135 | rpi-musl) _TARGET_ARCH="armv6l-musl"; _ARCH="armv6l";; |
| 133 | 136 | rpi) _TARGET_ARCH="armv6l"; _ARCH="armv6l";; |
| 137 | + ci20-musl) _TARGET_ARCH="mipselhf-musl"; _ARCH="mipsel-musl";; | |
| 138 | + ci20) _TARGET_ARCH="mipselhf"; _ARCH="mipsel";; | |
| 134 | 139 | *-musl) _TARGET_ARCH="armv7l-musl"; _ARCH="armv7l";; |
| 135 | 140 | *) _TARGET_ARCH="armv7l"; _ARCH="armv7l";; |
| 136 | 141 | esac |
| @@ -157,6 +162,7 @@ case "$PLATFORM" in · 20 unmodified lines | ||
| 157 | 162 | rpi2*) SUBPLATFORM=rpi; QEMU_BIN=qemu-arm-static;; |
| 158 | 163 | rpi*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;; |
| 159 | 164 | usbarmory*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;; |
| 165 | + ci20*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-mipsel-static;; | |
| 160 | 166 | i686*) QEMU_BIN=qemu-i386-static;; |
| 161 | 167 | x86_64*) QEMU_BIN=qemu-x86_64-static;; |
| 162 | 168 | *) die "$PROGNAME: invalid platform!";; |