3efb5e31fc
The startup.nsh file is useless to boot EFI payloads. We just need to follow the naming detection specified in the UEFI spec. The EFI payload need to be placed in the boot/efi folder in the EFI partition and follow the architecture naming as described below: 32bit : bootia32.efi x64 : bootx64.efi aarch32 : bootarm.efi aarch64 : bootaa64.efi This naming is already right in the packages involved (systemd, grub2, gummiboot), therefore we just need to drop the generation of the startup.nsh file. The usage of the startup.nsh in genimage is also dropped to avoid errors in the image generation. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Tested-by: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# gummiboot
|
|
#
|
|
################################################################################
|
|
|
|
GUMMIBOOT_SITE = https://gitlab.freedesktop.org/archived-projects/gummiboot.git
|
|
GUMMIBOOT_SITE_METHOD = git
|
|
GUMMIBOOT_VERSION = 2bcd919c681c952eb867ef1bdb458f1bc49c2d55
|
|
GUMMIBOOT_LICENSE = LGPL-2.1+
|
|
GUMMIBOOT_LICENSE_FILES = LICENSE
|
|
|
|
# The git archive does not have the autoconf/automake stuff generated.
|
|
GUMMIBOOT_AUTORECONF = YES
|
|
GUMMIBOOT_DEPENDENCIES = gnu-efi host-pkgconf util-linux
|
|
GUMMIBOOT_INSTALL_TARGET = NO
|
|
GUMMIBOOT_INSTALL_IMAGES = YES
|
|
|
|
ifeq ($(BR2_i386),y)
|
|
GUMMIBOOT_IMGARCH = ia32
|
|
else ifeq ($(BR2_x86_64),y)
|
|
GUMMIBOOT_IMGARCH = x64
|
|
endif
|
|
|
|
GUMMIBOOT_CONF_OPTS = \
|
|
--host=$(BR2_ARCH) \
|
|
--with-efi-libdir=$(STAGING_DIR)/usr/lib \
|
|
--with-efi-ldsdir=$(STAGING_DIR)/usr/lib \
|
|
--with-efi-includedir=$(STAGING_DIR)/usr/include \
|
|
--disable-manpages
|
|
|
|
define GUMMIBOOT_INSTALL_IMAGES_CMDS
|
|
$(INSTALL) -D -m 0644 $(@D)/gummiboot$(GUMMIBOOT_IMGARCH).efi \
|
|
$(BINARIES_DIR)/efi-part/EFI/BOOT/boot$(GUMMIBOOT_IMGARCH).efi
|
|
$(INSTALL) -D -m 0644 boot/gummiboot/loader.conf \
|
|
$(BINARIES_DIR)/efi-part/loader/loader.conf
|
|
$(INSTALL) -D -m 0644 boot/gummiboot/buildroot.conf \
|
|
$(BINARIES_DIR)/efi-part/loader/entries/buildroot.conf
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|