Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 1 | SUMMARY = "Xilinx's hardware device trees required for QEMU" |
| 2 | HOMEPAGE = "https://github.com/xilinx/qemu-devicetrees/" |
| 3 | LICENSE = "BSD" |
| 4 | DEPENDS += "dtc-native" |
| 5 | |
| 6 | inherit deploy |
| 7 | |
| 8 | LIC_FILES_CHKSUM = "file://Makefile;beginline=1;endline=27;md5=7348b6cbcae69912cb1dee68d6c68d99" |
| 9 | |
| 10 | PV = "xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}" |
| 11 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 12 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 13 | SRC_URI_append = " file://0001-Makefile-Use-python3-instead-of-python.patch" |
| 14 | |
Brad Bishop | 286d45c | 2018-10-02 15:21:57 -0400 | [diff] [blame] | 15 | BRANCH ?= "" |
| 16 | REPO ?= "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https" |
| 17 | |
| 18 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
| 19 | SRC_URI = "${REPO};${BRANCHARG}" |
| 20 | |
| 21 | S = "${WORKDIR}/git" |
| 22 | |
| 23 | # Don't need to do anything |
| 24 | do_install() { |
| 25 | : |
| 26 | } |
| 27 | |
| 28 | do_deploy() { |
| 29 | # single-arch dtbs |
| 30 | for DTS_FILE in ${S}/LATEST/SINGLE_ARCH/*.dtb; do |
| 31 | install -Dm 0644 $DTS_FILE ${DEPLOYDIR}/qemu-hw-devicetrees/$(basename $DTS_FILE .dtb).dtb |
| 32 | done |
| 33 | |
| 34 | # multi-arch dtbs |
| 35 | for DTS_FILE in ${S}/LATEST/MULTI_ARCH/*.dtb; do |
| 36 | install -Dm 0644 $DTS_FILE ${DEPLOYDIR}/qemu-hw-devicetrees/multiarch/$(basename $DTS_FILE .dtb).dtb |
| 37 | done |
| 38 | } |
| 39 | |
| 40 | addtask deploy after do_install |