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
:at91-
%=%)-fit.itb
18 $(if
$(findstring at91-sama5d27_som1_ek
,$@
), \
20 $(BIN_DIR
)/u-boot-
$(DEVICE_NAME
:at91-
%=%)_mmc1
/u-boot.bin \
23 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_NAME
:at91-
%=%)sd1_uboot
/at91bootstrap.bin \
26 $(BIN_DIR
)/u-boot-
$(DEVICE_NAME
:at91-
%=%)_mmc
/u-boot.bin \
28 $(if
$(findstring sama5d4_xplained
, $@
), \
30 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_NAME
:at91-
%=%)sd_uboot_secure
/at91bootstrap.bin \
33 $(BIN_DIR
)/at91bootstrap-
$(DEVICE_NAME
: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:at91-%=%)"'' $@
-uboot-env.txt
39 sed
-i
'3i board_name='"$(DEVICE_NAME:at91-%=%)"'' $@
-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
/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-sama5d27_som1_ek
66 $(Device
/evaluation-dtb
)
67 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D27 SOM1 Ek
69 $(Device
/evaluation-sdimage
)
71 TARGET_DEVICES
+= at91-sama5d27_som1_ek
73 define Device
/at91-sama5d2_ptc_ek
74 $(Device
/evaluation-dtb
)
75 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D2 PTC Ek
77 $(Device
/evaluation-sdimage
)
79 TARGET_DEVICES
+= at91-sama5d2_ptc_ek
82 define Device
/at91-sama5d3_xplained
83 $(Device
/evaluation-dtb
)
84 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D3 Xplained
86 $(Device
/evaluation-sdimage
)
88 TARGET_DEVICES
+= at91-sama5d3_xplained
90 ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE
)),"")
91 ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI
)),"")
93 $(Device
/evaluation-fit
)
94 DEVICE_TITLE
:= Laird WB50N
96 kmod-mmc-at91 kmod-ath6kl-sdio ath6k-firmware \
97 kmod-usb-storage kmod-fs-vfat kmod-fs-msdos \
102 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
124KiB
-c
955
104 TARGET_DEVICES
+= wb50n
109 define Device
/at91-sama5d4_xplained
110 $(Device
/evaluation-dtb
)
111 DEVICE_TITLE
:= Microchip
(Atmel AT91
) SAMA5D4 Xplained
116 MKUBIFS_OPTS
:= -m
$$(PAGESIZE
) -e
248KiB
-c
2082
117 $(Device
/evaluation-sdimage
)
119 TARGET_DEVICES
+= at91-sama5d4_xplained