blob: 8e752921ac7b00624cdbeb455c79b1ff03cb8ffa [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
Andrew Geissler84ad7c52020-06-27 00:00:16 -050012FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
13SRC_URI_append = " file://0001-Makefile-Use-python3-instead-of-python.patch"
14
Brad Bishop286d45c2018-10-02 15:21:57 -040015BRANCH ?= ""
16REPO ?= "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https"
17
18BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
19SRC_URI = "${REPO};${BRANCHARG}"
20
21S = "${WORKDIR}/git"
22
23# Don't need to do anything
24do_install() {
25 :
26}
27
28do_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
40addtask deploy after do_install