2 define Device/default-nand
6 MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 2048
9 define Build/at91-sdcard
10 $(if $(findstring ext4,$@), \
12 mkfs.fat -C $@.boot $(FAT32_BLOCKS)
14 mcopy -i $@.boot $(KDIR)/zImage ::zImage
16 $(if $(findstring at91-sama5d27_som1_ek,$@), \
18 $(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc1/u-boot.bin \
21 $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd1_uboot/at91bootstrap.bin \
24 $(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \
26 $(if $(findstring sama5d4_xplained, $@), \
28 $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd_uboot_secure/at91bootstrap.bin \
31 $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd_uboot/at91bootstrap.bin \
34 $(CP) uboot-env.txt $@-uboot-env.txt
35 sed -i '2d;3d' $@-uboot-env.txt
36 sed -i '2i board='"$(DEVICE_NAME:at91-%=%)"'' $@-uboot-env.txt
37 sed -i '3i board_name='"$(DEVICE_NAME:at91-%=%)"'' $@-uboot-env.txt
39 mkenvimage -s 0x4000 -o $@-uboot.env $@-uboot-env.txt
41 mcopy -i $@.boot $@-uboot.env ::uboot.env
43 ./gen_at91_sdcard_img.sh \
47 $(AT91_SD_BOOT_PARTSIZE) \
48 $(CONFIG_TARGET_ROOTFS_PARTSIZE)
52 rm -f $@.img $@.boot $@-uboot.env $@-uboot-env.txt)
55 define Device/at91-sama5d2_xplained
56 $(Device/evaluation-dtb)
57 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 Xplained
59 $(Device/evaluation-sdimage)
61 TARGET_DEVICES += at91-sama5d2_xplained
63 define Device/at91-sama5d27_som1_ek
64 $(Device/evaluation-dtb)
65 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D27 SOM1 Ek
67 $(Device/evaluation-sdimage)
69 TARGET_DEVICES += at91-sama5d27_som1_ek
71 define Device/at91-sama5d2_ptc_ek
72 $(Device/evaluation-dtb)
73 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 PTC Ek
75 $(Device/evaluation-sdimage)
77 TARGET_DEVICES += at91-sama5d2_ptc_ek
80 define Device/at91-sama5d3_xplained
81 $(Device/evaluation-dtb)
82 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D3 Xplained
84 $(Device/evaluation-sdimage)
86 TARGET_DEVICES += at91-sama5d3_xplained
88 ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
89 ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
91 $(Device/evaluation-fit)
92 DEVICE_TITLE := Laird WB50N
94 kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
95 kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
100 MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 955
102 TARGET_DEVICES += wb50n
107 define Device/at91-sama5d4_xplained
108 $(Device/evaluation-dtb)
109 DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D4 Xplained
114 MKUBIFS_OPTS := -m $$(PAGESIZE) -e 248KiB -c 2082
115 $(Device/evaluation-sdimage)
117 TARGET_DEVICES += at91-sama5d4_xplained