29 lines
809 B
Makefile
29 lines
809 B
Makefile
|
################################################################################
|
||
|
#
|
||
|
# efibootmgr
|
||
|
#
|
||
|
################################################################################
|
||
|
|
||
|
EFIBOOTMGR_VERSION = efibootmgr-0.12
|
||
|
EFIBOOTMGR_SITE = $(call github,rhinstaller,efibootmgr,$(EFIBOOTMGR_VERSION))
|
||
|
EFIBOOTMGR_LICENSE = GPLv2+
|
||
|
EFIBOOTMGR_LICENSE_FILES = COPYING
|
||
|
EFIBOOTMGR_DEPENDENCIES = efivar
|
||
|
|
||
|
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
|
||
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE1) -C $(@D)
|
||
|
endef
|
||
|
|
||
|
define EFIBOOTMGR_INSTALL_TARGET_CMDS
|
||
|
$(INSTALL) -D -m 0755 $(@D)/src/efibootmgr/efibootmgr \
|
||
|
$(TARGET_DIR)/usr/bin/efibootmgr
|
||
|
endef
|
||
|
|
||
|
$(eval $(generic-package))
|