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
)
15 $(KDIR
)/$(DEVICE_NAME
)-fit-zImage.itb \
16 ::$(DEVICE_NAME
)-fit.itb
19 $(BIN_DIR
)/u-boot-
$(DEVICE_DTS
:at91-
%=%)_mmc
/u-boot.bin \
22 $(if
$(findstring sama5d4-xplained
,$@
), \
24 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_DTS
:at91-
%=%)sd_uboot_secure
/at91bootstrap.bin \
27 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_DTS
: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)"'' $@
-uboot-env.txt
33 sed
-i
'3i board_name='"$(firstword $(SUPPORTED_DEVICES))"'' $@
-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
/microchip_sama5d2-icp
52 $(Device
/evaluation-dtb
)
53 DEVICE_VENDOR
:= Microchip
54 DEVICE_MODEL
:= SAMA5D2 ICP
55 DEVICE_DTS
:= at91-sama5d2_icp
56 SUPPORTED_DEVICES
:= microchip
,sama5d2-icp
58 $(Device
/evaluation-sdimage
)
60 TARGET_DEVICES
+= microchip_sama5d2-icp
62 define Device
/microchip_sama5d2-xplained
63 $(Device
/evaluation-dtb
)
64 DEVICE_VENDOR
:= Microchip
65 DEVICE_MODEL
:= SAMA5D2 Xplained
66 DEVICE_DTS
:= at91-sama5d2_xplained
67 SUPPORTED_DEVICES
:= atmel
,sama5d2-xplained
69 $(Device
/evaluation-sdimage
)
71 TARGET_DEVICES
+= microchip_sama5d2-xplained
73 define Device
/microchip_sama5d27-som1-ek
74 $(Device
/evaluation-dtb
)
75 DEVICE_VENDOR
:= Microchip
76 DEVICE_MODEL
:= SAMA5D27 SOM1 Ek
77 DEVICE_DTS
:= at91-sama5d27_som1_ek
78 SUPPORTED_DEVICES
:= atmel
,sama5d27-som1-ek
80 $(Device
/evaluation-sdimage
)
82 TARGET_DEVICES
+= microchip_sama5d27-som1-ek
84 define Device
/microchip_sama5d27-wlsom1-ek
85 $(Device
/evaluation-dtb
)
86 DEVICE_VENDOR
:= Microchip
87 DEVICE_MODEL
:= SAMA5D27 WSOM1 Ek
88 DEVICE_DTS
:= at91-sama5d27_wlsom1_ek
89 SUPPORTED_DEVICES
:= microchip
,sama5d27-wlsom1-ek
91 $(Device
/evaluation-sdimage
)
93 TARGET_DEVICES
+= microchip_sama5d27-wlsom1-ek
95 define Device
/microchip_sama5d2-ptc-ek
96 $(Device
/evaluation-dtb
)
97 DEVICE_VENDOR
:= Microchip
98 DEVICE_MODEL
:= SAMA5D2 PTC Ek
99 DEVICE_DTS
:= at91-sama5d2_ptc_ek
100 SUPPORTED_DEVICES
:= atmel
,sama5d2-ptc_ek
102 $(Device
/evaluation-sdimage
)
104 TARGET_DEVICES
+= microchip_sama5d2-ptc-ek
106 define Device
/microchip_sama5d3-xplained
107 $(Device
/evaluation-dtb
)
108 DEVICE_VENDOR
:= Microchip
109 DEVICE_MODEL
:= SAMA5D3 Xplained
110 DEVICE_DTS
:= at91-sama5d3_xplained
111 SUPPORTED_DEVICES
:= atmel
,sama5d3-xplained
113 $(Device
/evaluation-sdimage
)
115 TARGET_DEVICES
+= microchip_sama5d3-xplained
117 ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE
)),"")
118 ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI
)),"")
119 define Device
/laird_wb50n
120 $(Device
/evaluation-fit
)
121 DEVICE_VENDOR
:= Laird
122 DEVICE_MODEL
:= WB50N
123 DEVICE_DTS
:= at91-wb50n
125 kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
126 kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
131 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
124KiB
-c
955
133 TARGET_DEVICES
+= laird_wb50n
137 define Device
/microchip_sama5d4-xplained
138 $(Device
/evaluation-dtb
)
139 DEVICE_VENDOR
:= Microchip
140 DEVICE_MODEL
:= SAMA5D4 Xplained
141 DEVICE_DTS
:= at91-sama5d4_xplained
142 SUPPORTED_DEVICES
:= atmel
,sama5d4-xplained
147 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
248KiB
-c
2082
148 $(Device
/evaluation-sdimage
)
150 TARGET_DEVICES
+= microchip_sama5d4-xplained