diff options
Diffstat (limited to 'meta/classes/boot-directdisk.bbclass')
| -rw-r--r-- | meta/classes/boot-directdisk.bbclass | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass index f4abae991b..d87dc2258a 100644 --- a/meta/classes/boot-directdisk.bbclass +++ b/meta/classes/boot-directdisk.bbclass | |||
| @@ -20,8 +20,10 @@ | |||
| 20 | # ${ROOTFS} - the rootfs image to incorporate | 20 | # ${ROOTFS} - the rootfs image to incorporate |
| 21 | 21 | ||
| 22 | do_bootdirectdisk[depends] += "dosfstools-native:do_populate_sysroot \ | 22 | do_bootdirectdisk[depends] += "dosfstools-native:do_populate_sysroot \ |
| 23 | syslinux:do_populate_sysroot \ | 23 | syslinux:do_populate_sysroot \ |
| 24 | syslinux-installer-native:do_populate_sysroot" | 24 | syslinux-native:do_populate_sysroot \ |
| 25 | parted-native:do_populate_sysroot \ | ||
| 26 | mtools-native:do_populate_sysroot " | ||
| 25 | 27 | ||
| 26 | PACKAGES = " " | 28 | PACKAGES = " " |
| 27 | EXCLUDE_FROM_WORLD = "1" | 29 | EXCLUDE_FROM_WORLD = "1" |
| @@ -48,7 +50,7 @@ build_boot_dd() { | |||
| 48 | 50 | ||
| 49 | install -d ${HDDDIR} | 51 | install -d ${HDDDIR} |
| 50 | install -m 0644 ${STAGING_DIR}/${MACHINE}${HOST_VENDOR}-${HOST_OS}/kernel/bzImage ${HDDDIR}/vmlinuz | 52 | install -m 0644 ${STAGING_DIR}/${MACHINE}${HOST_VENDOR}-${HOST_OS}/kernel/bzImage ${HDDDIR}/vmlinuz |
| 51 | install -m 444 ${STAGING_DATADIR}/syslinux/ldlinux.sys ${HDDDIR}/ldlinux.sys | 53 | install -m 444 ${STAGING_LIBDIR}/syslinux/ldlinux.sys ${HDDDIR}/ldlinux.sys |
| 52 | 54 | ||
| 53 | BLOCKS=`du -bks ${HDDDIR} | cut -f 1` | 55 | BLOCKS=`du -bks ${HDDDIR} | cut -f 1` |
| 54 | SIZE=`expr $BLOCKS + ${BOOTDD_EXTRA_SPACE}` | 56 | SIZE=`expr $BLOCKS + ${BOOTDD_EXTRA_SPACE}` |
| @@ -74,7 +76,7 @@ build_boot_dd() { | |||
| 74 | parted $IMAGE print | 76 | parted $IMAGE print |
| 75 | 77 | ||
| 76 | OFFSET=`expr $END2 / 512` | 78 | OFFSET=`expr $END2 / 512` |
| 77 | dd if=/tmp/mbr.bin of=$IMAGE conv=notrunc | 79 | dd if=${STAGING_LIBDIR}/syslinux/mbr.bin of=$IMAGE conv=notrunc |
| 78 | dd if=${HDDIMG} of=$IMAGE conv=notrunc seek=1 bs=512 | 80 | dd if=${HDDIMG} of=$IMAGE conv=notrunc seek=1 bs=512 |
| 79 | dd if=${ROOTFS} of=$IMAGE conv=notrunc seek=$OFFSET bs=512 | 81 | dd if=${ROOTFS} of=$IMAGE conv=notrunc seek=$OFFSET bs=512 |
| 80 | 82 | ||
