blob: fb8d7012b015a6a22cf542ba5b5b569a52c22350 [file] [log] [blame]
Andrew Geissler84ad7c52020-06-27 00:00:16 -05001SUMMARY = "Xilinx PYNQ overlay"
2HOMEPAGE = "http://pynq.io"
3LICENSE = "Proprietary"
4LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=23;md5=04c57e41ad93d4d6b6ca3d766372b0fa"
5
6DEPENDS += "dtc-native"
7
8SRC_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
17S="${WORKDIR}"
18
19PYNQ_DTSI ??= "pynq_zynqmp.dtsi"
20PYNQ_DTSI_zynqmp ?= "pynq_zynqmp.dtsi"
21PYNQ_DTSI_zynq ?= "pynq_zynq.dtsi"
22PYNQ_SYMBOL_DTSI_zynqmp ?= "pynq_zynqmp_symbols.dtsi"
23PYNQ_SYMBOL_DTSI_zynq ?= "pynq_zynq_symbols.dtsi"
24PYNQ_DTBO ?= "pynq.dtbo"
25PYNQ_SYMBOL_DTBO ?= "pynq-symbols.dtbo"
26
27do_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
34do_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
45FILES_${PN} += "/lib/firmware/pynq.dtbo /lib/firmware/pynq-symbols.dtbo ${sysconfdir}/modprobe.d/generic-uio.conf"