diff mbox series

[v3,4/4] linux-yocto: include tools for dtb in devshell

Message ID 20230214183101.33761-4-twoerner@gmail.com
State New
Headers show
Series [v3,1/4] dtc: version bump and add python wrapper | expand

Commit Message

Trevor Woerner Feb. 14, 2023, 6:31 p.m. UTC
Make more tools available to the user in a kernel devshell so they can test
and validate their device trees.

	devshell> make dtbs_check

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 meta/recipes-kernel/linux/linux-yocto.inc | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
index 091003ed8299..86046150d5c7 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -63,6 +63,10 @@  KERNEL_FEATURES:append:qemuall=" features/kernel-sample/kernel-sample.scc"
 KERNEL_DEBUG_OPTIONS ?= "stack"
 KERNEL_EXTRA_ARGS:append:x86-64 = " ${@bb.utils.contains('KERNEL_DEBUG_OPTIONS', 'stack', 'HOST_LIBELF_LIBS="-L${RECIPE_SYSROOT_NATIVE}/usr/lib/pkgconfig/../../../usr/lib/ -lelf"', '', d)}"
 
+do_devshell[depends] = " \
+	python3-dtschema-native:do_populate_sysroot \
+	python3-yamllint-native:do_populate_sysroot \
+	"
 do_devshell:prepend() {
     # setup native pkg-config variables (kconfig scripts call pkg-config directly, cannot generically be overriden to pkg-config-native)
     d.setVar("PKG_CONFIG_DIR", "${STAGING_DIR_NATIVE}${libdir_native}/pkgconfig")