diff options
author | Alistair Francis <alistair.francis@xilinx.com> | 2016-10-03 10:46:50 -0700 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2016-10-11 22:36:30 +1000 |
commit | 8e5558cd1d0a1722dae3ad813363a955819e5042 (patch) | |
tree | f9a17ec53b0c8fd3ec6aeb99e1051881ee9378cd /recipes-devtools | |
parent | 037f98b2e5ba0bc056233c99aa4e9b55a2bae1fb (diff) | |
download | meta-xilinx-8e5558cd1d0a1722dae3ad813363a955819e5042.tar.gz |
qemu-devicetrees: Build the Xilinx QEMU device trees
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r-- | recipes-devtools/qemu/qemu-devicetrees_2.2.5.bb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/qemu-devicetrees_2.2.5.bb b/recipes-devtools/qemu/qemu-devicetrees_2.2.5.bb new file mode 100644 index 00000000..b4c914ba --- /dev/null +++ b/recipes-devtools/qemu/qemu-devicetrees_2.2.5.bb | |||
@@ -0,0 +1,33 @@ | |||
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 | SRCREV = "46faf58cd14cdfd06cae7c076cb486af8565ab6a" | ||
11 | SRC_URI = "git://github.com/Xilinx/qemu-devicetrees.git;protocol=https;nobranch=1" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | # Don't need to do anything | ||
16 | do_install() { | ||
17 | : | ||
18 | } | ||
19 | |||
20 | do_deploy() { | ||
21 | for DTS_FILE in ${S}/LATEST/SINGLE_ARCH/*.dtb; do | ||
22 | if [ ! -f ${DTS_FILE} ]; then | ||
23 | bbwarn "${DTS_FILE} is not available!" | ||
24 | continue | ||
25 | fi | ||
26 | DTS_NAME=`basename -s .dtb ${DTS_FILE}` | ||
27 | install -d ${DEPLOYDIR} | ||
28 | install -d ${DEPLOYDIR}/qemu-hw-devicetrees | ||
29 | install -m 0644 ${S}/LATEST/SINGLE_ARCH/${DTS_NAME}.dtb ${DEPLOYDIR}/qemu-hw-devicetrees/${DTS_NAME}.dtb | ||
30 | done | ||
31 | } | ||
32 | |||
33 | addtask deploy after do_install | ||