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
18 $(if
$(findstring sama5d27-som1-ek
,$@
), \
20 $(BIN_DIR
)/u-boot-
$(DEVICE_DTS
:at91-
%=%)_mmc1
/u-boot.bin \
23 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_DTS
:at91-
%=%)sd1_uboot
/at91bootstrap.bin \
26 $(BIN_DIR
)/u-boot-
$(DEVICE_DTS
:at91-
%=%)_mmc
/u-boot.bin \
28 $(if
$(findstring sama5d4-xplained
,$@
), \
30 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_DTS
:at91-
%=%)sd_uboot_secure
/at91bootstrap.bin \
33 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_DTS
:at91-
%=%)sd_uboot
/at91bootstrap.bin \
36 $(CP
) uboot-env.txt
$@
-uboot-env.txt
37 sed
-i
'2d;3d' $@
-uboot-env.txt
38 sed
-i
'2i board='"$(DEVICE_NAME)"'' $@
-uboot-env.txt
39 sed
-i
'3i board_name='"$(firstword $(SUPPORTED_DEVICES))"'' $@
-uboot-env.txt
41 mkenvimage
-s
0x4000 -o
$@
-uboot.env
$@
-uboot-env.txt
43 mcopy
-i
$@.boot
$@
-uboot.env
::uboot.env
45 .
/gen_at91_sdcard_img.sh \
49 $(AT91_SD_BOOT_PARTSIZE
) \
50 $(CONFIG_TARGET_ROOTFS_PARTSIZE
)
54 rm -f
$@.img
$@.boot
$@
-uboot.env
$@
-uboot-env.txt
)
57 define Device
/microchip_sama5d2-icp
58 $(Device
/evaluation-dtb
)
59 DEVICE_VENDOR
:= Microchip
60 DEVICE_MODEL
:= SAMA5D2 ICP
61 DEVICE_DTS
:= at91-sama5d2_icp
62 SUPPORTED_DEVICES
:= microchip
,sama5d2-icp
64 $(Device
/evaluation-sdimage
)
66 TARGET_DEVICES
+= microchip_sama5d2-icp
68 define Device
/microchip_sama5d2-xplained
69 $(Device
/evaluation-dtb
)
70 DEVICE_VENDOR
:= Microchip
71 DEVICE_MODEL
:= SAMA5D2 Xplained
72 DEVICE_DTS
:= at91-sama5d2_xplained
73 SUPPORTED_DEVICES
:= atmel
,sama5d2-xplained
75 $(Device
/evaluation-sdimage
)
77 TARGET_DEVICES
+= microchip_sama5d2-xplained
79 define Device
/microchip_sama5d27-som1-ek
80 $(Device
/evaluation-dtb
)
81 DEVICE_VENDOR
:= Microchip
82 DEVICE_MODEL
:= SAMA5D27 SOM1 Ek
83 DEVICE_DTS
:= at91-sama5d27_som1_ek
84 SUPPORTED_DEVICES
:= atmel
,sama5d27-som1-ek
86 $(Device
/evaluation-sdimage
)
88 TARGET_DEVICES
+= microchip_sama5d27-som1-ek
90 define Device
/microchip_sama5d2-ptc-ek
91 $(Device
/evaluation-dtb
)
92 DEVICE_VENDOR
:= Microchip
93 DEVICE_MODEL
:= SAMA5D2 PTC Ek
94 DEVICE_DTS
:= at91-sama5d2_ptc_ek
95 SUPPORTED_DEVICES
:= atmel
,sama5d2-ptc_ek
97 $(Device
/evaluation-sdimage
)
99 TARGET_DEVICES
+= microchip_sama5d2-ptc-ek
101 define Device
/microchip_sama5d3-xplained
102 $(Device
/evaluation-dtb
)
103 DEVICE_VENDOR
:= Microchip
104 DEVICE_MODEL
:= SAMA5D3 Xplained
105 DEVICE_DTS
:= at91-sama5d3_xplained
106 SUPPORTED_DEVICES
:= atmel
,sama5d3-xplained
108 $(Device
/evaluation-sdimage
)
110 TARGET_DEVICES
+= microchip_sama5d3-xplained
112 ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE
)),"")
113 ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI
)),"")
114 define Device
/laird_wb50n
115 $(Device
/evaluation-fit
)
116 DEVICE_VENDOR
:= Laird
117 DEVICE_MODEL
:= WB50N
118 DEVICE_DTS
:= at91-wb50n
120 kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
121 kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
126 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
124KiB
-c
955
128 TARGET_DEVICES
+= laird_wb50n
132 define Device
/microchip_sama5d4-xplained
133 $(Device
/evaluation-dtb
)
134 DEVICE_VENDOR
:= Microchip
135 DEVICE_MODEL
:= SAMA5D4 Xplained
136 DEVICE_DTS
:= at91-sama5d4_xplained
137 SUPPORTED_DEVICES
:= atmel
,sama5d4-xplained
142 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
248KiB
-c
2082
143 $(Device
/evaluation-sdimage
)
145 TARGET_DEVICES
+= microchip_sama5d4-xplained