aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Schenk Michael <michael.schenk@noser.com>2019-11-15 07:51:01 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-11-15 21:29:54 +0100
commite4d276c357fdf9f19f99f826cab63f373687f902 (patch)
treecb2569b465b19c5cac9c3b7f41229698ae384c1a
parent26890e87cb669eb0da02153e12df7003b10de623 (diff)
downloadbuildroot-e4d276c357fdf9f19f99f826cab63f373687f902.tar.gz
buildroot-e4d276c357fdf9f19f99f826cab63f373687f902.tar.bz2
boot/arm-trusted-firmware: add pattern based image copy for ATF
This adds support for different platforms where the binaries have different extensions. Signed-off-by: Michael Schenk <michael.schenk@noser.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--boot/arm-trusted-firmware/Config.in7
-rw-r--r--boot/arm-trusted-firmware/arm-trusted-firmware.mk4
2 files changed, 10 insertions, 1 deletions
diff --git a/boot/arm-trusted-firmware/Config.in b/boot/arm-trusted-firmware/Config.in
index beb95fbf06..78c03019d5 100644
--- a/boot/arm-trusted-firmware/Config.in
+++ b/boot/arm-trusted-firmware/Config.in
@@ -135,4 +135,11 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_DEBUG
help
Enable this option to build ATF with DEBUG=1.
+config BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES
+ string "Binary boot images"
+ default "*.bin"
+ help
+ Names of generated image files that are installed in the
+ output images/ directory.
+
endif
diff --git a/boot/arm-trusted-firmware/arm-trusted-firmware.mk b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
index a7814e534a..e528686aa1 100644
--- a/boot/arm-trusted-firmware/arm-trusted-firmware.mk
+++ b/boot/arm-trusted-firmware/arm-trusted-firmware.mk
@@ -146,7 +146,9 @@ define ARM_TRUSTED_FIRMWARE_BUILD_CMDS
endef
define ARM_TRUSTED_FIRMWARE_INSTALL_IMAGES_CMDS
- cp -dpf $(ARM_TRUSTED_FIRMWARE_IMG_DIR)/*.bin $(BINARIES_DIR)/
+ $(foreach f,$(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES)), \
+ cp -dpf $(ARM_TRUSTED_FIRMWARE_IMG_DIR)/$(f) $(BINARIES_DIR)/
+ )
$(ARM_TRUSTED_FIRMWARE_BL31_UBOOT_INSTALL)
$(ARM_TRUSTED_FIRMWARE_BL31_UBOOT_INSTALL_ELF)
endef