Sfoglia il codice sorgente

at91/image/sama5.mk: check for sama5d4_xplained device

check for sama5d4_xplained device while copying at91bootstrap binary
to sdcard image.

Signed-off-by: Sandeep Sheriker M <[email protected]>
Sandeep Sheriker M 6 anni fa
parent
commit
552c48ea43
1 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. 7 3
      target/linux/at91/image/sama5.mk

+ 7 - 3
target/linux/at91/image/sama5.mk

@@ -23,9 +23,13 @@ define Build/at91-sdcard
       mcopy -i [email protected] \
           $(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \
           ::u-boot.bin
-      mcopy -i [email protected] \
-          $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd_uboot/at91bootstrap.bin \
-          ::BOOT.bin)
+      $(if $(findstring sama5d4_xplained, $@), \
+          mcopy -i [email protected] \
+              $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd_uboot_secure/at91bootstrap.bin \
+              ::BOOT.bin,
+          mcopy -i [email protected] \
+              $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd_uboot/at91bootstrap.bin \
+              ::BOOT.bin))
 
   $(CP) uboot-env.txt [email protected]
   sed -i '2d;3d' [email protected]