Init. 39/5839/1 master tizen_2.2 tizen_2.3 tizen_2.3.1 2.2.1_release accepted/tizen_2.2/20130718.053700 submit/tizen_2.2/20130718.041206 submit/tizen_2.2/20130718.061238 submit/tizen_2.3.1/20150915.100817 submit/tizen_2.3/20140529.062910 submit/tizen_2.3/20140529.073122 submit/tizen_2.3/20150202.113947 submit/tizen_2.3/20150202.114212 tizen_2.3.1_release tizen_2.3_release
authorJunfeng.dong <junfeng.dong@intel.com>
Thu, 18 Jul 2013 02:57:19 +0000 (10:57 +0800)
committerJunfeng.dong <junfeng.dong@intel.com>
Thu, 18 Jul 2013 03:00:51 +0000 (11:00 +0800)
Change-Id: I81404704bc858895784fe1cb496cf282634acff3
Signed-off-by: Junfeng.dong <junfeng.dong@intel.com>
50 files changed:
packaging/qemu.x86_64.spec [new file with mode: 0644]
usr/bin/qemu-alpha [new file with mode: 0755]
usr/bin/qemu-alpha-binfmt [new file with mode: 0755]
usr/bin/qemu-arm [new file with mode: 0755]
usr/bin/qemu-arm-binfmt [new file with mode: 0755]
usr/bin/qemu-armeb [new file with mode: 0755]
usr/bin/qemu-armeb-binfmt [new file with mode: 0755]
usr/bin/qemu-cris [new file with mode: 0755]
usr/bin/qemu-cris-binfmt [new file with mode: 0755]
usr/bin/qemu-i386 [new file with mode: 0755]
usr/bin/qemu-i386-binfmt [new file with mode: 0755]
usr/bin/qemu-m68k [new file with mode: 0755]
usr/bin/qemu-m68k-binfmt [new file with mode: 0755]
usr/bin/qemu-microblaze [new file with mode: 0755]
usr/bin/qemu-microblaze-binfmt [new file with mode: 0755]
usr/bin/qemu-microblazeel [new file with mode: 0755]
usr/bin/qemu-microblazeel-binfmt [new file with mode: 0755]
usr/bin/qemu-mips [new file with mode: 0755]
usr/bin/qemu-mips-binfmt [new file with mode: 0755]
usr/bin/qemu-mipsel [new file with mode: 0755]
usr/bin/qemu-mipsel-binfmt [new file with mode: 0755]
usr/bin/qemu-mipsn32 [new file with mode: 0755]
usr/bin/qemu-mipsn32-binfmt [new file with mode: 0755]
usr/bin/qemu-mipsn32el [new file with mode: 0755]
usr/bin/qemu-mipsn32el-binfmt [new file with mode: 0755]
usr/bin/qemu-or32 [new file with mode: 0755]
usr/bin/qemu-or32-binfmt [new file with mode: 0755]
usr/bin/qemu-ppc [new file with mode: 0755]
usr/bin/qemu-ppc-binfmt [new file with mode: 0755]
usr/bin/qemu-ppc64 [new file with mode: 0755]
usr/bin/qemu-ppc64-binfmt [new file with mode: 0755]
usr/bin/qemu-ppc64abi32 [new file with mode: 0755]
usr/bin/qemu-ppc64abi32-binfmt [new file with mode: 0755]
usr/bin/qemu-s390x [new file with mode: 0755]
usr/bin/qemu-s390x-binfmt [new file with mode: 0755]
usr/bin/qemu-sh4 [new file with mode: 0755]
usr/bin/qemu-sh4-binfmt [new file with mode: 0755]
usr/bin/qemu-sh4eb [new file with mode: 0755]
usr/bin/qemu-sh4eb-binfmt [new file with mode: 0755]
usr/bin/qemu-sparc [new file with mode: 0755]
usr/bin/qemu-sparc-binfmt [new file with mode: 0755]
usr/bin/qemu-sparc32plus [new file with mode: 0755]
usr/bin/qemu-sparc32plus-binfmt [new file with mode: 0755]
usr/bin/qemu-sparc64 [new file with mode: 0755]
usr/bin/qemu-sparc64-binfmt [new file with mode: 0755]
usr/bin/qemu-unicore32 [new file with mode: 0755]
usr/bin/qemu-unicore32-binfmt [new file with mode: 0755]
usr/bin/qemu-x86_64 [new file with mode: 0755]
usr/bin/qemu-x86_64-binfmt [new file with mode: 0755]
usr/sbin/qemu-binfmt-conf.sh [new file with mode: 0755]

