2019-01-11 11:01:11 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# shim
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2024-02-08 09:38:04 +01:00
|
|
|
SHIM_VERSION = 15.8
|
2021-04-05 22:21:54 +02:00
|
|
|
SHIM_SITE = https://github.com/rhboot/shim/releases/download/$(SHIM_VERSION)
|
|
|
|
SHIM_SOURCE = shim-$(SHIM_VERSION).tar.bz2
|
2019-01-11 11:01:11 +01:00
|
|
|
SHIM_LICENSE = BSD-2-Clause
|
|
|
|
SHIM_LICENSE_FILES = COPYRIGHT
|
2021-01-17 17:06:34 +01:00
|
|
|
SHIM_CPE_ID_VENDOR = redhat
|
2019-01-11 11:01:11 +01:00
|
|
|
SHIM_INSTALL_TARGET = NO
|
|
|
|
SHIM_INSTALL_IMAGES = YES
|
|
|
|
|
2024-02-29 22:56:41 +01:00
|
|
|
SHIM_CFLAGS = $(TARGET_CFLAGS)
|
2019-01-11 11:01:11 +01:00
|
|
|
SHIM_MAKE_OPTS = \
|
|
|
|
ARCH="$(GNU_EFI_PLATFORM)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
2024-02-29 22:56:41 +01:00
|
|
|
DASHJ="-j$(PARALLEL_JOBS)" \
|
|
|
|
OPTIMIZATIONS="$(SHIM_CFLAGS)"
|
|
|
|
|
|
|
|
# shim has some assembly function that is not present in Thumb mode:
|
|
|
|
# Error: selected processor does not support `mrc p15,0,r2,c9,c13,0' in Thumb mode
|
|
|
|
# so, we desactivate Thumb mode
|
|
|
|
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
|
|
|
SHIM_CFLAGS += -marm
|
|
|
|
endif
|
2019-01-11 11:01:11 +01:00
|
|
|
|
|
|
|
define SHIM_BUILD_CMDS
|
|
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(SHIM_MAKE_OPTS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SHIM_INSTALL_IMAGES_CMDS
|
|
|
|
$(INSTALL) -m 0755 -t $(BINARIES_DIR) $(@D)/*.efi
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|