diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-11-23 16:28:33 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-26 17:01:08 +0000 |
commit | 1bac831fbaafb6fd27addbb467b0815679a62319 (patch) | |
tree | 059685460d1e4d00ac30853aa3e14d0af65c0580 /meta/recipes-kernel | |
parent | 2566563ad49dab8043f2b11892d37e0abe621667 (diff) | |
download | poky-1bac831fbaafb6fd27addbb467b0815679a62319.tar.gz |
linux-yocto-dev: introduce dt-validation PACKAGECONFIG
Add a PACKAGECONFIG to control which type of dt-validation
is installed (full, or wrapped).
This is currently in linux-yocto-dev, as 5.16 introduces
the functionality of required dt schema validation.
Other v5.16 providing recipes can use the base functionality
as they desire (with or without PACKAGECONFIG).
Over time, we can migrate the support the the core
kernel classes .. in particular when more providers are at
v5.16+
(From OE-Core rev: c12a91827e88230b4ec702a88534d4c51c1aabe3)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-dev.bb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb index ed94ab2517..6b6ea9a7e8 100644 --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb | |||
@@ -39,8 +39,16 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | |||
39 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | 39 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" |
40 | DEPENDS += "openssl-native util-linux-native" | 40 | DEPENDS += "openssl-native util-linux-native" |
41 | DEPENDS += "gmp-native libmpc-native" | 41 | DEPENDS += "gmp-native libmpc-native" |
42 | # yaml and dtschema are required for 5.16+ device tree validation | 42 | |
43 | DEPENDS += "libyaml-native python3-dtschema-native" | 43 | # yaml and dtschema are required for 5.16+ device tree validation, libyaml is checked |
44 | # via pkgconfig, so must always be present, but we can wrap the others to make them | ||
45 | # conditional | ||
46 | DEPENDS += "libyaml-native" | ||
47 | |||
48 | PACKAGECONFIG ??= "" | ||
49 | PACKAGECONFIG[dt-validation] = ",,python3-dtschema-native" | ||
50 | # we need the wrappers if validation isn't in the packageconfig | ||
51 | DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}" | ||
44 | 52 | ||
45 | COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv64)" | 53 | COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv64)" |
46 | 54 | ||