Skip to contentSkip to conversation

runqemu: Allow the user to specity DTB

PATCH In review Ben Levinsky 2 participants 2 messages Jun 15, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runqemu: Allow the user to specity DTB

In some cirsumstances the user doesn't want to supply a kernel, rootFS to QEMU, but only a DTB.

Allow users to specify dtb for supply via the QB_DTB option to QEMU.

---
 scripts/runqemu | 3 +++
 1 file changed, 3 insertions(+)
scripts/runqemu +3 -0
index 0b6daf2..075b3b9 100755
@@ -604,7 +604,9 @@ class BaseConfig(object):
         if not os.path.exists(self.kernel):
             raise RunQemuError("KERNEL %s not found" % self.kernel)
 
+    def check_dtb(self):
         dtb = self.get('QB_DTB')
+        deploy_dir_image = self.get('DEPLOY_DIR_IMAGE')
         if dtb:
             cmd_match = "%s/%s" % (deploy_dir_image, dtb)
             cmd_startswith = "%s/%s*" % (deploy_dir_image, dtb)
@@ -674,6 +676,7 @@ class BaseConfig(object):
         self.check_rootfs()
         self.check_ovmf()
         self.check_kernel()
+        self.check_dtb()
         self.check_biosdir()
         self.check_mem()
         self.check_tcpserial()
Signature · 1 line
2.7.4
#1 lore raw
Quoted 11 lines · Ben Levinsky

In some cirsumstances the user doesn't want to supply a kernel, rootFS
to QEMU, but only a DTB.

Allow users to specify dtb for supply via the QB_DTB option to QEMU.

---
 scripts/runqemu | 3 +++
 1 file changed, 3 insertions(+)

The patch looks good but this needs to go to the openembedded-core mailing list as this script is part of the oe-core repo, not bitbake.

Cheers,

Richard