[OpenWrt-Devel,at91,v3,13/13] at91/image/sama5.mk: check for sama5d4_xplained device
diff mbox series

Message ID 1565816443-10924-2-git-send-email-sandeep.sheriker@microchip.com
State Accepted
Delegated to: Hauke Mehrtens
Headers show
Series
  • Untitled series #125211
Related show

Commit Message

Sandeep Sheriker M Aug. 14, 2019, 9:02 p.m. UTC
check for sama5d4_xplained device while copying at91bootstrap binary
to sdcard image.

Signed-off-by: Sandeep Sheriker M <sandeep.sheriker@microchip.com>
---
 target/linux/at91/image/sama5.mk | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Patch
diff mbox series

diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk
index a9370b1..1e4366c 100644
--- a/target/linux/at91/image/sama5.mk
+++ b/target/linux/at91/image/sama5.mk
@@ -25,9 +25,13 @@  define Build/at91-sdcard
       mcopy -i $@.boot \
           $(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \
           ::u-boot.bin
-      mcopy -i $@.boot \
-          $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd_uboot/at91bootstrap.bin \
-          ::BOOT.bin)
+      $(if $(findstring sama5d4_xplained, $@), \
+          mcopy -i $@.boot \
+              $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd_uboot_secure/at91bootstrap.bin \
+              ::BOOT.bin,
+          mcopy -i $@.boot \
+              $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd_uboot/at91bootstrap.bin \
+              ::BOOT.bin))
 
   $(CP) uboot-env.txt $@-uboot-env.txt
   sed -i '2d;3d' $@-uboot-env.txt