cdrom: Move list of EFI modules to lfs/cdrom
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jul 2018 09:54:35 +0000 (10:54 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jul 2018 09:54:35 +0000 (10:54 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/Config
lfs/cdrom

index 63ca295..516fb1c 100644 (file)
@@ -92,63 +92,6 @@ ifeq "$(BUILD_ARCH)" "aarch64"
        GRUB_ARCH = arm64
 endif
 
-# Basic modules
-GRUB_EFI_MODULES = \
-       configfile \
-       gzio \
-       linux \
-       loadenv \
-       normal \
-       regexp
-
-# Stuff for accessing file systems
-GRUB_EFI_MODULES += \
-       ext2 \
-       fat \
-       iso9660 \
-       part_gpt \
-       part_msdos \
-       udf
-
-# Graphics & IO
-GRUB_EFI_MODULES += \
-       all_video \
-       bitmap_scale \
-       font \
-       gfxmenu \
-       gfxterm \
-       jpeg \
-       png \
-       tga
-
-# Commands
-GRUB_EFI_MODULES += \
-       boot \
-       cat \
-       chain \
-       echo \
-       halt \
-       help \
-       ls \
-       minicmd \
-       probe \
-       reboot \
-       search \
-       search_fs_file \
-       search_fs_uuid \
-       search_label \
-       test \
-       true
-
-# Platform dependent modules
-ifeq "$(BUILD_ARCH)" "x86_64"
-       GRUB_EFI_MODULES += \
-               loadbios \
-               ahci \
-               at_keyboard \
-               usb_keyboard
-endif
-
 ###############################################################################
 # Common Macro Definitions
 ###############################################################################
index 37fb332..5faaa17 100644 (file)
--- a/lfs/cdrom
+++ b/lfs/cdrom
@@ -74,6 +74,58 @@ ifeq "$(EFI)" "1"
        ISOHYBRID_ARGS += --uefi
 endif
 
+GRUB_EFI_MODULES = \
+       all_video \
+       at_keyboard \
+       boot \
+       bitmap_scale \
+       cat \
+       chain \
+       configfile \
+       disk \
+       echo \
+       efi_gop \
+       efi_uga \
+       ext2 \
+       extcmd \
+       fat \
+       file \
+       font \
+       fxterm_menu \
+       gfxterm \
+       gfxmenu \
+       gfxterm_background \
+       gzio \
+       halt \
+       help \
+       iso9660 \
+       jpeg \
+       loadbios \
+       loadenv \
+       loopback \
+       linux \
+       ls \
+       memdisk \
+       minicmd \
+       nativedisk \
+       normal \
+       ntfs \
+       part_gpt \
+       part_msdos \
+       png \
+       probe \
+       reboot \
+       regexp \
+       search \
+       search_fs_file \
+       search_fs_uuid \
+       search_label \
+       tar \
+       test \
+       tga \
+       true \
+       usb_keyboard
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -164,7 +216,7 @@ ifeq "$(EFI)" "1"
                --config=/tmp/grub-efi.cfg \
                --compression=xz \
                --prefix=/EFI/BOOT \
-               $(GRUB_EFI_MODULES)
+               $$(for mod in $(GRUB_EFI_MODULES); do [ -f "/usr/lib/grub/$(GRUB_ARCH)-efi/$${mod}.mod" ] && echo "$${mod}"; done)
 
        # Install GRUB configuration
        mkdir -pv /install/cdrom/EFI/BOOT