dt-overlays: add devictree overlays for dualcan and gpios
This commit is contained in:
parent
0bf7c1b008
commit
0e19d5fafa
|
|
@ -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
|
||||
}
|
||||
Loading…
Reference in New Issue