2018-05-01 17:20:58 +02:00
|
|
|
From fb67fe30ce2ebaec9884de1339283c1f8f040516 Mon Sep 17 00:00:00 2001
|
2016-09-19 19:06:58 +02:00
|
|
|
From: Andreas Schwab <schwab@suse.de>
|
|
|
|
Date: Fri, 12 Aug 2016 18:20:49 +0200
|
|
|
|
Subject: [PATCH] qemu-binfmt-conf: use qemu-ARCH-binfmt
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
|
|
|
|
Signed-off-by: Andreas Schwab <schwab@suse.de>
|
|
|
|
Signed-off-by: Andreas Färber <afaerber@suse.de>
|
|
|
|
---
|
|
|
|
scripts/qemu-binfmt-conf.sh | 6 +++---
|
|
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh
|
2018-05-01 17:20:58 +02:00
|
|
|
index adb3e1a613..1107386b80 100755
|
2016-09-19 19:06:58 +02:00
|
|
|
--- a/scripts/qemu-binfmt-conf.sh
|
|
|
|
+++ b/scripts/qemu-binfmt-conf.sh
|
2018-05-01 17:20:58 +02:00
|
|
|
@@ -241,7 +241,7 @@ qemu_check_systemd() {
|
2016-09-19 19:06:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
qemu_generate_register() {
|
|
|
|
- echo ":qemu-$cpu:M::$magic:$mask:$qemu:$FLAGS"
|
|
|
|
+ echo ":qemu-$cpu:M::$magic:$mask:$qemu:P$FLAGS"
|
|
|
|
}
|
|
|
|
|
|
|
|
qemu_register_interpreter() {
|
2018-05-01 17:20:58 +02:00
|
|
|
@@ -282,9 +282,9 @@ qemu_set_binfmts() {
|
2016-09-19 19:06:58 +02:00
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
|
|
|
- qemu="$QEMU_PATH/qemu-$cpu"
|
|
|
|
+ qemu="$QEMU_PATH/qemu-$cpu-binfmt"
|
|
|
|
if [ "$cpu" = "i486" ] ; then
|
|
|
|
- qemu="$QEMU_PATH/qemu-i386"
|
|
|
|
+ qemu="$QEMU_PATH/qemu-i386-binfmt"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$host_family" != "$family" ] ; then
|