diff --git a/packaging/qemu.x86_64.spec b/packaging/qemu.x86_64.spec
new file mode 100644 (file)
index 0000000..08ff5fa
--- /dev/null
@@ -0,0 +1,36 @@
+Name:           qemu.x86_64
+Version:        1.2
+Release:        0
+License:        GPLv2
+Summary:        Qemu Binaries
+Group:          System
+Source:         %{name}.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+
+%description
+
+%prep
+%setup -q -n %{name}
+
+%build
+
+%install
+mkdir -p %{buildroot}
+cp -a usr %{buildroot}
+
+
+
+%clean
+%{?buildroot:%__rm -rf "%{buildroot}"}
+
+%post
+
+%postun
+
+%files
+%defattr(-,root,root)
+/usr/bin/*
+/usr/sbin/*
+
+%changelog
+
diff --git a/usr/bin/qemu-alpha b/usr/bin/qemu-alpha
new file mode 100755 (executable)
index 0000000..9bfc59c
Binary files /dev/null and b/usr/bin/qemu-alpha differ
diff --git a/usr/bin/qemu-alpha-binfmt b/usr/bin/qemu-alpha-binfmt
new file mode 100755 (executable)
index 0000000..f41130b
Binary files /dev/null and b/usr/bin/qemu-alpha-binfmt differ
diff --git a/usr/bin/qemu-arm b/usr/bin/qemu-arm
new file mode 100755 (executable)
index 0000000..bda9b5f
Binary files /dev/null and b/usr/bin/qemu-arm differ
diff --git a/usr/bin/qemu-arm-binfmt b/usr/bin/qemu-arm-binfmt
new file mode 100755 (executable)
index 0000000..46d770b
Binary files /dev/null and b/usr/bin/qemu-arm-binfmt differ
diff --git a/usr/bin/qemu-armeb b/usr/bin/qemu-armeb
new file mode 100755 (executable)
index 0000000..fdfa5c2
Binary files /dev/null and b/usr/bin/qemu-armeb differ
diff --git a/usr/bin/qemu-armeb-binfmt b/usr/bin/qemu-armeb-binfmt
new file mode 100755 (executable)
index 0000000..8214d81
Binary files /dev/null and b/usr/bin/qemu-armeb-binfmt differ
diff --git a/usr/bin/qemu-cris b/usr/bin/qemu-cris
new file mode 100755 (executable)
index 0000000..aa5bb87
Binary files /dev/null and b/usr/bin/qemu-cris differ
diff --git a/usr/bin/qemu-cris-binfmt b/usr/bin/qemu-cris-binfmt
new file mode 100755 (executable)
index 0000000..520faba
Binary files /dev/null and b/usr/bin/qemu-cris-binfmt differ
diff --git a/usr/bin/qemu-i386 b/usr/bin/qemu-i386
new file mode 100755 (executable)
index 0000000..ec56677
Binary files /dev/null and b/usr/bin/qemu-i386 differ
diff --git a/usr/bin/qemu-i386-binfmt b/usr/bin/qemu-i386-binfmt
new file mode 100755 (executable)
index 0000000..09ca240
Binary files /dev/null and b/usr/bin/qemu-i386-binfmt differ
diff --git a/usr/bin/qemu-m68k b/usr/bin/qemu-m68k
new file mode 100755 (executable)
index 0000000..c5619d6
Binary files /dev/null and b/usr/bin/qemu-m68k differ
diff --git a/usr/bin/qemu-m68k-binfmt b/usr/bin/qemu-m68k-binfmt
new file mode 100755 (executable)
index 0000000..e8ff1db
Binary files /dev/null and b/usr/bin/qemu-m68k-binfmt differ
diff --git a/usr/bin/qemu-microblaze b/usr/bin/qemu-microblaze
new file mode 100755 (executable)
index 0000000..d0abc40
Binary files /dev/null and b/usr/bin/qemu-microblaze differ
diff --git a/usr/bin/qemu-microblaze-binfmt b/usr/bin/qemu-microblaze-binfmt
new file mode 100755 (executable)
index 0000000..cc1a14b
Binary files /dev/null and b/usr/bin/qemu-microblaze-binfmt differ
diff --git a/usr/bin/qemu-microblazeel b/usr/bin/qemu-microblazeel
new file mode 100755 (executable)
index 0000000..6b8e1ad
Binary files /dev/null and b/usr/bin/qemu-microblazeel differ
diff --git a/usr/bin/qemu-microblazeel-binfmt b/usr/bin/qemu-microblazeel-binfmt
new file mode 100755 (executable)
index 0000000..1d24758
Binary files /dev/null and b/usr/bin/qemu-microblazeel-binfmt differ
diff --git a/usr/bin/qemu-mips b/usr/bin/qemu-mips
new file mode 100755 (executable)
index 0000000..29b19ba
Binary files /dev/null and b/usr/bin/qemu-mips differ
diff --git a/usr/bin/qemu-mips-binfmt b/usr/bin/qemu-mips-binfmt
new file mode 100755 (executable)
index 0000000..2f49762
Binary files /dev/null and b/usr/bin/qemu-mips-binfmt differ
diff --git a/usr/bin/qemu-mipsel b/usr/bin/qemu-mipsel
new file mode 100755 (executable)
index 0000000..0f8e869
Binary files /dev/null and b/usr/bin/qemu-mipsel differ
diff --git a/usr/bin/qemu-mipsel-binfmt b/usr/bin/qemu-mipsel-binfmt
new file mode 100755 (executable)
index 0000000..78fb2e6
Binary files /dev/null and b/usr/bin/qemu-mipsel-binfmt differ
diff --git a/usr/bin/qemu-mipsn32 b/usr/bin/qemu-mipsn32
new file mode 100755 (executable)
index 0000000..2d5f137
Binary files /dev/null and b/usr/bin/qemu-mipsn32 differ
diff --git a/usr/bin/qemu-mipsn32-binfmt b/usr/bin/qemu-mipsn32-binfmt
new file mode 100755 (executable)
index 0000000..c71c504
Binary files /dev/null and b/usr/bin/qemu-mipsn32-binfmt differ
diff --git a/usr/bin/qemu-mipsn32el b/usr/bin/qemu-mipsn32el
new file mode 100755 (executable)
index 0000000..2c597b5
Binary files /dev/null and b/usr/bin/qemu-mipsn32el differ
diff --git a/usr/bin/qemu-mipsn32el-binfmt b/usr/bin/qemu-mipsn32el-binfmt
new file mode 100755 (executable)
index 0000000..178ec12
Binary files /dev/null and b/usr/bin/qemu-mipsn32el-binfmt differ
diff --git a/usr/bin/qemu-or32 b/usr/bin/qemu-or32
new file mode 100755 (executable)
index 0000000..c720e69
Binary files /dev/null and b/usr/bin/qemu-or32 differ
diff --git a/usr/bin/qemu-or32-binfmt b/usr/bin/qemu-or32-binfmt
new file mode 100755 (executable)
index 0000000..38413a7
Binary files /dev/null and b/usr/bin/qemu-or32-binfmt differ
diff --git a/usr/bin/qemu-ppc b/usr/bin/qemu-ppc
new file mode 100755 (executable)
index 0000000..c21d8c9
Binary files /dev/null and b/usr/bin/qemu-ppc differ
diff --git a/usr/bin/qemu-ppc-binfmt b/usr/bin/qemu-ppc-binfmt
new file mode 100755 (executable)
index 0000000..7d35d5a
Binary files /dev/null and b/usr/bin/qemu-ppc-binfmt differ
diff --git a/usr/bin/qemu-ppc64 b/usr/bin/qemu-ppc64
new file mode 100755 (executable)
index 0000000..0133afb
Binary files /dev/null and b/usr/bin/qemu-ppc64 differ
diff --git a/usr/bin/qemu-ppc64-binfmt b/usr/bin/qemu-ppc64-binfmt
new file mode 100755 (executable)
index 0000000..bd2146c
Binary files /dev/null and b/usr/bin/qemu-ppc64-binfmt differ
diff --git a/usr/bin/qemu-ppc64abi32 b/usr/bin/qemu-ppc64abi32
new file mode 100755 (executable)
index 0000000..323646f
Binary files /dev/null and b/usr/bin/qemu-ppc64abi32 differ
diff --git a/usr/bin/qemu-ppc64abi32-binfmt b/usr/bin/qemu-ppc64abi32-binfmt
new file mode 100755 (executable)
index 0000000..aab90c4
Binary files /dev/null and b/usr/bin/qemu-ppc64abi32-binfmt differ
diff --git a/usr/bin/qemu-s390x b/usr/bin/qemu-s390x
new file mode 100755 (executable)
index 0000000..614e06d
Binary files /dev/null and b/usr/bin/qemu-s390x differ
diff --git a/usr/bin/qemu-s390x-binfmt b/usr/bin/qemu-s390x-binfmt
new file mode 100755 (executable)
index 0000000..a80a9b0
Binary files /dev/null and b/usr/bin/qemu-s390x-binfmt differ
diff --git a/usr/bin/qemu-sh4 b/usr/bin/qemu-sh4
new file mode 100755 (executable)
index 0000000..f9f5904
Binary files /dev/null and b/usr/bin/qemu-sh4 differ
diff --git a/usr/bin/qemu-sh4-binfmt b/usr/bin/qemu-sh4-binfmt
new file mode 100755 (executable)
index 0000000..651bac5
Binary files /dev/null and b/usr/bin/qemu-sh4-binfmt differ
diff --git a/usr/bin/qemu-sh4eb b/usr/bin/qemu-sh4eb
new file mode 100755 (executable)
index 0000000..2b1dbf6
Binary files /dev/null and b/usr/bin/qemu-sh4eb differ
diff --git a/usr/bin/qemu-sh4eb-binfmt b/usr/bin/qemu-sh4eb-binfmt
new file mode 100755 (executable)
index 0000000..2630a12
Binary files /dev/null and b/usr/bin/qemu-sh4eb-binfmt differ
diff --git a/usr/bin/qemu-sparc b/usr/bin/qemu-sparc
new file mode 100755 (executable)
index 0000000..1b52cc6
Binary files /dev/null and b/usr/bin/qemu-sparc differ
diff --git a/usr/bin/qemu-sparc-binfmt b/usr/bin/qemu-sparc-binfmt
new file mode 100755 (executable)
index 0000000..e355df0
Binary files /dev/null and b/usr/bin/qemu-sparc-binfmt differ
diff --git a/usr/bin/qemu-sparc32plus b/usr/bin/qemu-sparc32plus
new file mode 100755 (executable)
index 0000000..d974d85
Binary files /dev/null and b/usr/bin/qemu-sparc32plus differ
diff --git a/usr/bin/qemu-sparc32plus-binfmt b/usr/bin/qemu-sparc32plus-binfmt
new file mode 100755 (executable)
index 0000000..e238244
Binary files /dev/null and b/usr/bin/qemu-sparc32plus-binfmt differ
diff --git a/usr/bin/qemu-sparc64 b/usr/bin/qemu-sparc64
new file mode 100755 (executable)
index 0000000..f076095
Binary files /dev/null and b/usr/bin/qemu-sparc64 differ
diff --git a/usr/bin/qemu-sparc64-binfmt b/usr/bin/qemu-sparc64-binfmt
new file mode 100755 (executable)
index 0000000..6e6f1ce
Binary files /dev/null and b/usr/bin/qemu-sparc64-binfmt differ
diff --git a/usr/bin/qemu-unicore32 b/usr/bin/qemu-unicore32
new file mode 100755 (executable)
index 0000000..8abc12f
Binary files /dev/null and b/usr/bin/qemu-unicore32 differ
diff --git a/usr/bin/qemu-unicore32-binfmt b/usr/bin/qemu-unicore32-binfmt
new file mode 100755 (executable)
index 0000000..5ad5987
Binary files /dev/null and b/usr/bin/qemu-unicore32-binfmt differ
diff --git a/usr/bin/qemu-x86_64 b/usr/bin/qemu-x86_64
new file mode 100755 (executable)
index 0000000..1526462
Binary files /dev/null and b/usr/bin/qemu-x86_64 differ
diff --git a/usr/bin/qemu-x86_64-binfmt b/usr/bin/qemu-x86_64-binfmt
new file mode 100755 (executable)
index 0000000..e740c99
Binary files /dev/null and b/usr/bin/qemu-x86_64-binfmt differ
diff --git a/usr/sbin/qemu-binfmt-conf.sh b/usr/sbin/qemu-binfmt-conf.sh
new file mode 100755 (executable)
index 0000000..37d03f3
--- /dev/null
@@ -0,0 +1,72 @@
+#!/bin/sh
+# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390 program execution by the kernel
+
+# load the binfmt_misc module
+if [ ! -d /proc/sys/fs/binfmt_misc ]; then
+  /sbin/modprobe binfmt_misc
+fi
+if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then
+  mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
+fi
+
+# probe cpu type
+cpu=`uname -m`
+case "$cpu" in
+  i386|i486|i586|i686|i86pc|BePC|x86_64)
+    cpu="i386"
+  ;;
+  m68k)
+    cpu="m68k"
+  ;;
+  mips*)
+    cpu="mips"
+  ;;
+  "Power Macintosh"|ppc|ppc64)
+    cpu="ppc"
+  ;;
+  armv[4-9]*)
+    cpu="arm"
+  ;;
+  sparc*)
+    cpu="sparc"
+  ;;
+esac
+
+# register the interpreter for each cpu except for the native one
+if [ $cpu != "i386" ] ; then
+    echo ':i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-i386-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+    echo ':i486:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x06\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-i386-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+fi
+if [ $cpu != "alpha" ] ; then
+    echo ':alpha:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x26\x90:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-alpha-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+fi
+if [ $cpu != "arm" ] ; then
+    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-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+    echo   ':armeb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+fi
+if [ $cpu != "sparc" ] ; then
+    echo   ':sparc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sparc-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+fi
+if [ $cpu != "ppc" ] ; then
+    echo   ':ppc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-ppc-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+fi
+if [ $cpu != "m68k" ] ; then
+    echo   'Please check cpu value and header information for m68k!'
+    echo   ':m68k:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x04:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-m68k-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+fi
+if [ $cpu != "mips" ] ; then
+    # FIXME: We could use the other endianness on a MIPS host.
+    echo   ':mips:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+    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-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+    echo   ':mipsn32:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mipsn32-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+    echo   ':mipsn32el: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-mipsn32el-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+    echo   ':mips64:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips64-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+    echo   ':mips64el:M::\x7fELF\x02\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-mips64el-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+fi
+if [ $cpu != "sh" ] ; then
+    echo    ':sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-sh4-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+    echo    ':sh4eb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sh4eb-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+fi
+if [ $cpu != "s390x" ] ; then
+    echo   ':s390x:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x16:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-s390x-binfmt:P' > /proc/sys/fs/binfmt_misc/register
+fi