summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-12-05 19:03:06 -0600
committerJohn Klug <john.klug@multitech.com>2018-12-05 19:03:06 -0600
commit07b49a274ffb7f7516292430b6b334bc2bc11985 (patch)
treee5f9c587edf8dd2ee7887e1a76d7a3326aadc46d /recipes-bsp
parentd120eae11fa0d8a0f7d63a81f6a67a3f88546f17 (diff)
downloadmeta-multitech-atmel-07b49a274ffb7f7516292430b6b334bc2bc11985.tar.gz
meta-multitech-atmel-07b49a274ffb7f7516292430b6b334bc2bc11985.tar.bz2
meta-multitech-atmel-07b49a274ffb7f7516292430b6b334bc2bc11985.zip
Device Tree Overlay recipe adapted from ATMEL dt-overlay-at91
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/multitech/mt-dt-overlay.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mt-dt-overlay.bb b/recipes-bsp/multitech/mt-dt-overlay.bb
new file mode 100644
index 0000000..e4a3866
--- /dev/null
+++ b/recipes-bsp/multitech/mt-dt-overlay.bb
@@ -0,0 +1,39 @@
+DESCRIPTION = "Compile MT board device tree overlays"
+LICENSE = "(GPLv2+)"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+#inherit deploy
+
+# "or" more machines in the future
+COMPATIBLE_MACHINE = '(mtcdt)'
+
+SRC_URI = "git://git@gitlab.multitech.net/focus/mt-dt-overlay.git;protocol=ssh"
+
+PV = "1.0git${SRCPV}"
+SRCREV = "${AUTOREV}"
+
+DEPENDS = "virtual/kernel u-boot-mkimage-native"
+
+S = "${WORKDIR}/git"
+
+do_compile[depends] += "virtual/kernel:do_deploy virtual/kernel:do_shared_workdir"
+do_compile[nostamp] = "1"
+
+do_compile () {
+ echo MACHINE is ${MACHINE}
+ oe_runmake DTC=/usr/bin/dtc KERNEL_DIR=${STAGING_KERNEL_DIR} KERNEL_BUILD_DIR=${KERNEL_PATH} ${MACHINE}_dtbos
+}
+
+FILES_${PN} = "${base_libdir}"
+
+addtask install after do_compile
+
+do_install () {
+ # Copy files to /lib/dt-overlay/main (mtac cards will be in mtac)
+ if [ -e ${AT91BOOTSTRAP_MACHINE} ]; then
+ install -d ${D}/${base_libdir}/dt-overlay/main
+ install ${MACHINE}/*.dtbo ${D}/${base_libdir}/dt-overlay/main
+ fi;
+
+}
+