History

mkrootfs: added ci20 platform support (MIPS CI20 Creator).

Juan RP committed 10 years ago

Commit 8b06a291 parent 06f8beb1 file · +8 −2Browse files

Unified · Split

mkrootfs.sh.in+8−2
@@ -47,7 +47,7 @@ Usage: $PROGNAME [options] <platform> · 46 unmodified lines
4747
4848 Supported platforms: i686, i686-musl, x86_64, x86_64-musl,
4949 dockstar, bananapi, beaglebone, cubieboard2, cubietruck,
50− odroid-u2, rpi, rpi2 (armv7), usbarmory
50+ odroid-u2, rpi, rpi2 (armv7), usbarmory, ci20
5151
5252 Options
5353 -b <syspkg> Set an alternative base-system package (defaults to base-system)
@@ -97,12 +97,15 @@ register_binfmt() { · 43 unmodified lines
9797 case "${_ARCH}" in
9898 armv*)
9999 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
101103 ;;
102104 *)
103105 die "Unknown target architecture!"
104106 ;;
105107 esac
108+ cp -f $(which $QEMU_BIN) $rootfs/usr/bin || die "failed to copy $QEMU_BIN to the rootfs"
106109 }
107110
108111 #
@@ -131,6 +134,8 @@ case "$PLATFORM" in · 22 unmodified lines
131134 dockstar) _TARGET_ARCH="armv5tel"; _ARCH="armv5tel";;
132135 rpi-musl) _TARGET_ARCH="armv6l-musl"; _ARCH="armv6l";;
133136 rpi) _TARGET_ARCH="armv6l"; _ARCH="armv6l";;
137+ ci20-musl) _TARGET_ARCH="mipselhf-musl"; _ARCH="mipsel-musl";;
138+ ci20) _TARGET_ARCH="mipselhf"; _ARCH="mipsel";;
134139 *-musl) _TARGET_ARCH="armv7l-musl"; _ARCH="armv7l";;
135140 *) _TARGET_ARCH="armv7l"; _ARCH="armv7l";;
136141 esac
@@ -157,6 +162,7 @@ case "$PLATFORM" in · 20 unmodified lines
157162 rpi2*) SUBPLATFORM=rpi; QEMU_BIN=qemu-arm-static;;
158163 rpi*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;;
159164 usbarmory*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-arm-static;;
165+ ci20*) SUBPLATFORM=${PLATFORM%-*}; QEMU_BIN=qemu-mipsel-static;;
160166 i686*) QEMU_BIN=qemu-i386-static;;
161167 x86_64*) QEMU_BIN=qemu-x86_64-static;;
162168 *) die "$PROGNAME: invalid platform!";;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t