at91bootstrap: remove redundant definition of BUILD_SUBTARGET
[openwrt/staging/mkresin.git] / package / boot / at91bootstrap / Makefile
1 #
2 # Copyright (C) 2016 Microchip Technology Inc.
3 # <Sandeepsheriker.mallikarjun@microchip.com>
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=at91bootstrap
12 PKG_VERSION:=v3.8.8
13 PKG_RELEASE:=
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git
17 PKG_SOURCE_VERSION:=3d33a4e0707c61007a5278f6620453502f7500db
18
19 PKG_BUILD_DIR = \
20 $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include at91bootstrap.mk
23 include $(INCLUDE_DIR)/package.mk
24
25 define AT91Bootstrap/Default
26 BUILD_TARGET:=at91
27 BUILD_SUBTARGET:=sama5
28 AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin
29 endef
30
31 define AT91Bootstrap/sama5d2_xplaineddf_uboot
32 TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash)
33 BUILD_DEVICES:=at91-sama5d2_xplained
34 endef
35
36 define AT91Bootstrap/sama5d2_xplaineddf_qspi_uboot
37 TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (QSPI Flash)
38 BUILD_DEVICES:=at91-sama5d2_xplained
39 endef
40
41 define AT91Bootstrap/sama5d2_xplainedsd_uboot
42 TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC)
43 BUILD_DEVICES:=at91-sama5d2_xplained
44 endef
45
46 define AT91Bootstrap/sama5d3_xplainednf_uboot
47 TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash)
48 BUILD_DEVICES:=at91-sama5d3_xplained
49 endef
50
51 define AT91Bootstrap/sama5d3_xplainedsd_uboot
52 TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard)
53 BUILD_DEVICES:=at91-sama5d3_xplained
54 endef
55
56 define AT91Bootstrap/sama5d4_xplainednf_uboot_secure
57 TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash)
58 BUILD_DEVICES:=at91-sama5d4_xplained
59 endef
60
61 define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure
62 TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash)
63 BUILD_DEVICES:=at91-sama5d4_xplained
64 endef
65
66 define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure
67 TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard)
68 BUILD_DEVICES:=at91-sama5d4_xplained
69 endef
70
71 AT91BOOTSTRAP_TARGETS := \
72 sama5d2_xplaineddf_uboot \
73 sama5d2_xplaineddf_qspi_uboot \
74 sama5d2_xplainedsd_uboot \
75 sama5d3_xplainednf_uboot \
76 sama5d3_xplainedsd_uboot \
77 sama5d4_xplainednf_uboot_secure \
78 sama5d4_xplaineddf_uboot_secure \
79 sama5d4_xplainedsd_uboot_secure
80
81 define Build/Compile
82 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
83 CROSS_COMPILE=$(TARGET_CROSS)
84 endef
85
86 $(eval $(call BuildPackage/AT91Bootstrap))