From 8b5edbb9a2e7ba4b28eb216fb7fd03d6bff368ce Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 12 Nov 2021 14:02:34 +0000 Subject: dtc: add PACKAGECONFIGs for tools and yaml Leave yaml off by default. (From OE-Core rev: f70f9a7f44676f722e2541e1ef1f064c942fffcb) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-kernel/dtc/dtc_1.6.1.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'meta/recipes-kernel/dtc') diff --git a/meta/recipes-kernel/dtc/dtc_1.6.1.bb b/meta/recipes-kernel/dtc/dtc_1.6.1.bb index 44293cf4ff..6365f73e10 100644 --- a/meta/recipes-kernel/dtc/dtc_1.6.1.bb +++ b/meta/recipes-kernel/dtc/dtc_1.6.1.bb @@ -3,7 +3,6 @@ HOMEPAGE = "https://devicetree.org/" DESCRIPTION = "The Device Tree Compiler is a tool used to manipulate the Open-Firmware-like device tree used by PowerPC kernels." SECTION = "bootloader" LICENSE = "GPLv2 | BSD-2-Clause" -DEPENDS = "flex-native bison-native" LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ file://libfdt/libfdt.h;beginline=4;endline=7;md5=05bb357cfb75cae7d2b01d2ee8d76407" @@ -19,9 +18,12 @@ inherit meson pkgconfig EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled" +PACKAGECONFIG ??= "tools" +PACKAGECONFIG[tools] = "-Dtools=true,-Dtools=false,flex-native bison-native" +PACKAGECONFIG[yaml] = "-Dyaml=enabled,-Dyaml=disabled,libyaml" + PACKAGES =+ "${PN}-misc" FILES:${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff" - -RDEPENDS:${PN}-misc += "bash diffutils" +RDEPENDS:${PN}-misc += "${@bb.utils.contains('PACKAGECONFIG', 'tools', 'bash diffutils', '', d)}" BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf