summaryrefslogtreecommitdiff
path: root/package/qemu
AgeCommit message (Collapse)Author
2016-12-10package/qemu: separate user and system arch on powerpc64leSam bobroff
QEMU provides a single system emulator that supports both powerpc64 and powerpc64le with a target called 'ppc64-softmmu', but it provides a different usermode emulator for each one (with targets 'ppc64le-linux-user' and 'ppc64-linux-user'). Due to this asymmetry it is not possible to support both cases with the single arch value used in the package file. This patch introduces an additional value into the package configuration, HOST_QEMU_SYS_ARCH, so that both cases can be supported. Fixes commit d2ff457e88ff4106f97e29516d467978827d30c2 and autobuilder failture http://autobuild.buildroot.net/results/a2d63e21c3e82c36f4a975e90ed56faba18e97a5 Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-12-01Merge branch 'next'Peter Korsgaard
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-11-26package/qemu: add option to include toolsSam bobroff
Add an option to QEMU to include the "tools" (configure option: --enable-tools) in the target. This adds a dependency on pixman, but that's already present. Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-11-25package/qemu: fixup enable host QEMU for powerpc64/powerpc64leSam bobroff
Fixes next commit d634d9dda7f3c328d63469cb628c79da49a09e89, which itself fixes: http://autobuild.buildroot.net/results/f58ec73d906a5da49a88ed78492e3b5bf8cecdd4/ Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-11-25package/qemu: enable host QEMU for powerpc64/powerpc64leSam bobroff
Needed to fix: http://autobuild.buildroot.net/results/f58ec73d906a5da49a88ed78492e3b5bf8cecdd4/ Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-11-25package/qemu: fixup enable host QEMU for powerpc64/powerpc64leSam bobroff
Fixes next commit d634d9dda7f3c328d63469cb628c79da49a09e89, which itself fixes: http://autobuild.buildroot.net/results/f58ec73d906a5da49a88ed78492e3b5bf8cecdd4/ Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-11-23package/qemu: enable host QEMU for powerpc64/powerpc64leSam bobroff
Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-11-22package/qemu: enable for powerpc64 and powerpc64leSam bobroff
Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-11-06package/qemu: disable Qemu user-land emulation for musl toolchainsRomain Naour
Like for cyclictest (rt-test)[1], linux-user/syscall.c use the definition of the "struct sigevent" from Glibc/uClibc which doesn't build with musl libc. So, disable Qemu user-land emulation for musl toolchains. Fixes: http://autobuild.buildroot.net/results/b27/b277e668d9e22b624416bf46f6ccba802acd257e [1] 43bffa59e7359610c8f00038ddd97795c0ca35e1 Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-10-20qemu: fix build of target variantThomas Petazzoni
Similar to what was done in commit 524b6b85595274ca13bd7d01adb61ce2dddd786c for the host variant, this commit fixes the build of qemu's host variant. Qemu expects that the cpp it is passed behave like cc: it passes the -c option, which is not allowed by cpp, but is allowed for cc. Fix that by overriding CPP when calling configure. Fixes: http://autobuild.buildroot.net/results/0850e80ba62294397b44d8adea197a244a9a8205/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-09-08package/qemu: fix build of host variantYann E. MORIN
The Qemu buildsystem expects that the cpp it is passed can be called like it were cc: it passes it the '-c' option, which is not allowed by cpp, but is allowed for cc. Fix that by overriding CPP when calling configure. Note: the target variant of Qemu does not build the affected parts (the PC-BIOS images). This is another problem that should be fixed separately. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-09-05qemu: bump version to 2.7.0Vicente Olivert Riera
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-07-04qemu: bump to version 2.6.0Thomas Petazzoni
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-07-04host-qemu: add support for vde2Simon Maes
Additional configuration for host-qemu package: - Enable VDE2 support for qemu Signed-off-by: Simon Maes <simonn.maes@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-07-04qemu: add support for host-qemu-systemSimon Maes
This commit adds support for building the system emulation mode in host-qemu. To do so, it adds the BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE and BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE sub-options, making sure that the latter is selected if the former is not enabled. This ensures that at least one is enabled *and* that existing configurations continue to build the user-land emulation (which was the only one we supported until now). The list of architectures supported by the system emulation mode is the same as the one for the user-space emulation mode (as far as the existing list is concerned), so we simply drop the comment about this dependency list being related to the user-space emulation only. Signed-off-by: Simon Maes <simonn.maes@gmail.com> [Thomas: - Make sure either BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE or BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE get selected. - Unconditionally enable FDT support in host-qemu when in system mode (so the option BR2_PACKAGE_HOST_QEMU_FDT has been removed) - Remove the unneeded BR2_PACKAGE_HOST_QEMU_HAS_EMULS option. - Remove the SDL related option, we really on the system to provide SDL. - Remove the BR2_PACKAGE_HOST_QEMU_DEBUG and BR2_PACKAGE_HOST_QEMU_STRIP_BINARY options, since they are not really useful. - Remove HOST_QEMU_SITE and HOST_QEMU_SOURCE definitions, since they are automatically derived from QEMU_SITE and QEMU_SOURCE anyway. - Group things more logically in the .mk file.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-05-10qemu: bump version to 2.5.1.1Vicente Olivert Riera
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-04-22qemu: Add support for armJulian Scheel
Build and operation was successfully tested to Tegra K1 arm platform. Signed-off-by: Julian Scheel <julian@jusst.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-04-18arch/x86: remove support for i386Thomas Petazzoni
The Linux kernel doesn't even support i386 anymore, there is no NPTL support for i386 and uClibc-ng only supports NPTL on x86, so there is essentially no usable thread implementation. Most likely glibc and musl also don't support i386 either. So it's time to remove the support for this architecture variant. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-03-30qemu: bump version to 2.5.1Vicente Olivert Riera
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-12-17qemu: bump version to 2.5.0Vicente Olivert Riera
- Bump version to 2.5.0. - Update hash file. - Remove upstreamed patch: http://git.qemu.org/?p=qemu.git;a=commit;h=fccd35a04640a728f979e6d72b2c7d02c05549f0 - Remove non-existent configure options: ERROR: unknown option --disable-guest-base Try './configure --help' for more information ERROR: unknown option --disable-smartcard-nss Try './configure --help' for more information Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-12-15qemu: comma separate licensesGustavo Zacarias
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-11-18qemu: add patch to fix SSP support detectionRodrigo Rebello
The QEMU configure script incorrectly assumes SSP is supported by the toolchain in some cases where the compiler accepts -fstack-protector* flags but the C library does not provide the necessary __stack_chk_*() functions. Even though a full compile and link test is performed by the script, this is done with a code fragment which does not actually meet any of the conditions required to cause the compiler to emit canary code when the -fstack-protector-strong variant is used. As no compile or link failure occurs in this case, a false positive is generated and a subsequent error is seen when the probe for pthreads is performed. The fix consists in patching the configure script to use a more appropriate test program for the SSP support checks. Fixes: http://autobuild.buildroot.net/results/efb/efbb4e940543894b8745bb405478a096c90a5ae2/ http://autobuild.buildroot.net/results/32d/32d6d984febad2dee1f0d31c5fa0aea823297096/ http://autobuild.buildroot.net/results/aa6/aa6e71c957fb6f07e7bded35a8e47be4dadd042c/ ...and many others. Signed-off-by: Rodrigo Rebello <rprebello@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-10-02qemu: bump to version 2.4.0.1Vicente Olivert Riera
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-06-29qemu: enable for aarch64Gustavo Zacarias
Enable the target qemu for aarch64 since it works just fine. Only tested using userland CPU emulation (no HYP) with a qemu_aarch64_virt_defconfig image inside a qemu_aarch64_virt_defconfig instance. Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-05-21package/qemu: Compare host/target Linux version only during build phaseBernd Kuhls
This patch fixes an error during source-check. Thanks to Thomas for the hint: http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/116183 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-05-12qemu: fix build on sh4a and sh4aebThomas Petazzoni
Qemu doesn't understand sh4a and sh4aeb as separate architectures, it only knows about sh4 and sh4eb. However, it does support sh4a, since it emulates the SH7785 CPU which is a SH4A. Therefore, with this commit, sh4a/sh4aeb are translated as sh4/sh4eb for Qemu. Fixes: http://autobuild.buildroot.org/results/8f9/8f99a776f35d4ab0841d9fd2db509850ef603bd4/ and many previous similar build failures Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-05-01QEMU: Bump to 2.3.0Markos Chandras
Bump QEMU to 2.3.0 Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-25QEMU: Enable package for MIPS targetsMarkos Chandras
Allow QEMU to be installed on MIPS targets. Also introduce a new symbol (BR2_PACKAGE_QEMU_ARCH_SUPPORTS_TARGET) to hold the architectures than can build and use QEMU on the target. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-23qemu: add hash fileThomas Petazzoni
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-23QEMU: bump to 2.2.1Markos Chandras
Bump QEMU to 2.2.1 Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-22packages: remove non-IPv6 dependencies and tweaksGustavo Zacarias
Now that IPv6 is mandatory remove package dependencies and conditionals for it. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-02-14packages: all salute the passing of avr32Yann E. MORIN
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-02-07qemu: add missing indirect dependency on dynamic library for fdtArnout Vandecappelle
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-02-06qemu: correct kernel headers check when major numbers differPeter Korsgaard
commit f7add51c39 (qemu: add host/target Linux version check) added a version check between the host kernel version and the version of kernel headers used by the toolchain, but the logic would fail unless BOTH major and minor versions were >=, which isn't true for E.G. host kernel = 3.2 and toolchain 2.6.x. Instead calculate a single version number (as major << 8 + minor) and compare that. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-02-06host-qemu: needs host-pythonPeter Korsgaard
Fixes: http://autobuild.buildroot.net/results/e58/e58a0d7d5c084be000ae7d5b3821cd68d6639aab/ http://autobuild.buildroot.net/results/624/62425cfdd4270bf1a9b15bd57490478b1c04c720/ http://autobuild.buildroot.net/results/d18/d189d7f75ffbb3349b68a5c312b14ea5638bb903/ http://autobuild.buildroot.net/results/7d3/7d386322cec452ee636adb20be0c1a31f38385fc/ And many more. Just like qemu for the target, host-qemu needs python (2.x) on the host. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-02-06qemu: add architecture dependencies for host qemuThomas Petazzoni
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 <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-12-23qemu: add host/target Linux version checkThomas Petazzoni
Raise an error if the host is using an older kernel than the target. Since qemu-user passes emulated system calls to the host kernel, this prevents usage of qemu-user in situations where those system calls will fail. This is based on an original patch from Frank Hunleth <fhunleth@troodon-software.com>, but completely rewritten in a different way: * Instead of using shell based testing, we use pure make tests, which allows to detect the problem not when host-qemu starts to build, but at the very beginning of the entire Buildroot build. * Instead of looking at $(STAGING_DIR)/usr/include/linux/version.h (which requires having a dependency on the 'toolchain' package, which is a bit unusual for a host package), we use the BR2_TOOLCHAIN_HEADERS_AT_LEAST Config.in option which tells us the version of the kernel headers used in the toolchain. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Frank Hunleth <fhunleth@troodon-software.com>
2014-12-23qemu: add to host utilities menuFrank Hunleth
This allows qemu-user to be selected by the user. One use case for this is to call qemu-user from post build scripts to run regression tests against the build. Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-12-20package: indentation cleanupJerzy Grzegorek
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-11-18package/qemu: add support for FDTYann E. MORIN
FDT is the Flat Device Tree, and allows QEMU to pass DTs to the VMs. Fixes: http://autobuild.buildroot.net/results/7e8/7e8c6fecbb22e8835269171b8bfe6d5bda300dcc/ http://autobuild.buildroot.net/results/5e0/5e0ec37894d3d88962fb0fee9a3753b83fe18b71/ http://autobuild.buildroot.net/results/936/936c565b6dc883beea4fac47c2cb2b47d3e84f66/ http://autobuild.buildroot.net/results/2ab/2abe26be5be5e72d6e166dd9b63b61523f63e2f5/ And many more. [Peter: add autobuilder references] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-11-15host-qemu: fix installFrancois Perrad
at configure time, PREFIX is already set with $(HOST_DIR)/usr so, don't use DESTDIR Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-11-08package/qemu: fix specifying custom target sub-setYann E. MORIN
The logic was wrong. Even though it was working for previous versions of QEMU, it changed in later versions, and thus now breaks on the version we currently package. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-11-03qemu: needs IPv6Peter Korsgaard
Fixes http://autobuild.buildroot.net/results/f53/f53d4d47a6b65c40c1b122dfad61d9164e533bf0/ Actually only the linux-user code needs it, but with the _CUSTOM_TARGETS option it is difficult to ensure it only for userland emulation, so just add it to the main qemu option. At the same time add the missing wchar/mmu dependencies to the comment. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-11-03qemu: fix build when python3 is enabledPeter Korsgaard
Fixes: http://autobuild.buildroot.net/results/04e/04ec455e352319a46dc06def1762c65ad28a12a1/ http://autobuild.buildroot.net/results/f19/f1932657912674af444602ac59211b6caf6841ca/ http://autobuild.buildroot.net/results/18a/18a43df80616280506a44ac3abc327ddf0e7b079/ http://autobuild.buildroot.net/results/44c/44c00b50248018c4e81f4fbb1041d35b78f89640/ And many others. When python3 for the target is enabled, $(HOST_DIR)/usr/bin/python points to host-python3, not host-python - Breaking the build. Ensure host-python is used. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-11-02package: indentation cleanupJerzy Grzegorek
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-25package: indentation cleanupJerzy Grzegorek
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-10-12package/qemu: add SDL frontendsYann E. MORIN
[Peter: use BR2_PACKAGE_QEMU_HAS_EMULS, only add SDL_CONFIG once] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-12package/qemu: add fine-grained target selectionYann E. MORIN
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-12package/qemu: add basic target selectionYann E. MORIN
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-10-12package/qemu: build for the target (i386 or x86_64 only)Yann E. MORIN
Untested for other architectures, so only enabled for known-working ones. We explicitly disable all features that depends on other packages, for now. Such features will be added one by one in the next patches. Features that do not rely on external packages are explicitly enabled to catch the dependencies on toolchain features early. [Peter: propagate dependencies from libglib2] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>