diff options
| author | Samuel Ortiz <sameo@openedhand.com> | 2008-09-10 21:19:19 +0000 |
|---|---|---|
| committer | Samuel Ortiz <sameo@openedhand.com> | 2008-09-10 21:19:19 +0000 |
| commit | 71a2e0d41d783d79873052f7999a7b6f7b039d2d (patch) | |
| tree | 5fca371babe86021a5bc21dd4a26e0374b6d5f65 | |
| parent | 8615c214c2687a5c7dfb31c617ee432a95233fff (diff) | |
| download | poky-71a2e0d41d783d79873052f7999a7b6f7b039d2d.tar.gz | |
bootimg: Adding a rootfs to the disk image
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5172 311d38ba-8fff-0310-9ca6-ca027cbcb966
| -rw-r--r-- | meta/classes/bootimg.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index ca61cd6b7a..9b0722ef1e 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass | |||
| @@ -23,7 +23,7 @@ HDDDIR = "${S}/hdd/boot" | |||
| 23 | ISODIR = "${S}/cd/isolinux" | 23 | ISODIR = "${S}/cd/isolinux" |
| 24 | 24 | ||
| 25 | BOOTIMG_VOLUME_ID ?= "oe" | 25 | BOOTIMG_VOLUME_ID ?= "oe" |
| 26 | BOOTIMG_EXTRA_SPACE ?= "64" | 26 | BOOTIMG_EXTRA_SPACE ?= "512" |
| 27 | 27 | ||
| 28 | # Get the build_syslinux_cfg() function from the syslinux class | 28 | # Get the build_syslinux_cfg() function from the syslinux class |
| 29 | 29 | ||
| @@ -41,6 +41,10 @@ build_boot_bin() { | |||
| 41 | install -m 0644 ${INITRD} ${HDDDIR}/initrd | 41 | install -m 0644 ${INITRD} ${HDDDIR}/initrd |
| 42 | fi | 42 | fi |
| 43 | 43 | ||
| 44 | if [ -n "${ROOTFS}" ] && [ -s "${ROOTFS}" ]; then | ||
| 45 | install -m 0644 ${ROOTFS} ${HDDDIR}/rootfs.img | ||
| 46 | fi | ||
| 47 | |||
| 44 | install -m 444 ${STAGING_DATADIR_NATIVE}/syslinux/ldlinux.sys \ | 48 | install -m 444 ${STAGING_DATADIR_NATIVE}/syslinux/ldlinux.sys \ |
| 45 | ${HDDDIR}/ldlinux.sys | 49 | ${HDDDIR}/ldlinux.sys |
| 46 | 50 | ||
