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 | |
| 12 | BRANCH ?= "" |
| 13 | REPO ?= "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https" |
| 14 | |
| 15 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" |
| 16 | SRC_URI = "${REPO};${BRANCHARG}" |
| 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | # Don't need to do anything |
| 21 | do_install() { |
| 22 | : |
| 23 | } |
| 24 | |
| 25 | do_deploy() { |
| 26 | # single-arch dtbs |
| 27 | for DTS_FILE in ${S}/LATEST/SINGLE_ARCH/*.dtb; do |
| 28 | install -Dm 0644 $DTS_FILE ${DEPLOYDIR}/qemu-hw-devicetrees/$(basename $DTS_FILE .dtb).dtb |
| 29 | done |
| 30 | |
| 31 | # multi-arch dtbs |
| 32 | for DTS_FILE in ${S}/LATEST/MULTI_ARCH/*.dtb; do |
| 33 | install -Dm 0644 $DTS_FILE ${DEPLOYDIR}/qemu-hw-devicetrees/multiarch/$(basename $DTS_FILE .dtb).dtb |
| 34 | done |
| 35 | } |
| 36 | |
| 37 | addtask deploy after do_install |