blob: 9a90d440416fc0396561af75ae09f8b4f04c606f [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Device Tree Compiler"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002HOMEPAGE = "https://devicetree.org/"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003DESCRIPTION = "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"
6DEPENDS = "flex-native bison-native"
7
8SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git \
9 file://make_install.patch \
Brad Bishop316dfdd2018-06-25 12:45:53 -040010 file://0001-checks-Use-proper-format-modifier-for-size_t.patch \
11 "
12UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
Brad Bishop316dfdd2018-06-25 12:45:53 -040014EXTRA_OEMAKE='NO_PYTHON=1 PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}"'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
16S = "${WORKDIR}/git"
17
18do_install () {
19 oe_runmake install
20}
21
22PACKAGES =+ "${PN}-misc"
23FILES_${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff"
24
Brad Bishop316dfdd2018-06-25 12:45:53 -040025RDEPENDS_${PN}-misc += "bash diffutils"