qemu: add architecture dependencies for host qemu
PATCH 1/1 qemu: add architecture dependencies for host qemu
The host-qemu package currently builds the user mode emulation, which isn't available on all architectures, so this commit adds the necessary architecture dependencies to the Config.in.host file.
Fixes:
http://autobuild.buildroot.net/results/4298ce40cbe3db50ffe53ecf6856523157df591d/
--- package/qemu/Config.in.host | 9 +++++++++ 1 file changed, 9 insertions(+)
package/qemu/Config.in.host +9 -0
@@ -1,5 +1,14 @@ config BR2_PACKAGE_HOST_QEMU bool "host qemu" + # So far, we only build the user mode emulation, so this list + # of architecture dependencies only takes into account this + # emulation mode. + depends on BR2_arm || BR2_armeb || BR2_aarch64 || \ + BR2_i386 || BR2_m68k || BR2_microblazeel || \ + BR2_microblazebe || BR2_mips || BR2_mipsel || \ + BR2_mips64 || BR2_mips64el || BR2_powerpc || \ + BR2_powerpc64 || BR2_powerpc64le || BR2_sh || \ + BR2_sparc || BR2_x86_64 help QEMU is a generic and open source machine emulator and virtualizer.
Signature · 1 line
2.1.0
PATCH 1/1 qemu: add architecture dependencies for host qemu
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
The host-qemu package currently builds the user mode emulation, which isn't available on all architectures, so this commit adds the necessary architecture dependencies to the Config.in.host file.
Fixes:
http://autobuild.buildroot.net/results/4298ce40cbe3db50ffe53ecf6856523157df591d/
Reported-by Max Filippov <[email protected]>Signed-off-by Thomas Petazzoni <[email protected]>--- package/qemu/Config.in.host | 9 +++++++++ 1 file changed, 9 insertions(+)package/qemu/Config.in.host +0
-0@@ -1,5 +1,14 @@ config BR2_PACKAGE_HOST_QEMU
package/qemu/Config.in.host line 11
Quoted 10 lines
package/qemu/Config.in.host +9
-0bool "host qemu" + # So far, we only build the user mode emulation, so this list + # of architecture dependencies only takes into account this + # emulation mode. + depends on BR2_arm || BR2_armeb || BR2_aarch64 || \ + BR2_i386 || BR2_m68k || BR2_microblazeel || \ + BR2_microblazebe || BR2_mips || BR2_mipsel || \ + BR2_mips64 || BR2_mips64el || BR2_powerpc || \ + BR2_powerpc64 || BR2_powerpc64le || BR2_sh || \ + BR2_sparc || BR2_x86_64
Committed, thanks.
Are you use about BR2_sh? sh4a atleast doesn't look supported:
http://autobuild.buildroot.net/results/4e5/4e530528c72f0c70f352f39ea09c686753757ecb/build-end.log
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 qemu: add architecture dependencies for host qemu
Dear Peter Korsgaard,
Quoted 3 lines · Peter Korsgaard
Are you use about
BR2_sh? sh4a atleast doesn't look supported:http://autobuild.buildroot.net/results/4e5/4e530528c72f0c70f352f39ea09c686753757ecb/build-end.log
Interesting. Here I have:
qemu (master)$ ls linux-user/
aarch64 flatload.c main.c ppc sparc64 uaccess.c alpha i386 Makefile.objs qemu.h strace.c uname.c arm ioctls.h microblaze s390x strace.list uname.h cris linuxload.c mips sh4 syscall.c unicore32 elfload.c linux_loop.h mips64 signal.c syscall_defs.h vm86.c errno_defs.h m68k mmap.c socket.h syscall_types.h x86_64 flat.h m68k-sim.c openrisc sparc target_flat.h
So there is a sh4 directory, which lead me to think that there is user mode emulation support for SuperH. In fact, I should rather have used ./configure --help, which says:
--target-list=LIST set target list (default: build everything)
Available targets: aarch64-softmmu alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm32-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu or32-softmmu ppc64-softmmu ppcemb-softmmu ppc-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu unicore32-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user or32-linux-user ppc64abi32-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user unicore32-linux-user x86_64-linux-user
So there is sh4 support, but it's named sh4-linux-user, not sh4a-linux-user, so we need another exception in qemu.mk.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com