[meta-xilinx] [PATCH v2 1/6] qemu-devicetrees: Deploying of MULTI_ARCH device trees
Nathan Rossi
nathan at nathanrossi.com
Tue May 30 04:45:36 PDT 2017
Deploy the MULTI_ARCH specific device trees for use with QEMU.
Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
Reviewed-by: Alistair Francis <alistair.francis at xilinx.com>
---
recipes-devtools/qemu/qemu-devicetrees_2017.1.bb | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/recipes-devtools/qemu/qemu-devicetrees_2017.1.bb b/recipes-devtools/qemu/qemu-devicetrees_2017.1.bb
index dc38f75dc9..df9c2c8c7d 100644
--- a/recipes-devtools/qemu/qemu-devicetrees_2017.1.bb
+++ b/recipes-devtools/qemu/qemu-devicetrees_2017.1.bb
@@ -18,15 +18,14 @@ do_install() {
}
do_deploy() {
+ # single-arch dtbs
for DTS_FILE in ${S}/LATEST/SINGLE_ARCH/*.dtb; do
- if [ ! -f ${DTS_FILE} ]; then
- bbwarn "${DTS_FILE} is not available!"
- continue
- fi
- DTS_NAME=`basename ${DTS_FILE} .dtb`
- install -d ${DEPLOYDIR}
- install -d ${DEPLOYDIR}/qemu-hw-devicetrees
- install -m 0644 ${S}/LATEST/SINGLE_ARCH/${DTS_NAME}.dtb ${DEPLOYDIR}/qemu-hw-devicetrees/${DTS_NAME}.dtb
+ install -Dm 0644 $DTS_FILE ${DEPLOYDIR}/qemu-hw-devicetrees/$(basename $DTS_FILE .dtb).dtb
+ done
+
+ # multi-arch dtbs
+ for DTS_FILE in ${S}/LATEST/MULTI_ARCH/*.dtb; do
+ install -Dm 0644 $DTS_FILE ${DEPLOYDIR}/qemu-hw-devicetrees/multiarch/$(basename $DTS_FILE .dtb).dtb
done
}
--
2.11.0
More information about the meta-xilinx
mailing list