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 \
27 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_NAME
:at91-
%=%)sd_uboot
/at91bootstrap.bin \
30 $(CP
) uboot-env.txt
$@
-uboot-env.txt
31 sed
-i
'2d;3d' $@
-uboot-env.txt
32 sed
-i
'2i board='"$(DEVICE_NAME:at91-%=%)"'' $@
-uboot-env.txt
33 sed
-i
'3i board_name='"$(DEVICE_NAME:at91-%=%)"'' $@
-uboot-env.txt
35 mkenvimage
-s
0x4000 -o
$@
-uboot.env
$@
-uboot-env.txt
37 mcopy
-i
$@.boot
$@
-uboot.env
::uboot.env
39 .
/gen_at91_sdcard_img.sh \
43 $(AT91_SD_BOOT_PARTSIZE
) \
44 $(CONFIG_TARGET_ROOTFS_PARTSIZE
)
48 rm -f
$@.img
$@.boot
$@
-uboot.env
$@
-uboot-env.txt
)
51 define Device
/at91-sama5d2_xplained
52 $(Device
/evaluation-dtb
)
53 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D2 Xplained
55 $(Device
/evaluation-sdimage
)
57 TARGET_DEVICES
+= at91-sama5d2_xplained
59 define Device
/at91-sama5d27_som1_ek
60 $(Device
/evaluation-dtb
)
61 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D27 SOM1 Ek
63 $(Device
/evaluation-sdimage
)
65 TARGET_DEVICES
+= at91-sama5d27_som1_ek
67 define Device
/at91-sama5d2_ptc_ek
68 $(Device
/evaluation-dtb
)
69 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D2 PTC Ek
71 $(Device
/evaluation-sdimage
)
73 TARGET_DEVICES
+= at91-sama5d2_ptc_ek
76 define Device
/at91-sama5d3_xplained
77 $(Device
/evaluation-dtb
)
78 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D3 Xplained
80 $(Device
/evaluation-sdimage
)
82 TARGET_DEVICES
+= at91-sama5d3_xplained
84 ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE
)),"")
85 ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI
)),"")
87 $(Device
/evaluation-fit
)
88 DEVICE_TITLE
:= Laird WB50N
90 kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
91 kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
96 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
124KiB
-c
955
98 TARGET_DEVICES
+= wb50n
103 define Device
/at91-sama5d4_xplained
104 $(Device
/evaluation-dtb
)
105 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D4 Xplained
110 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
248KiB
-c
2082
111 $(Device
/evaluation-sdimage
)
113 TARGET_DEVICES
+= at91-sama5d4_xplained