meta-netmodule-bsp/recipes-kernel/dt-overlays/dt-overlays.bb

38 lines
937 B
BlitzBasic

DESCRIPTION = "Allow loading of devicetree overlays via configfs"
HOMEPAGE = "http://www.netmodule.com/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
DEPENDS = "dtc-native"
PV = "1.0.0"
SRCREV ?= "de7143db7ec306775dad690fcaa8922202b928dc"
SRC_URI = "git://git.netmodule.intranet/nmrouter/dt-overlays.git;protocol=ssh;user=gitea"
S = "${WORKDIR}/git"
dtos = " \
am335x-nbhw16-shield-comio-gpio \
am335x-nbhw16-shield-dualcan-can \
am335x-nbhw16-shield-dualcan-dyngpio \
am335x-nbhw16-shield-dualcan-fixgpio \
"
FILES_${PN} += "${nonarch_base_libdir}/firmware"
do_compile() {
for dto in ${dtos}; do
dtc -@ -i dts -o dto -o $dto.dtbo $dto.dts
done
}
do_install() {
install -d ${D}${nonarch_base_libdir}/firmware/
for dto in ${dtos}; do
install -m 0644 $dto.dtbo ${D}${nonarch_base_libdir}/firmware/
done
}