Revision a4c075f1 scripts/qemu-binfmt-conf.sh
b/scripts/qemu-binfmt-conf.sh | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 |
# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC program execution by the kernel |
|
2 |
# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390 program execution by the kernel
|
|
3 | 3 |
|
4 | 4 |
# load the binfmt_misc module |
5 | 5 |
if [ ! -d /proc/sys/fs/binfmt_misc ]; then |
... | ... | |
63 | 63 |
if [ $cpu != "sh" ] ; then |
64 | 64 |
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/local/bin/qemu-sh4:' > /proc/sys/fs/binfmt_misc/register |
65 | 65 |
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/local/bin/qemu-sh4eb:' > /proc/sys/fs/binfmt_misc/register |
66 |
if [ $cpu != "s390x" ] ; then |
|
67 |
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/local/bin/qemu-s390x:' > /proc/sys/fs/binfmt_misc/register |
|
66 | 68 |
fi |
Also available in: Unified diff