diff options
| author | California Sullivan <california.l.sullivan@intel.com> | 2018-02-28 18:15:00 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-06 06:35:42 -0800 |
| commit | 531f7b444530bf3fa0a10b29d3f8c5ea5d427f14 (patch) | |
| tree | 8d85fb59239716adad758bd1c1f74c87b7167433 /meta/recipes-bsp | |
| parent | 067ef24d2e074a9030b963f42fdb86d4a844ec7a (diff) | |
| download | poky-531f7b444530bf3fa0a10b29d3f8c5ea5d427f14.tar.gz | |
grub-efi: install to /boot/
Since /boot/ will be recipe/package controlled now we can't just deploy.
(From OE-Core rev: f9c3405a99f3c0fd922d21bea7bb0bd0dd3a2ab2)
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
| -rw-r--r-- | meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 2 | ||||
| -rw-r--r-- | meta/recipes-bsp/grub/grub-efi_2.02.bb | 34 |
2 files changed, 28 insertions, 8 deletions
diff --git a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb index d376fde68b..750f8c808a 100644 --- a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb +++ b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb | |||
| @@ -23,7 +23,7 @@ do_install() { | |||
| 23 | install -d ${D}/boot | 23 | install -d ${D}/boot |
| 24 | install -d ${D}/boot/EFI | 24 | install -d ${D}/boot/EFI |
| 25 | install -d ${D}/boot/EFI/BOOT | 25 | install -d ${D}/boot/EFI/BOOT |
| 26 | install -m 0744 grub-bootconf ${D}/boot/EFI/BOOT/grub.cfg | 26 | install grub-bootconf ${D}/boot/EFI/BOOT/grub.cfg |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | FILES_${PN} = "/boot/EFI/BOOT/grub.cfg" | 29 | FILES_${PN} = "/boot/EFI/BOOT/grub.cfg" |
diff --git a/meta/recipes-bsp/grub/grub-efi_2.02.bb b/meta/recipes-bsp/grub/grub-efi_2.02.bb index d5aa64c75f..c5a68f01ce 100644 --- a/meta/recipes-bsp/grub/grub-efi_2.02.bb +++ b/meta/recipes-bsp/grub/grub-efi_2.02.bb | |||
| @@ -3,7 +3,7 @@ require grub2.inc | |||
| 3 | GRUBPLATFORM = "efi" | 3 | GRUBPLATFORM = "efi" |
| 4 | 4 | ||
| 5 | DEPENDS_append_class-target = " grub-efi-native" | 5 | DEPENDS_append_class-target = " grub-efi-native" |
| 6 | RDEPENDS_${PN}_class-target = "diffutils freetype grub-common" | 6 | RDEPENDS_${PN}_class-target = "diffutils freetype grub-common virtual/grub-bootconf" |
| 7 | 7 | ||
| 8 | SRC_URI += " \ | 8 | SRC_URI += " \ |
| 9 | file://cfg \ | 9 | file://cfg \ |
| @@ -36,6 +36,28 @@ EXTRA_OECONF += "--enable-efiemu=no" | |||
| 36 | # and many other places in the grub code when compiled with some native gcc compilers (specifically, gentoo) | 36 | # and many other places in the grub code when compiled with some native gcc compilers (specifically, gentoo) |
| 37 | CFLAGS_append_class-native = " -Wno-error=trampolines" | 37 | CFLAGS_append_class-native = " -Wno-error=trampolines" |
| 38 | 38 | ||
| 39 | do_mkimage() { | ||
| 40 | cd ${B} | ||
| 41 | # Search for the grub.cfg on the local boot media by using the | ||
| 42 | # built in cfg file provided via this recipe | ||
| 43 | grub-mkimage -c ../cfg -p /EFI/BOOT -d ./grub-core/ \ | ||
| 44 | -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \ | ||
| 45 | ${GRUB_BUILDIN} | ||
| 46 | } | ||
| 47 | |||
| 48 | addtask mkimage before do_install after do_compile | ||
| 49 | |||
| 50 | do_mkimage_class-native() { | ||
| 51 | : | ||
| 52 | } | ||
| 53 | |||
| 54 | do_install_append_class-target() { | ||
| 55 | install -d ${D}/boot | ||
| 56 | install -d ${D}/boot/EFI | ||
| 57 | install -d ${D}/boot/EFI/BOOT | ||
| 58 | install -m 644 ${B}/${GRUB_IMAGE} ${D}/boot/EFI/BOOT/ | ||
| 59 | } | ||
| 60 | |||
| 39 | do_install_class-native() { | 61 | do_install_class-native() { |
| 40 | install -d ${D}${bindir} | 62 | install -d ${D}${bindir} |
| 41 | install -m 755 grub-mkimage ${D}${bindir} | 63 | install -m 755 grub-mkimage ${D}${bindir} |
| @@ -57,11 +79,6 @@ GRUB_BUILDIN ?= "boot linux ext2 fat serial part_msdos part_gpt normal \ | |||
| 57 | efi_gop iso9660 configfile search loadenv test" | 79 | efi_gop iso9660 configfile search loadenv test" |
| 58 | 80 | ||
| 59 | do_deploy() { | 81 | do_deploy() { |
| 60 | # Search for the grub.cfg on the local boot media by using the | ||
| 61 | # built in cfg file provided via this recipe | ||
| 62 | grub-mkimage -c ../cfg -p /EFI/BOOT -d ./grub-core/ \ | ||
| 63 | -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \ | ||
| 64 | ${GRUB_BUILDIN} | ||
| 65 | install -m 644 ${B}/${GRUB_IMAGE} ${DEPLOYDIR} | 82 | install -m 644 ${B}/${GRUB_IMAGE} ${DEPLOYDIR} |
| 66 | } | 83 | } |
| 67 | 84 | ||
| @@ -72,7 +89,10 @@ do_deploy_class-native() { | |||
| 72 | addtask deploy after do_install before do_build | 89 | addtask deploy after do_install before do_build |
| 73 | 90 | ||
| 74 | FILES_${PN} = "${libdir}/grub/${GRUB_TARGET}-efi \ | 91 | FILES_${PN} = "${libdir}/grub/${GRUB_TARGET}-efi \ |
| 75 | " | 92 | ${datadir}/grub \ |
| 93 | /boot/EFI/BOOT/${GRUB_IMAGE} \ | ||
| 94 | " | ||
| 95 | |||
| 76 | 96 | ||
| 77 | # 64-bit binaries are expected for the bootloader with an x32 userland | 97 | # 64-bit binaries are expected for the bootloader with an x32 userland |
| 78 | INSANE_SKIP_${PN}_append_linux-gnux32 = " arch" | 98 | INSANE_SKIP_${PN}_append_linux-gnux32 = " arch" |
