-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from rsalveti/grub
grub: drop custom recipe and migrate to the upstream grub-efi version
- Loading branch information
Showing
17 changed files
with
52 additions
and
730 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
|
||
SRC_URI += "file://cfg.emmc \ | ||
file://cfg.sdcard \ | ||
" | ||
|
||
GRUB_BUILDIN_append = " chain echo efinet eval font gettext gfxterm gzio help lsefi read regexp search_fs_file search_fs_uuid search_label terminal terminfo tftp time" | ||
|
||
python () { | ||
# Standard config provided by OE-Core | ||
grub_cfg = 'cfg' | ||
|
||
emmc = d.getVar('CMDLINE_ROOT_EMMC', True) | ||
sdcard = d.getVar('CMDLINE_ROOT_SDCARD', True) | ||
cmdline = d.getVar('CMDLINE', True) | ||
if emmc is not None and emmc in cmdline: | ||
grub_cfg = 'cfg.emmc' | ||
elif sdcard is not None and sdcard in cmdline: | ||
grub_cfg = 'cfg.sdcard' | ||
|
||
d.setVar('GRUB_CFG', grub_cfg) | ||
} | ||
|
||
do_mkimage_append_class-target() { | ||
# Search for the grub.cfg on the local boot media by using the | ||
# built in cfg file provided via this recipe | ||
grub-mkimage -c ../${GRUB_CFG} -p /EFI/BOOT -d ./grub-core/ \ | ||
-O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} \ | ||
${GRUB_BUILDIN} | ||
} |
46 changes: 0 additions & 46 deletions
46
recipes-bsp/grub/grub-git/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
recipes-bsp/grub/grub-git/0001-Enforce-no-pie-if-the-compiler-supports-it.patch
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
recipes-bsp/grub/grub-git/0001-btrfs-avoid-used-uninitialized-error-with-GCC7.patch
This file was deleted.
Oops, something went wrong.
79 changes: 0 additions & 79 deletions
79
recipes-bsp/grub/grub-git/0001-configure-add-check-for-no-pie-if-the-compiler-defau.patch
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
recipes-bsp/grub/grub-git/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.