1 AT91_SD_BOOT_PARTSIZE
:=64
3 FAT32_BLOCKS
:=$(shell echo \
4 $$(($(AT91_SD_BOOT_PARTSIZE
)*1024*1024/$(FAT32_BLOCK_SIZE
))))
6 define Build
/at91-sdcard
7 $(if
$(findstring ext4
,$@
), \
9 mkfs.fat
-C
$@.boot
$(FAT32_BLOCKS
)
11 mcopy
-i
$@.boot
$(KDIR
)/zImage
::zImage
13 $(foreach dts
,$(DEVICE_DTS
), \
14 mcopy
-i
$@.boot
$(DTS_DIR
)/$(dts
).dtb \
18 $(BIN_DIR
)/u-boot-
$(DEVICE_NAME
:at91-
%=%)_mmc
/u-boot.bin \
22 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_NAME
:at91-
%=%)sd
*/at91bootstrap.bin \
25 .
/gen_at91_sdcard_img.sh \
29 $(AT91_SD_BOOT_PARTSIZE
) \
30 $(CONFIG_TARGET_ROOTFS_PARTSIZE
)
34 rm -f
$@.img
$@.boot
)
37 define Device
/evaluation-sdimage
38 IMAGES
+= sdcard.img.gz
39 IMAGE
/sdcard.img.gz
:= at91-sdcard
42 define Device
/default-nand
46 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
124KiB
-c
2048
49 define Device
/at91-sama5d3_xplained
50 $(Device
/evaluation-dtb
)
51 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D3 Xplained
53 $(Device
/evaluation-sdimage
)
55 TARGET_DEVICES
+= at91-sama5d3_xplained
57 define Device
/at91-sama5d2_xplained
58 $(Device
/evaluation-dtb
)
59 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D2 Xplained
61 $(Device
/evaluation-sdimage
)
63 TARGET_DEVICES
+= at91-sama5d2_xplained
65 define Device
/at91-sama5d4_xplained
66 $(Device
/evaluation-dtb
)
67 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D4 Xplained
72 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
248KiB
-c
2082 -x lzo
73 $(Device
/evaluation-sdimage
)
75 TARGET_DEVICES
+= at91-sama5d4_xplained
77 define Device
/at91-sama5d27_som1_ek
78 $(Device
/evaluation-dtb
)
79 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D27 SOM1 Ek
81 $(Device
/evaluation-sdimage
)
83 TARGET_DEVICES
+= at91-sama5d27_som1_ek
85 ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE
)),"")
86 ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI
)),"")
88 $(Device
/evaluation-fit
)
89 DEVICE_TITLE
:= Laird WB50N
91 kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
92 kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
97 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
124KiB
-c
955
99 TARGET_DEVICES
+= wb50n