dt-overlays: add devictree overlays for dualcan and gpios

This commit is contained in:
Stefan Eichenberger 2017-10-31 10:51:41 +01:00
parent 0bf7c1b008
commit 0e19d5fafa
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
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 ?= "88d2b33496f31aeddcb206f23930b5af6cdeb083"
SRC_URI = "git://github.com/netmodule/dt-overlays.git;protocol=https"
S = "${WORKDIR}/git"
dtos = " \
am335x-nbhw16-shield-dualcan \
am335x-nbhw16-shield-gpios \
"
FILES_${PN} += "/lib/firmware"
do_compile() {
for dto in ${dtos}; do
dtc -@ -i dts -o dto -o $dto.dtbo $dto.dts
done
}
do_install() {
install -d ${D}/lib/firmware/
for dto in ${dtos}; do
install -m 0644 $dto.dtbo ${D}/lib/firmware/
done
}