From: Robert Yang Date: Fri, 21 Feb 2025 03:23:43 +0000 (-0800) Subject: runqemu: Set target to rootfs when target is empty X-Git-Tag: yocto-5.2~413 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=992d6075fbb4e8eb82920a477fcc38b3c0dc8cd5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git runqemu: Set target to rootfs when target is empty Fixed: $ runqemu qemux86-64 core-image-minimal runqemu - ERROR - IMAGE_LINK_NAME wasn't set to find corresponding .qemuboot.conf file Signed-off-by: Robert Yang Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/scripts/runqemu b/scripts/runqemu index 14eb939b3ef..86124a4a6a3 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -1676,6 +1676,9 @@ to your build configuration. if multiconfig: multiconfig = "mc:%s" % multiconfig + if self.rootfs and not target: + target = self.rootfs + if mach: cmd = 'MACHINE=%s bitbake -e %s %s' % (mach, multiconfig, target) else: