ae60fad445aac801a1ad927da8cb627661eb6296
[openwrt/openwrt.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 AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin
28 endef
29
30 define at91bootstrap/sama5d2_xplaineddf_uboot
31 TITLE:=AT91Bootstrap for the SAMA5D3 Xplained board (SPI Flash)
32 BUILD_SUBTARGET:=sama5
33 BUILD_DEVICES:=at91-sama5d3_xplained
34 endef
35
36 define at91bootstrap/sama5d2_xplaineddf_qspi_uboot
37 TITLE:=AT91Bootstrap for the SAMA5D2 Xplained board (QSPI Flash)
38 BUILD_SUBTARGET:=sama5
39 BUILD_DEVICES:=at91-sama5d2_xplained
40 endef
41
42 define at91bootstrap/sama5d2_xplainedsd_uboot
43 TITLE:=AT91Bootstrap for the SAMA5D2 Xplained board (SDcard/EMMC)
44 BUILD_SUBTARGET:=sama5
45 BUILD_DEVICES:=at91-sama5d2_xplained
46 endef
47
48 define at91bootstrap/sama5d3_xplainednf_uboot
49 TITLE:=AT91Bootstrap for the SAMA5D3 Xplained board (Nand Flash)
50 BUILD_SUBTARGET:=sama5
51 BUILD_DEVICES:=at91-sama5d3_xplained
52 endef
53
54 define at91bootstrap/sama5d3_xplainedsd_uboot
55 TITLE:=AT91Bootstrap for the SAMA5D3 Xplained board (SDcard)
56 BUILD_SUBTARGET:=sama5
57 BUILD_DEVICES:=at91-sama5d3_xplained
58 endef
59
60 define at91bootstrap/sama5d4_xplainednf_uboot
61 TITLE:=AT91Bootstrap for the SAMA5D4 Xplained board (Nand Flash)
62 BUILD_SUBTARGET:=sama5
63 BUILD_DEVICES:=at91-sama5d4_xplained
64 endef
65
66 define at91bootstrap/sama5d4_xplaineddf_uboot_secure
67 TITLE:=AT91Bootstrap for the SAMA5D4 Xplained board (SPI Flash)
68 BUILD_SUBTARGET:=sama5
69 BUILD_DEVICES:=at91-sama5d4_xplained
70 endef
71
72 define at91bootstrap/sama5d4_xplainedsd_uboot_secure
73 TITLE:=AT91Bootstrap for the SAMA5D4 Xplained board (SDcard)
74 BUILD_SUBTARGET:=sama5
75 BUILD_DEVICES:=at91-sama5d4_xplained
76 endef
77
78 AT91BOOTSTRAP_TARGETS := \
79 sama5d2_xplaineddf_uboot \
80 sama5d2_xplaineddf_qspi_uboot \
81 sama5d2_xplainedsd_uboot \
82 sama5d3_xplainednf_uboot \
83 sama5d3_xplainedsd_uboot \
84 sama5d4_xplainednf_uboot_secure \
85 sama5d4_xplaineddf_uboot_secure \
86 sama5d4_xplainedsd_uboot_secure
87
88 define Build/Compile
89 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
90 CROSS_COMPILE=$(TARGET_CROSS)
91 endef
92
93 $(eval $(call BuildPackage/AT91Bootstrap))