blob: 0650e3c82e6d40a6b4c2d4444a63b38c20d3b7fb [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 "
11UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012
Brad Bishop316dfdd2018-06-25 12:45:53 -040013EXTRA_OEMAKE='NO_PYTHON=1 PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}"'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
Brad Bishopc342db32019-05-15 21:57:59 -040015inherit pkgconfig
16
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017S = "${WORKDIR}/git"
18
19do_install () {
20 oe_runmake install
21}
22
23PACKAGES =+ "${PN}-misc"
24FILES_${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff"
25
Brad Bishop316dfdd2018-06-25 12:45:53 -040026RDEPENDS_${PN}-misc += "bash diffutils"