SUMMARY = "Device Tree Compiler"
DESCRIPTION = "The Device Tree Compiler is a tool used to manipulate the Open-Firmware-like device tree used by PowerPC kernels."
SECTION = "bootloader"
LICENSE = "GPLv2 | BSD"
DEPENDS = "flex-native bison-native"

inherit autotools

SRC_URI = "git://www.jdl.com/software/dtc.git;protocol=git \
           file://make_install.patch \
	  "

EXTRA_OEMAKE='PREFIX="${prefix}" LIBDIR="${libdir}"'
INC_PR = "r3"

S = "${WORKDIR}/git"

PACKAGES =+ "${PN}-misc"
FILES_${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff"