diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2025-02-20 19:23:43 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-25 12:17:22 +0000 |
commit | f1ea319021ae13a7432554380168939f18736d7a (patch) | |
tree | d570c22ac8302dd069535eea908cc60708a2ff53 /scripts | |
parent | 29b0eebb1967cc50ee63226d6d72a3abcbff66ef (diff) | |
download | poky-f1ea319021ae13a7432554380168939f18736d7a.tar.gz |
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
(From OE-Core rev: 992d6075fbb4e8eb82920a477fcc38b3c0dc8cd5)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 14eb939b3e..86124a4a6a 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -1676,6 +1676,9 @@ to your build configuration. | |||
1676 | if multiconfig: | 1676 | if multiconfig: |
1677 | multiconfig = "mc:%s" % multiconfig | 1677 | multiconfig = "mc:%s" % multiconfig |
1678 | 1678 | ||
1679 | if self.rootfs and not target: | ||
1680 | target = self.rootfs | ||
1681 | |||
1679 | if mach: | 1682 | if mach: |
1680 | cmd = 'MACHINE=%s bitbake -e %s %s' % (mach, multiconfig, target) | 1683 | cmd = 'MACHINE=%s bitbake -e %s %s' % (mach, multiconfig, target) |
1681 | else: | 1684 | else: |