67a1e8a552
Patch 0001-Make.defaults-don-t-override-ARCH-when-cross-compili.patch is refreshed to accommodate with conflicting upstream changes. Patch 0002-Revert-efilink-fix-build-with-gcc-4.8.patch is dropped as it is upstream as of commit 8b2da2c2247af28bd681a9c8e3231559964c80a6 ("Revert "efilink: fix build with gcc 4.8""). A new patch is needed to fix the build on mips64. While at it, fix the hash file to use the new spacing convention. Fixes: http://autobuild.buildroot.net/results/a9a7372615e3fbe4b8abda946706d1ccadf28931/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# gnu-efi
|
|
#
|
|
################################################################################
|
|
|
|
GNU_EFI_VERSION = 3.0.14
|
|
GNU_EFI_SOURCE = gnu-efi-$(GNU_EFI_VERSION).tar.bz2
|
|
GNU_EFI_SITE = http://downloads.sourceforge.net/project/gnu-efi
|
|
GNU_EFI_INSTALL_STAGING = YES
|
|
GNU_EFI_LICENSE = BSD-3-Clause and/or GPL-2.0+ (gnuefi), BSD-3-Clause (efilib)
|
|
GNU_EFI_LICENSE_FILES = README.efilib
|
|
|
|
# gnu-efi is a set of library and header files used to build
|
|
# standalone EFI applications such as bootloaders. There is no point
|
|
# in installing these libraries to the target.
|
|
GNU_EFI_INSTALL_TARGET = NO
|
|
|
|
ifeq ($(BR2_i386),y)
|
|
GNU_EFI_PLATFORM = ia32
|
|
else ifeq ($(BR2_x86_64),y)
|
|
GNU_EFI_PLATFORM = x86_64
|
|
else ifeq ($(BR2_arm)$(BR2_armeb),y)
|
|
GNU_EFI_PLATFORM = arm
|
|
else ifeq ($(BR2_aarch64)$(BR2_aarch64_be),y)
|
|
GNU_EFI_PLATFORM = aarch64
|
|
else ifeq ($(BR2_mips64el),y)
|
|
GNU_EFI_PLATFORM = mips64el
|
|
endif
|
|
|
|
GNU_EFI_MAKE_OPTS = \
|
|
ARCH=$(GNU_EFI_PLATFORM) \
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
PREFIX=/usr
|
|
|
|
define GNU_EFI_BUILD_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(GNU_EFI_MAKE_OPTS)
|
|
endef
|
|
|
|
define GNU_EFI_INSTALL_STAGING_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(GNU_EFI_MAKE_OPTS) \
|
|
INSTALLROOT=$(STAGING_DIR) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|