Additional parameters for the OP-TEE OS build
E.g. 'CFG_TEE_CORE_LOG_LEVEL=3 CFG_UNWIND=y'
+config BR2_TARGET_OPTEE_OS_CORE_IMAGES
+ string "Binary boot images"
+ default "tee.bin tee-*_v2.bin"
+ help
+ Names of generated image files that are installed in the
+ output images/ directory.
+
endif # BR2_TARGET_OPTEE_OS
OPTEE_OS_SDK = $(STAGING_DIR)/lib/optee/export-ta_arm32
endif
+OPTEE_OS_IMAGE_FILES = $(call qstrip,$(BR2_TARGET_OPTEE_OS_CORE_IMAGES))
+
ifeq ($(BR2_TARGET_OPTEE_OS_CORE),y)
define OPTEE_OS_BUILD_CORE
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) O=$(OPTEE_OS_BUILDDIR_OUT) \
endef
define OPTEE_OS_INSTALL_IMAGES_CORE
mkdir -p $(BINARIES_DIR)
- cp -dpf $(@D)/$(OPTEE_OS_BUILDDIR_OUT)/core/tee.bin $(BINARIES_DIR)
- cp -dpf $(@D)/$(OPTEE_OS_BUILDDIR_OUT)/core/tee-*_v2.bin $(BINARIES_DIR)
+ $(foreach f,$(OPTEE_OS_IMAGE_FILES), \
+ cp -dpf $(wildcard $(@D)/$(OPTEE_OS_BUILDDIR_OUT)/core/$(f)) $(BINARIES_DIR)/
+ )
endef
endif # BR2_TARGET_OPTEE_OS_CORE