Signed-off-by: Alistair Francis <[email protected]>
---
 recipes-devtools/qemu/qemu-devicetrees_2.2.5.bb | 41 +++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 recipes-devtools/qemu/qemu-devicetrees_2.2.5.bb

diff --git a/recipes-devtools/qemu/qemu-devicetrees_2.2.5.bb 
b/recipes-devtools/qemu/qemu-devicetrees_2.2.5.bb
new file mode 100644
index 0000000..d06f601
--- /dev/null
+++ b/recipes-devtools/qemu/qemu-devicetrees_2.2.5.bb
@@ -0,0 +1,41 @@
+SUMMARY = "Xilinx's hardware device trees required for QEMU"
+HOMEPAGE = "https://github.com/xilinx/qemu-devicetrees/";
+LICENSE = "BSD"
+DEPENDS += "dtc-native"
+
+LIC_FILES_CHKSUM = "file://README;md5=0f52b512c21e3541b90ca9fa39aff8fe"
+
+SRCREV = "3ebe0ecc634c25e8a79655f9465cf614dff62390"
+SRC_URI = 
"git://github.com/Xilinx/qemu-devicetrees.git;protocol=https;nobranch=1  \
+          "
+
+S = "${WORKDIR}/git"
+
+FILES_${PN} += " \
+               LATEST/SINGLE_ARCH/zcu102-arm.dtb \
+               "
+
+do_compile() {
+       make
+}
+
+# Don't need to do anything
+do_install() {
+       :
+}
+
+do_deploy() {
+       for DTS_FILE in ${S}/LATEST/SINGLE_ARCH/*.dtb; do
+               echo "any chance?"
+               if [ ! -f ${DTS_FILE} ]; then
+                       echo "Warning: ${DTS_FILE} is not available!"
+                       continue
+               fi
+               DTS_NAME=`basename -s .dtb ${DTS_FILE}`
+               install -d ${DEPLOY_DIR_IMAGE}
+               install -d ${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees
+               install -m 0644 ${S}/LATEST/SINGLE_ARCH/${DTS_NAME}.dtb 
${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/${DTS_NAME}.dtb
+       done
+}
+
+addtask deploy after do_install
-- 
2.7.4

-- 
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to