2016-04-21 03:23:56 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# efibootmgr
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-09-30 16:46:44 +02:00
|
|
|
EFIBOOTMGR_VERSION = 14
|
2016-04-21 03:23:56 +02:00
|
|
|
EFIBOOTMGR_SITE = $(call github,rhinstaller,efibootmgr,$(EFIBOOTMGR_VERSION))
|
2017-05-11 09:46:40 +02:00
|
|
|
# Patch fixes the build with gcc 6.x.
|
|
|
|
EFIBOOTMGR_PATCH = \
|
|
|
|
https://github.com/rhinstaller/efibootmgr/commit/3466fd05c8c6f1052e0426d64eed40f8a88fd78f.patch
|
2017-03-30 15:43:32 +02:00
|
|
|
EFIBOOTMGR_LICENSE = GPL-2.0+
|
2016-04-21 03:23:56 +02:00
|
|
|
EFIBOOTMGR_LICENSE_FILES = COPYING
|
2016-11-27 15:32:04 +01:00
|
|
|
EFIBOOTMGR_DEPENDENCIES = efivar $(if $(BR2_NEEDS_GETTEXT),gettext)
|
|
|
|
EFIBOOTMGR_LDFLAGS = $(TARGET_LDFLAGS) $(if $(BR2_NEEDS_GETTEXT),-lintl)
|
2016-04-21 03:23:56 +02:00
|
|
|
|
|
|
|
define EFIBOOTMSR_PATCH_HEADER_PATH
|
|
|
|
$(SED) 's,-I/,-I$(STAGING_DIR)/,' $(@D)/Makefile
|
|
|
|
endef
|
|
|
|
|
|
|
|
EFIBOOTMGR_POST_PATCH_HOOKS += EFIBOOTMSR_PATCH_HEADER_PATH
|
|
|
|
|
|
|
|
define EFIBOOTMGR_BUILD_CMDS
|
2017-04-21 17:24:48 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \
|
2016-11-27 15:32:04 +01:00
|
|
|
LDFLAGS="$(EFIBOOTMGR_LDFLAGS)" $(MAKE1) -C $(@D)
|
2016-04-21 03:23:56 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define EFIBOOTMGR_INSTALL_TARGET_CMDS
|
2017-04-21 17:24:48 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
2016-09-30 16:46:44 +02:00
|
|
|
DESTDIR=$(TARGET_DIR) install
|
2016-04-21 03:23:56 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|