diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2021-12-15 13:52:16 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2021-12-22 08:19:01 -0800 |
commit | 322e23dc213d51a12345ca705b3776f189dc413f (patch) | |
tree | e257ca97fa6d3eef83c845b67d711b2d8ecba5ba /meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc | |
parent | dd95dde009dc7968f6e6e4c0609e7b443c55c627 (diff) | |
download | meta-xilinx-322e23dc213d51a12345ca705b3776f189dc413f.tar.gz |
Initial restructure/split of meta-xilinx-bsp
Create a new meta-xilinx-core, move core functionality to the core, keeping
board specific files in the bsp layer.
zynqmp-generic changed from require <board> to include, so if meta-xilinx-bsp
is not available it will not fail.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc')
-rw-r--r-- | meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc new file mode 100644 index 00000000..6d834297 --- /dev/null +++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-devicetrees.inc | |||
@@ -0,0 +1,39 @@ | |||
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 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
13 | SRC_URI:append = " file://0001-Makefile-Use-python3-instead-of-python.patch" | ||
14 | |||
15 | REPO ?= "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https" | ||
16 | |||
17 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
18 | SRC_URI = "${REPO};${BRANCHARG}" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | # Don't need to do anything | ||
23 | do_install() { | ||
24 | : | ||
25 | } | ||
26 | |||
27 | do_deploy() { | ||
28 | # single-arch dtbs | ||
29 | for DTS_FILE in ${S}/LATEST/SINGLE_ARCH/*.dtb; do | ||
30 | install -Dm 0644 $DTS_FILE ${DEPLOYDIR}/qemu-hw-devicetrees/$(basename $DTS_FILE .dtb).dtb | ||
31 | done | ||
32 | |||
33 | # multi-arch dtbs | ||
34 | for DTS_FILE in ${S}/LATEST/MULTI_ARCH/*.dtb; do | ||
35 | install -Dm 0644 $DTS_FILE ${DEPLOYDIR}/qemu-hw-devicetrees/multiarch/$(basename $DTS_FILE .dtb).dtb | ||
36 | done | ||
37 | } | ||
38 | |||
39 | addtask deploy after do_install | ||