diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/grub-efi.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/syslinux.bbclass | 4 |
2 files changed, 5 insertions, 7 deletions
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass index 333e6c53c7..36b583111a 100644 --- a/meta/classes/grub-efi.bbclass +++ b/meta/classes/grub-efi.bbclass | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | do_bootimg[depends] += "grub-efi-${TARGET_ARCH}-native:do_deploy" | 17 | do_bootimg[depends] += "grub-efi-${TARGET_ARCH}-native:do_deploy" |
18 | 18 | ||
19 | GRUBCFG = "grub.cfg" | 19 | GRUBCFG = "${S}/grub.cfg" |
20 | GRUB_TIMEOUT ?= "10" | 20 | GRUB_TIMEOUT ?= "10" |
21 | #FIXME: build this from the machine config | 21 | #FIXME: build this from the machine config |
22 | GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" | 22 | GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" |
@@ -56,7 +56,7 @@ grubefi_iso_populate() { | |||
56 | 56 | ||
57 | # FIXUP the <EFIDIR> token in the config | 57 | # FIXUP the <EFIDIR> token in the config |
58 | # FIXME: This can be dropped once mkdosfs is fixed | 58 | # FIXME: This can be dropped once mkdosfs is fixed |
59 | sed -i "s@<EFIDIR>@${EFIDIR}@g" ${GRUB_ISODIR}/${GRUBCFG} | 59 | sed -i "s@<EFIDIR>@${EFIDIR}@g" ${GRUB_ISODIR}/$(basename "${GRUBCFG}") |
60 | } | 60 | } |
61 | 61 | ||
62 | grubefi_hddimg_populate() { | 62 | grubefi_hddimg_populate() { |
@@ -64,7 +64,7 @@ grubefi_hddimg_populate() { | |||
64 | 64 | ||
65 | # FIXUP the <EFIDIR> token in the config | 65 | # FIXUP the <EFIDIR> token in the config |
66 | # FIXME: This can be dropped once mkdosfs is fixed | 66 | # FIXME: This can be dropped once mkdosfs is fixed |
67 | sed -i "s@<EFIDIR>@@g" ${GRUB_HDDDIR}/${GRUBCFG} | 67 | sed -i "s@<EFIDIR>@@g" ${GRUB_HDDDIR}/$(basename "${GRUBCFG}") |
68 | } | 68 | } |
69 | 69 | ||
70 | # FIXME: The <EFIDIR> token can be replaced with ${EFIDIR} once the | 70 | # FIXME: The <EFIDIR> token can be replaced with ${EFIDIR} once the |
@@ -90,8 +90,6 @@ python build_grub_cfg() { | |||
90 | if not cfile: | 90 | if not cfile: |
91 | raise bb.build.FuncFailed('Unable to read GRUBCFG') | 91 | raise bb.build.FuncFailed('Unable to read GRUBCFG') |
92 | 92 | ||
93 | #bb.mkdirhier(os.path.dirname(cfile)) | ||
94 | |||
95 | try: | 93 | try: |
96 | cfgfile = file(cfile, 'w') | 94 | cfgfile = file(cfile, 'w') |
97 | except OSError: | 95 | except OSError: |
diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass index 6eb804b75c..91c4275747 100644 --- a/meta/classes/syslinux.bbclass +++ b/meta/classes/syslinux.bbclass | |||
@@ -15,8 +15,8 @@ | |||
15 | do_bootimg[depends] += "syslinux:do_populate_sysroot \ | 15 | do_bootimg[depends] += "syslinux:do_populate_sysroot \ |
16 | syslinux-native:do_populate_sysroot" | 16 | syslinux-native:do_populate_sysroot" |
17 | 17 | ||
18 | SYSLINUXCFG = "syslinux.cfg" | 18 | SYSLINUXCFG = "${S}/syslinux.cfg" |
19 | SYSLINUXMENU = "menu" | 19 | SYSLINUXMENU = "${S}/menu" |
20 | 20 | ||
21 | SYSLINUX_ISODIR = "${ISODIR}/isolinux" | 21 | SYSLINUX_ISODIR = "${ISODIR}/isolinux" |
22 | SYSLINUX_HDDDIR = "${HDDDIR}" | 22 | SYSLINUX_HDDDIR = "${HDDDIR}" |