]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-bootlets: Add deploy in sstate-cache
authorOtavio Salvador <otavio@ossystems.com.br>
Sun, 22 Sep 2013 21:04:41 +0000 (18:04 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 23 Sep 2013 19:47:57 +0000 (16:47 -0300)
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@ossystems.com.br>
meta-fsl-arm/recipes-bsp/imx-bootlets/imx-bootlets_10.12.01.bb

index dd34ba84e5f750fe6bd128a0611d89e728d81cb6..b96c1e95b2fec375960575d86a47a1dd4a230828 100644 (file)
@@ -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
 }