[meta-xilinx] [PATCH 09/29] device-tree: Use deploy class to handle shared state

Nathan Rossi nathan at nathanrossi.com
Wed Sep 28 08:15:36 PDT 2016


Use the deploy class and DEPLOYDIR to ensure that deploy objects are
populated into the shared state cache. This ensures that the objects are
also correctly populated into the output deploy directory regardless of
whether the do_deploy task is executed.

Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
---
 recipes-bsp/device-tree/device-tree.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/recipes-bsp/device-tree/device-tree.bb b/recipes-bsp/device-tree/device-tree.bb
index 2573e52293..aa2a611d39 100644
--- a/recipes-bsp/device-tree/device-tree.bb
+++ b/recipes-bsp/device-tree/device-tree.bb
@@ -5,6 +5,8 @@ SECTION = "bsp"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
+inherit deploy
+
 INHIBIT_DEFAULT_DEPS = "1"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
@@ -95,8 +97,8 @@ do_deploy() {
 			continue
 		fi
 		DTS_NAME=`basename -s .dts ${DTS_FILE}`
-		install -d ${DEPLOY_DIR_IMAGE}
-		install -m 0644 ${B}/${DTS_NAME}.dtb ${DEPLOY_DIR_IMAGE}/${DTS_NAME}.dtb
+		install -d ${DEPLOYDIR}
+		install -m 0644 ${B}/${DTS_NAME}.dtb ${DEPLOYDIR}/${DTS_NAME}.dtb
 	done
 }
 
@@ -106,7 +108,7 @@ do_deploy_append() {
 	if [ ! -z "${DEPLOY_KERNEL_DTB}" -a ! -z "${KERNEL_IMAGETYPE}" ]; then
 		for DTS_FILE in ${DEVICETREE}; do
 			DTS_NAME=`basename -s .dts ${DTS_FILE}`
-			KERNELDTBPATH=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_NAME}.dtb
+			KERNELDTBPATH=${DEPLOYDIR}/${KERNEL_IMAGETYPE}-${DTS_NAME}.dtb
 			if [ ! -e ${KERNELDTBPATH} -o -h ${KERNELDTBPATH} ]; then
 				ln -sf ${DTS_NAME}.dtb ${KERNELDTBPATH}
 			fi
-- 
2.9.3



More information about the meta-xilinx mailing list