[meta-freescale] [meta-fsl-arm PATCH] imx-bootlets: Add deploy in sstate-cache

Otavio Salvador otavio at ossystems.com.br
Sun Sep 22 14:16:59 PDT 2013


The right way to support deployment of files is inheriting the deploy
class so it is add to the sstate-cache. If we don't do that we end
redoing the build without a real need.

Change-Id: If0a0cdcfe8abf5b50b72a0c04c8d0d273ad1a91a
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb
index dd34ba8..b96c1e9 100644
--- a/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb
+++ b/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb
@@ -14,6 +14,8 @@ SRC_URI[sha256sum] = "63f6068ae36884adef4259bbb1fe2591755718f22c46d0a59d854883df
 
 S = "${WORKDIR}/imx-bootlets-src-${PV}"
 
+inherit deploy
+
 # Disable parallel building or it may fail to build.
 PARALLEL_MAKE = ""
 
@@ -56,7 +58,7 @@ do_install () {
 FILES_${PN} = "/boot"
 
 do_deploy () {
-    install -d ${DEPLOY_DIR_IMAGE}
+    install -d ${DEPLOYDIR}
 
 	for f in boot_prep/boot_prep \
              power_prep/power_prep \
@@ -66,8 +68,8 @@ do_deploy () {
         full_name="imx-bootlets-`basename $f`-${MACHINE}-${PV}-${PR}"
         symlink_name="imx-bootlets-`basename $f`-${MACHINE}"
 
-        install -m 644 ${S}/$f ${DEPLOY_DIR_IMAGE}/$full_name
-        (cd ${DEPLOY_DIR_IMAGE} ; rm -f $symlink_nake ; ln -sf $full_name $symlink_name)
+        install -m 644 ${S}/$f ${DEPLOYDIR}/$full_name
+        (cd ${DEPLOYDIR} ; rm -f $symlink_nake ; ln -sf $full_name $symlink_name)
     done
 }
 
-- 
1.8.4.rc3




More information about the meta-freescale mailing list