2 # Copyright (C) 2016 Ben Whitten <ben.whitten@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_HASH
:=87d02275615aaf0cd007b54cbe9fbadceef2bee7c79e6c323ea1ae8956dcb171
15 include $(INCLUDE_DIR
)/u-boot.mk
16 include $(INCLUDE_DIR
)/package.mk
20 UBOOT_IMAGE
:=u-boot.bin boot.bin
23 define U-Boot
/at91sam9m10g45ek_nandflash
24 NAME
:=AT91SAM9M10G45-EK board
(NandFlash
)
25 BUILD_SUBTARGET
:=legacy
28 define U-Boot
/at91sam9x5ek_nandflash
29 NAME
:=AT91SAM9X5-EK board
(NandFlash
)
30 BUILD_SUBTARGET
:=legacy
33 define uboot
/sama5d3_xplained_nandflash
34 TITLE
:=U-Boot for the SAMA5D3 Xplained board
(NandFlash
)
35 BUILD_SUBTARGET
:=sama5
36 BUILD_DEVICES
:=at91-sama5d3_xplained
39 define uboot
/sama5d3_xplained_mmc
40 TITLE
:=U-Boot for the SAMA5D3 Xplained board
(SDcard
)
41 BUILD_SUBTARGET
:=sama5
42 BUILD_DEVICES
:=at91-sama5d3_xplained
45 define uboot
/sama5d2_xplained_spiflash
46 TITLE
:=U-Boot for the SAMA5D2 Xplained board
(SPI Flash
)
47 BUILD_SUBTARGET
:=sama5
48 BUILD_DEVICES
:=at91-sama5d2_xplained
51 define uboot
/sama5d2_xplained_mmc
52 TITLE
:=U-Boot for the SAMA5D2 Xplained board
(SDcard
/EMMC
)
53 BUILD_SUBTARGET
:=sama5
54 BUILD_DEVICES
:=at91-sama5d2_xplained
57 define uboot
/sama5d4_xplained_spiflash
58 TITLE
:=U-Boot for the SAMA5D4 Xplained board
(SPI Flash
)
59 BUILD_SUBTARGET
:=sama5
60 BUILD_DEVICES
:=at91-sama5d4_xplained
63 define uboot
/sama5d4_xplained_mmc
64 TITLE
:=U-Boot for the SAMA5D4 Xplained board
(SDcard
)
65 BUILD_SUBTARGET
:=sama5
66 BUILD_DEVICES
:=at91-sama5d4_xplained
69 define uboot
/sama5d4_xplained_nandflash
70 TITLE
:=U-Boot for the SAMA5D4 Xplained board
(NandFlash
)
71 BUILD_SUBTARGET
:=sama5
72 BUILD_DEVICES
:=at91-sama5d4_xplained
76 at91sam9m10g45ek_nandflash \
77 at91sam9x5ek_nandflash \
78 sama5d3_xplained_nandflash \
79 sama5d3_xplained_mmc \
80 sama5d2_xplained_mmc \
81 sama5d2_xplained_spiflash \
82 sama5d4_xplained_mmc \
83 sama5d4_xplained_spiflash \
84 sama5d4_xplained_nandflash
87 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
88 CROSS_COMPILE
=$(TARGET_CROSS
) \
89 KCFLAGS
="$(filter-out -fstack-protector, $(TARGET_CFLAGS))"
92 $(eval
$(call BuildPackage
/U-Boot
))