xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-kernel/dtc/dtc_1.6.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Device Tree Compiler"
2HOMEPAGE = "https://devicetree.org/"
3DESCRIPTION = "The Device Tree Compiler is a tool used to manipulate the Open-Firmware-like device tree used by PowerPC kernels."
4SECTION = "bootloader"
5LICENSE = "GPL-2.0-only | BSD-2-Clause"
6
7LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8                    file://libfdt/libfdt.h;beginline=4;endline=7;md5=05bb357cfb75cae7d2b01d2ee8d76407"
9
10SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=master \
11           file://0001-fdtdump-fix-Werror-int-to-pointer-cast.patch"
12SRCREV = "b6910bec11614980a21e46fbccc35934b671bd81"
13
14UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
15
16S = "${WORKDIR}/git"
17
18inherit meson pkgconfig
19
20EXTRA_OEMESON = "-Dpython=disabled -Dvalgrind=disabled"
21
22PACKAGECONFIG ??= "tools"
23PACKAGECONFIG[tools] = "-Dtools=true,-Dtools=false,flex-native bison-native"
24PACKAGECONFIG[yaml] = "-Dyaml=enabled,-Dyaml=disabled,libyaml"
25
26PACKAGES =+ "${PN}-misc"
27FILES:${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff"
28RDEPENDS:${PN}-misc += "${@bb.utils.contains('PACKAGECONFIG', 'tools', 'bash diffutils', '', d)}"
29
30BBCLASSEXTEND = "native nativesdk"
31