at91: fix sdcard create image
copying at91bootstrap and uboot binaries to sdcard image is done based on device name instead of dts name and this avoids creating multiple u-boot and at91bootstrap binaries. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
This commit is contained in:
parent
87f87e45c0
commit
130224cc47
1 changed files with 9 additions and 7 deletions
|
@ -11,13 +11,15 @@ define Build/at91-sdcard
|
||||||
|
|
||||||
$(foreach dts,$(DEVICE_DTS), \
|
$(foreach dts,$(DEVICE_DTS), \
|
||||||
mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \
|
mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \
|
||||||
::$(dts).dtb; \
|
::$(dts).dtb;)
|
||||||
mcopy -i $@.boot \
|
|
||||||
$(BIN_DIR)/u-boot-$(dts:at91-%=%)_mmc/u-boot.bin \
|
mcopy -i $@.boot \
|
||||||
::u-boot.bin; \
|
$(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \
|
||||||
$(CP) $(BIN_DIR)/at91bootstrap-$(dts:at91-%=%)sd_uboot*/*.bin \
|
::u-boot.bin
|
||||||
$@.BOOT.bin; \
|
|
||||||
mcopy -i $@.boot $@.BOOT.bin ::BOOT.bin;)
|
$(CP) $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \
|
||||||
|
$@.BOOT.bin; \
|
||||||
|
mcopy -i $@.boot $@.BOOT.bin ::BOOT.bin
|
||||||
|
|
||||||
./gen_at91_sdcard_img.sh \
|
./gen_at91_sdcard_img.sh \
|
||||||
$@.img \
|
$@.img \
|
||||||
|
|
Loading…
Reference in a new issue