]> code.ossystems Code Review - meta-freescale.git/commitdiff
rcw: package images to rcw-image
authorTing Liu <b28495@freescale.com>
Wed, 6 Jun 2012 09:45:21 +0000 (09:45 +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/rcw/rcw_git.bb

index af8db7d2082830b51fd20039f56d41cb281dac39..ff1b99f480524f9ba36228d54c1533eec90df272 100644 (file)
@@ -1,7 +1,7 @@
 DESCRIPTION = "Reset Control Words (RCW)"
 SECTION = "rcw"
 LICENSE = "BSD"
-PR = "r3"
+PR = "r4"
 
 LIC_FILES_CHKSUM = " \
        file://p2041rdb/LICENSE;md5=96dd72f26e9bb861de5c76c60e35e1bc \
@@ -21,13 +21,22 @@ SRC_URI = "git://git.freescale.com/ppc/sdk/rcw.git"
 
 S = "${WORKDIR}/git"
 
-do_deploy () {
+do_install () {
        make install
 
+       M=`echo ${MACHINE} | sed s/-64b//g`
+       install -d ${D}/boot/rcw
+       cp -r ${S}/${M}/${M}/* ${D}/boot/rcw
+}
+
+do_deploy () {
        M=`echo ${MACHINE} | sed s/-64b//g`
        install -d ${DEPLOYDIR}/rcw
        cp -r ${S}/${M}/${M}/* ${DEPLOYDIR}/rcw
 }
 addtask deploy after do_install
 
+PACKAGES += "${PN}-image"
+FILES_${PN}-image += "/boot"
+
 ALLOW_EMPTY_${PN} = "1"