blob: 12508b235d928701e0b79a0daffc0657305e890c [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 \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060010 file://0001-dtc-Fix-Makefile-to-add-CFLAGS-not-override.patch \
Brad Bishop316dfdd2018-06-25 12:45:53 -040011 "
Andrew Geisslerd1e89492021-02-12 15:35:20 -060012
Brad Bishop316dfdd2018-06-25 12:45:53 -040013UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
Brad Bishop316dfdd2018-06-25 12:45:53 -040015EXTRA_OEMAKE='NO_PYTHON=1 PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}"'
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
Brad Bishopc342db32019-05-15 21:57:59 -040017inherit pkgconfig
18
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019S = "${WORKDIR}/git"
20
21do_install () {
22 oe_runmake install
23}
24
25PACKAGES =+ "${PN}-misc"
Patrick Williams213cb262021-08-07 19:21:33 -050026FILES:${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027
Patrick Williams213cb262021-08-07 19:21:33 -050028RDEPENDS:${PN}-misc += "bash diffutils"