[meta-freescale] [PATCH 20/20] hv-cfg: move MACHINE specific variable out of task

Zhenhua Luo zhenhua.luo at freescale.com
Fri Aug 28 03:36:59 PDT 2015


Move M definition out of task.

Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
 recipes-virtualization/hv-cfg/hv-cfg_git.bb | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/recipes-virtualization/hv-cfg/hv-cfg_git.bb b/recipes-virtualization/hv-cfg/hv-cfg_git.bb
index e4f18e0..eea7734 100644
--- a/recipes-virtualization/hv-cfg/hv-cfg_git.bb
+++ b/recipes-virtualization/hv-cfg/hv-cfg_git.bb
@@ -23,22 +23,19 @@ SRCREV = "b9287b07390d17bfba936a806a72b91b89507c22"
 
 S = "${WORKDIR}/git"
 
+M_t1042d4rdb = "t1040rdb"
+M_t1040d4rdb = "t1040rdb"
+
 do_install () {
 	make install
 
 	M=`echo ${MACHINE} | sed s/-64b//g`
-	if [ "t1042d4rdb" = "${M}" ] || [ "t1040d4rdb" = "${M}" ];then
-		M=t1040rdb
-	fi
 	install -d ${D}/boot/hv-cfg
 	cp -r ${S}/${M}/${M}/* ${D}/boot/hv-cfg
 }
 
 do_deploy () {
 	M=`echo ${MACHINE} | sed s/-64b//g`
-	if [ "t1042d4rdb" = "${M}" ] || [ "t1040d4rdb" = "${M}" ];then
-		M=t1040rdb
-	fi
 	install -d ${DEPLOYDIR}/hv-cfg
 	cp -r ${S}/${M}/${M}/* ${DEPLOYDIR}/hv-cfg
 }
-- 
2.4.3



More information about the meta-freescale mailing list