summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2016-09-03 23:29:51 +1000
committerNathan Rossi <nathan@nathanrossi.com>2016-09-28 23:16:11 +1000
commitc52a435a45eae4e13e1c6a5a43039e84f0d3bbba (patch)
tree2fb9526ec58e628ff59f506e2e27658220e72be3
parent06c755302e1ca7a24371367fa17b54a858be69bb (diff)
downloadmeta-xilinx-c52a435a45eae4e13e1c6a5a43039e84f0d3bbba.tar.gz
device-tree: Use deploy class to handle shared state
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@nathanrossi.com>
-rw-r--r--recipes-bsp/device-tree/device-tree.bb8
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes-bsp/device-tree/device-tree.bb b/recipes-bsp/device-tree/device-tree.bb
index 2573e522..aa2a611d 100644
--- a/recipes-bsp/device-tree/device-tree.bb
+++ b/recipes-bsp/device-tree/device-tree.bb
@@ -5,6 +5,8 @@ SECTION = "bsp"
5LICENSE = "MIT" 5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
7 7
8inherit deploy
9
8INHIBIT_DEFAULT_DEPS = "1" 10INHIBIT_DEFAULT_DEPS = "1"
9PACKAGE_ARCH = "${MACHINE_ARCH}" 11PACKAGE_ARCH = "${MACHINE_ARCH}"
10 12
@@ -95,8 +97,8 @@ do_deploy() {
95 continue 97 continue
96 fi 98 fi
97 DTS_NAME=`basename -s .dts ${DTS_FILE}` 99 DTS_NAME=`basename -s .dts ${DTS_FILE}`
98 install -d ${DEPLOY_DIR_IMAGE} 100 install -d ${DEPLOYDIR}
99 install -m 0644 ${B}/${DTS_NAME}.dtb ${DEPLOY_DIR_IMAGE}/${DTS_NAME}.dtb 101 install -m 0644 ${B}/${DTS_NAME}.dtb ${DEPLOYDIR}/${DTS_NAME}.dtb
100 done 102 done
101} 103}
102 104
@@ -106,7 +108,7 @@ do_deploy_append() {
106 if [ ! -z "${DEPLOY_KERNEL_DTB}" -a ! -z "${KERNEL_IMAGETYPE}" ]; then 108 if [ ! -z "${DEPLOY_KERNEL_DTB}" -a ! -z "${KERNEL_IMAGETYPE}" ]; then
107 for DTS_FILE in ${DEVICETREE}; do 109 for DTS_FILE in ${DEVICETREE}; do
108 DTS_NAME=`basename -s .dts ${DTS_FILE}` 110 DTS_NAME=`basename -s .dts ${DTS_FILE}`
109 KERNELDTBPATH=${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_NAME}.dtb 111 KERNELDTBPATH=${DEPLOYDIR}/${KERNEL_IMAGETYPE}-${DTS_NAME}.dtb
110 if [ ! -e ${KERNELDTBPATH} -o -h ${KERNELDTBPATH} ]; then 112 if [ ! -e ${KERNELDTBPATH} -o -h ${KERNELDTBPATH} ]; then
111 ln -sf ${DTS_NAME}.dtb ${KERNELDTBPATH} 113 ln -sf ${DTS_NAME}.dtb ${KERNELDTBPATH}
112 fi 114 fi