summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-raspberrypi/recipes-kernel/fdtoverlay/fdtoverlay.inc
blob: e769a1864083b2be3c32fa39d7a8c0abd1b3a11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SUMMARY = "fdtoverlay from the device tree compiler"
HOMEPAGE = "https://devicetree.org/"
DESCRIPTION = "fdtoverlay is a tool to apply a number of overlays to a base blob."
SECTION = "bootloader"
LICENSE = "GPLv2 | BSD"
DEPENDS = "flex-native bison-native"

SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git \
           file://make_install.patch \
           "
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"

EXTRA_OEMAKE='NO_PYTHON=1 PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}"'

S = "${WORKDIR}/git"

do_compile () {
	oe_runmake fdtoverlay
}

do_install () {
	install -d ${D}/${bindir}
	install -m 0755 ${S}/fdtoverlay ${D}/${bindir}/fdtoverlay
}

FILES_${PN} = "${bindir}/fdtoverlay"