blob: 2610b26a94a71f7dec6903a6ccfc44aed56cbfda [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001SUMMARY = "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 = "GPLv2 | BSD-2-Clause"
Brad Bishop79641f22019-09-10 07:20:22 -04006
7LIC_FILES_CHKSUM = "file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
Andrew Geissler595f6302022-01-24 19:11:47 +00008 file://libfdt/libfdt.h;beginline=4;endline=7;md5=05bb357cfb75cae7d2b01d2ee8d76407"
Brad Bishop79641f22019-09-10 07:20:22 -04009
Andrew Geissler595f6302022-01-24 19:11:47 +000010SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=master \
11 file://0001-fdtdump-fix-Werror-int-to-pointer-cast.patch"
Andrew Geissler09036742021-06-25 14:25:14 -050012SRCREV = "b6910bec11614980a21e46fbccc35934b671bd81"
Andrew Geissler90fd73c2021-03-05 15:25:55 -060013
Andrew Geissler595f6302022-01-24 19:11:47 +000014UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
15
Brad Bishop79641f22019-09-10 07:20:22 -040016S = "${WORKDIR}/git"
17
Andrew Geissler595f6302022-01-24 19:11:47 +000018inherit 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
Brad Bishop79641f22019-09-10 07:20:22 -040030BBCLASSEXTEND = "native nativesdk"