From: Arnout Vandecappelle Date: Tue, 4 Feb 2020 15:31:59 +0100 Subject: [Buildroot] [PATCH v3 for-next 00/11] gitlab Qemu runtime testing In-Reply-To: <341bf831-7063-ca42-2fa1-967ce7836d92@smile.fr> References: <20191117201909.12900-1-romain.naour@smile.fr> <4ae261dd-e9f5-0212-eafd-c642c21d27bf@smile.fr> <99a9e061-7fca-c7c0-683b-49845067ba8f@mind.be> <87k16s4lkk.fsf@dell.be.48ers.dk> <341bf831-7063-ca42-2fa1-967ce7836d92@smile.fr> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 04/02/2020 14:59, Romain Naour wrote: > Hi, > > Le 19/12/2019 ? 12:11, Peter Korsgaard a ?crit?: >>>>>>> "Arnout" == Arnout Vandecappelle writes: >> >> Hi, >> >> >> I discussed about this series with Jeremy and he suggest to add the Qemu command >> >> line into the Qemu's defconfig file (add a new Kconfig option). >> >> With that, we can even add a new Makefile target "make run-qemu" to start Qemu >> >> when the Qemu command line is set in the defconfig (this would avoid adding >> >> several launch.sh script). >> >> > So something like >> >> > config BR2_PACKAGE_HOST_QEMU_LAUNCH_ARGS >> > string "qemu launch command" >> > help >> > Command to launch qemu. If this is defined, 'make run-qemu' can be >> > used to build everything and launch qemu. >> >> >> > HOST_QEMU_LAUNCH_ARGS = $(call qstrip,$(BR2_PACKAGE_HOST_QEMU_LAUNCH_ARGS)) >> > ifneq ($(HOST_QEMU_LAUNCH_ARGS),) >> > run-qemu: world >> > $(Q)$(HOST_QEMU) $(HOST_QEMU_LAUNCH_ARGS) >> > endif >> >> > Looks like a good idea indeed! >> >> Cute. The kernel arguments (-kernel path/to/kernel/image) could indeed >> probably be standardized, but we do some to have quite some variation in >> the rootfs arguments. >> >> But OK, we could start with just including the rootfs argument in >> _LAUNCH_ARGS. >> > > About the qemu-system-* binary, should we use the one from the host or use the > one from the host-qemu package? (or it depend?) > > It can be convenient to use the Qemu provided by the host since it can provide > full feature support. The Qemu provided by host-qemu only support some > dependencies but not all. > > On the other hand, the user can still use the qemu-system-* he want by not using > make run-qemu but using the qemu command line in the console. Indeed. I think the 'run-qemu' should be something completely self-contained and not rely on anything on the build machine. So I think we should use host-qemu. Regards, Arnout