Skip to contentSkip to conversation

add pattern based copy for ATF as already used for u-boot. This add support for different platforms where the binaries have different extension

PATCH New Schenk Michael 3 participants 3 messages Nov 14, 2019 – Nov 15, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add pattern based copy for ATF as already used for u-boot. This add support for different platforms where the binaries have different extension

---
 boot/arm-trusted-firmware/Config.in               | 7 +++++++
 boot/arm-trusted-firmware/arm-trusted-firmware.mk | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)
boot/arm-trusted-firmware/Config.in +7 -0
index beb95fb..78c0301 100644
@@ -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
boot/arm-trusted-firmware/arm-trusted-firmware.mk +3 -1
index a7814e5..e528686 100644
@@ -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
Signature · 1 line
2.7.4
#2 lore raw

PATCH 1/1 add pattern based copy for ATF as already used for u-boot. This add support for different platforms where the binaries have different extension

In reply to Schenk Michael

Hi Michael,

could you fix the patch title/commit log?

Title: add pattern based copy for ATF as already used for u-boot

Commit log: This adds support for different platforms where the binaries have different extensions.

Quoted 12 lines · Schenk Michael
---
 boot/arm-trusted-firmware/Config.in               | 7 +++++++
 boot/arm-trusted-firmware/arm-trusted-firmware.mk | 4 +++-
 2 files changed, 10 insertions(+), 1 deletion(-)
boot/arm-trusted-firmware/Config.in +0 -0
index beb95fb..78c0301 100644

boot/arm-trusted-firmware/Config.in config BR2_TARGET_ARM_TRUSTED_FIRMWARE_DEBUG · line 143

Quoted 9 lines
boot/arm-trusted-firmware/Config.in +6 -0
@@ -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.

Please precise the list type. Is it space separated or comma separated.

Regards,
Yegor

Quoted 24 lines
boot/arm-trusted-firmware/Config.in +1 -0
+
 endif
boot/arm-trusted-firmware/arm-trusted-firmware.mk +3 -2
index a7814e5..e528686 100644
@@ -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
--

2.7.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot