Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 1 | SUMMARY = "Xilinx PYNQ overlay" |
| 2 | HOMEPAGE = "http://pynq.io" |
| 3 | LICENSE = "Proprietary" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=23;md5=04c57e41ad93d4d6b6ca3d766372b0fa" |
| 5 | |
| 6 | DEPENDS += "dtc-native" |
| 7 | |
| 8 | SRC_URI = " \ |
| 9 | file://pynq_zynqmp.dtsi \ |
| 10 | file://pynq_zynq.dtsi \ |
| 11 | file://pynq_zynqmp_symbols.dtsi \ |
| 12 | file://pynq_zynq_symbols.dtsi \ |
| 13 | file://generic-uio.conf \ |
| 14 | file://LICENSE \ |
| 15 | " |
| 16 | |
| 17 | S="${WORKDIR}" |
| 18 | |
| 19 | PYNQ_DTSI ??= "pynq_zynqmp.dtsi" |
| 20 | PYNQ_DTSI_zynqmp ?= "pynq_zynqmp.dtsi" |
| 21 | PYNQ_DTSI_zynq ?= "pynq_zynq.dtsi" |
| 22 | PYNQ_SYMBOL_DTSI_zynqmp ?= "pynq_zynqmp_symbols.dtsi" |
| 23 | PYNQ_SYMBOL_DTSI_zynq ?= "pynq_zynq_symbols.dtsi" |
| 24 | PYNQ_DTBO ?= "pynq.dtbo" |
| 25 | PYNQ_SYMBOL_DTBO ?= "pynq-symbols.dtbo" |
| 26 | |
| 27 | do_compile() { |
| 28 | |
| 29 | dtc -I dts -O dtb -@ ${WORKDIR}/${PYNQ_DTSI} -o ${S}/${PYNQ_DTBO} |
| 30 | dtc -I dts -O dtb -@ ${WORKDIR}/${PYNQ_SYMBOL_DTSI} -o ${S}/${PYNQ_SYMBOL_DTBO} |
| 31 | } |
| 32 | |
| 33 | |
| 34 | do_install() { |
| 35 | |
| 36 | install -d ${D}/lib/firmware |
| 37 | install -m 755 ${S}/${PYNQ_DTBO} ${D}/lib/firmware/${PYNQ_DTBO} |
| 38 | install -m 755 ${S}/${PYNQ_SYMBOL_DTBO} ${D}/lib/firmware/${PYNQ_SYMBOL_DTBO} |
| 39 | |
| 40 | install -d ${D}/etc/modprobe.d |
| 41 | install -m 644 ${WORKDIR}/generic-uio.conf ${D}${sysconfdir}/modprobe.d/generic-uio.conf |
| 42 | |
| 43 | } |
| 44 | |
| 45 | FILES_${PN} += "/lib/firmware/pynq.dtbo /lib/firmware/pynq-symbols.dtbo ${sysconfdir}/modprobe.d/generic-uio.conf" |