[PATCH openbmc] Create tarball of update files with correct names

OpenBMC Patches openbmc-patches at stwcx.xyz
Mon Feb 1 15:40:19 AEDT 2016


From: Norman James <njames at us.ibm.com>

Signed-off-by: Norman James <nkskjames at gmail.com>
---
 meta-phosphor/classes/obmc-phosphor-image_types_uboot.bbclass | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta-phosphor/classes/obmc-phosphor-image_types_uboot.bbclass b/meta-phosphor/classes/obmc-phosphor-image_types_uboot.bbclass
index 14e9289..29dbb87 100644
--- a/meta-phosphor/classes/obmc-phosphor-image_types_uboot.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-image_types_uboot.bbclass
@@ -65,4 +65,13 @@ do_generate_flash() {
        dstlink="${ddir}/${FLASH_IMAGE_LINK}"
        rm -rf $dstlink
        ln -sf ${FLASH_IMAGE_NAME} $dstlink
+
+       ln -sf ${FLASH_IMAGE_NAME} ${ddir}/image-bmc
+       ln -sf ${uboot} ${ddir}/image-u-boot
+       ln -sf ${kernel} ${ddir}/image-kernel
+       ln -sf ${uinitrd} ${ddir}/image-initramfs
+       ln -sf ${rootfs} ${ddir}/image-rofs
+
+       tar -h -cvf ${ddir}/${MACHINE}-${DATETIME}.all.tar -C ${ddir} image-bmc
+       tar -h -cvf ${ddir}/${MACHINE}-${DATETIME}.tar -C ${ddir} image-u-boot image-kernel image-initramfs image-rofs
 }
-- 
2.6.4




More information about the openbmc mailing list