blob: d4044ed728cee47b265ce7affee151630952711f [file] [log] [blame]
Brad Bishop286d45c2018-10-02 15:21:57 -04001SUMMARY = "Xilinx's hardware device trees required for QEMU"
2HOMEPAGE = "https://github.com/xilinx/qemu-devicetrees/"
3LICENSE = "BSD"
4DEPENDS += "dtc-native"
5
6inherit deploy
7
8LIC_FILES_CHKSUM = "file://Makefile;beginline=1;endline=27;md5=7348b6cbcae69912cb1dee68d6c68d99"
9
10PV = "xilinx-${XILINX_RELEASE_VERSION}+git${SRCPV}"
11
12BRANCH ?= ""
13REPO ?= "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https"
14
15BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
16SRC_URI = "${REPO};${BRANCHARG}"
17
18S = "${WORKDIR}/git"
19
20# Don't need to do anything
21do_install() {
22 :
23}
24
25do_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
37addtask deploy after do_install