diff options
-rw-r--r-- | recipes-virtualization/hv-cfg/hv-cfg_git.bb | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/recipes-virtualization/hv-cfg/hv-cfg_git.bb b/recipes-virtualization/hv-cfg/hv-cfg_git.bb index e4f18e07..0da5a40e 100644 --- a/recipes-virtualization/hv-cfg/hv-cfg_git.bb +++ b/recipes-virtualization/hv-cfg/hv-cfg_git.bb | |||
@@ -23,24 +23,22 @@ SRCREV = "b9287b07390d17bfba936a806a72b91b89507c22" | |||
23 | 23 | ||
24 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
25 | 25 | ||
26 | python () { | ||
27 | if not d.getVar("HV_CFG_M", True): | ||
28 | raise bb.parse.SkipPackage("HV_CFG_M is not defined, please \ | ||
29 | check ${MACHINE}.conf file.") | ||
30 | } | ||
31 | |||
26 | do_install () { | 32 | do_install () { |
27 | make install | 33 | make install |
28 | 34 | ||
29 | M=`echo ${MACHINE} | sed s/-64b//g` | ||
30 | if [ "t1042d4rdb" = "${M}" ] || [ "t1040d4rdb" = "${M}" ];then | ||
31 | M=t1040rdb | ||
32 | fi | ||
33 | install -d ${D}/boot/hv-cfg | 35 | install -d ${D}/boot/hv-cfg |
34 | cp -r ${S}/${M}/${M}/* ${D}/boot/hv-cfg | 36 | cp -r ${S}/${HV_CFG_M}/${HV_CFG_M}/* ${D}/boot/hv-cfg |
35 | } | 37 | } |
36 | 38 | ||
37 | do_deploy () { | 39 | do_deploy () { |
38 | M=`echo ${MACHINE} | sed s/-64b//g` | ||
39 | if [ "t1042d4rdb" = "${M}" ] || [ "t1040d4rdb" = "${M}" ];then | ||
40 | M=t1040rdb | ||
41 | fi | ||
42 | install -d ${DEPLOYDIR}/hv-cfg | 40 | install -d ${DEPLOYDIR}/hv-cfg |
43 | cp -r ${S}/${M}/${M}/* ${DEPLOYDIR}/hv-cfg | 41 | cp -r ${S}/${HV_CFG_M}/${HV_CFG_M}/* ${DEPLOYDIR}/hv-cfg |
44 | } | 42 | } |
45 | addtask deploy after do_install | 43 | addtask deploy after do_install |
46 | 44 | ||