]> code.ossystems Code Review - meta-freescale.git/commitdiff
hv-cfg: package images to hv-cfg-image
authorTing Liu <b28495@freescale.com>
Wed, 6 Jun 2012 09:47:50 +0000 (09:47 +0000)
committerKhem Raj <raj.khem@gmail.com>
Wed, 11 Jul 2012 03:10:43 +0000 (20:10 -0700)
images are required to be included in full rootfs.

Signed-off-by: Ting Liu <b28495@freescale.com>
meta-fsl-ppc/recipes-tools/hv-cfg/hv-cfg_git.bb

index 22c08a2fb38f0bfe87d9fcc6ee077ca95354485a..60847f51d09483048e2b1c65388ec35d4b4ef5f5 100644 (file)
@@ -1,7 +1,7 @@
 DESCRIPTION = "Hypervisor Config"
 SECTION = "hv-cfg"
 LICENSE = "BSD"
-PR = "r4"
+PR = "r5"
 
 LIC_FILES_CHKSUM = " \
        file://p2041rdb/LICENSE;md5=96dd72f26e9bb861de5c76c60e35e1bc \
@@ -23,13 +23,22 @@ SRC_URI = "git://git.freescale.com/ppc/sdk/hv-cfg.git"
 
 S = "${WORKDIR}/git"
 
-do_deploy () {
+do_install () {
        make install
 
+       M=`echo ${MACHINE} | sed s/-64b//g`
+       install -d ${D}/boot/hv-cfg
+       cp -r ${S}/${M}/${M}/* ${D}/boot/hv-cfg
+}
+
+do_deploy () {
        M=`echo ${MACHINE} | sed s/-64b//g`
        install -d ${DEPLOYDIR}/hv-cfg
        cp -r ${S}/${M}/${M}/* ${DEPLOYDIR}/hv-cfg
 }
 addtask deploy after do_install
 
+PACKAGES += "${PN}-image"
+FILES_${PN}-image += "/boot"
+
 ALLOW_EMPTY_${PN} = "1"