[meta-arago,dunfell,1/5] ti-tisdk-makefile: Makefile_u-boot-spl: Add support for u-boot-a53 build for am62xx-evm

Message ID 20220513074923.28761-2-a-m1@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series Add support in toplevel Makefile of SDK | expand

Commit Message

Aparna M May 13, 2022, 7:49 a.m. UTC
The DM firmware binary ipc_echo_testb_mcu1_0_release_strip.xer5f is
packaged with tispl.bin in am62xx-evm. Add support for u-boot-a53 build
for the device in toplevel Makefile of SDK.

Signed-off-by: Aparna M <a-m1@ti.com>
---
 .../ti-tisdk-makefile/k3/Makefile_u-boot-spl     | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

Patch

diff --git a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/k3/Makefile_u-boot-spl b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/k3/Makefile_u-boot-spl
index d1a5ed08..4b210d1c 100644
--- a/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/k3/Makefile_u-boot-spl
+++ b/meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile/k3/Makefile_u-boot-spl
@@ -10,6 +10,7 @@  UBOOT_R5_BUILD_DIR=$(TI_SDK_PATH)/board-support/u-boot_build/r5
 UBOOT_ATF=$(TI_SDK_PATH)/board-support/prebuilt-images/bl31.bin
 UBOOT_TEE=$(TI_SDK_PATH)/board-support/prebuilt-images/bl32.bin
 UBOOT_SYSFW=$(TI_SDK_PATH)/board-support/prebuilt-images/sysfw.bin
+UBOOT_DMFW=$(TI_SDK_PATH)/board-support/prebuilt-images/ipc_echo_testb_mcu1_0_release_strip.xer5f
 
 u-boot: u-boot-a53 u-boot-r5
 u-boot_clean: u-boot-a53_clean u-boot-r5_clean
@@ -20,10 +21,17 @@  u-boot-a53:
 	@echo ===================================
 	$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) \
 		 $(UBOOT_MACHINE) O=$(UBOOT_A53_BUILD_DIR)
-	$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) \
-		CONFIG_MKIMAGE_DTC_PATH=$(UBOOT_A53_BUILD_DIR)/scripts/dtc/dtc \
-		ATF=$(UBOOT_ATF) TEE=$(UBOOT_TEE) \
-		O=$(UBOOT_A53_BUILD_DIR)
+	if [ $(PLATFORM) = am62xx-evm ]; then \
+		$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) \
+			CONFIG_MKIMAGE_DTC_PATH=$(UBOOT_A53_BUILD_DIR)/scripts/dtc/dtc \
+			ATF=$(UBOOT_ATF) TEE=$(UBOOT_TEE) DM=$(UBOOT_DMFW) \
+			O=$(UBOOT_A53_BUILD_DIR); \
+	else \
+		$(MAKE) -j $(MAKE_JOBS) -C $(TI_SDK_PATH)/board-support/u-boot-* CROSS_COMPILE=$(CROSS_COMPILE) \
+			CONFIG_MKIMAGE_DTC_PATH=$(UBOOT_A53_BUILD_DIR)/scripts/dtc/dtc \
+			ATF=$(UBOOT_ATF) TEE=$(UBOOT_TEE) \
+			O=$(UBOOT_A53_BUILD_DIR); \
+	fi
 
 u-boot-a53_clean:
 	@echo ===================================