]> code.ossystems Code Review - openembedded-core.git/commitdiff
bootimg: Adding a rootfs to the disk image
authorSamuel Ortiz <sameo@openedhand.com>
Wed, 10 Sep 2008 21:19:19 +0000 (21:19 +0000)
committerSamuel Ortiz <sameo@openedhand.com>
Wed, 10 Sep 2008 21:19:19 +0000 (21:19 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5172 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/bootimg.bbclass

index ca61cd6b7a71be9bca7bb7e9942667c6462023c6..9b0722ef1e5661bab40737cedd9a79d72cbd6c4d 100644 (file)
@@ -23,7 +23,7 @@ HDDDIR = "${S}/hdd/boot"
 ISODIR = "${S}/cd/isolinux"
 
 BOOTIMG_VOLUME_ID   ?= "oe"
-BOOTIMG_EXTRA_SPACE ?= "64"
+BOOTIMG_EXTRA_SPACE ?= "512"
 
 # Get the build_syslinux_cfg() function from the syslinux class
 
@@ -41,6 +41,10 @@ build_boot_bin() {
                install -m 0644 ${INITRD} ${HDDDIR}/initrd
        fi
 
+       if [ -n "${ROOTFS}" ] && [ -s "${ROOTFS}" ]; then 
+               install -m 0644 ${ROOTFS} ${HDDDIR}/rootfs.img
+       fi
+
        install -m 444 ${STAGING_DATADIR_NATIVE}/syslinux/ldlinux.sys \
        ${HDDDIR}/ldlinux.sys