OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | # |
2 | # Copyright (C) 2016 Ben Whitten <ben.whitten@gmail.com> |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | include $(TOPDIR)/rules.mk |
||
9 | |||
10 | PKG_VERSION:=linux4sam_5.8 |
||
11 | PKG_RELEASE:=1 |
||
12 | |||
13 | PKG_SOURCE_PROTO:=git |
||
14 | PKG_SOURCE_URL:=https://github.com/linux4sam/u-boot-at91.git |
||
15 | PKG_SOURCE_VERSION:=59f202622154f82e708a6ca2bf86350a5c1b2d33 |
||
16 | |||
17 | include $(INCLUDE_DIR)/u-boot.mk |
||
18 | include $(INCLUDE_DIR)/package.mk |
||
19 | include $(INCLUDE_DIR)/kernel.mk |
||
20 | |||
21 | define U-Boot/Default |
||
22 | BUILD_TARGET:=at91 |
||
23 | HIDDEN:=1 |
||
24 | UBOOT_IMAGE:=u-boot.bin |
||
25 | endef |
||
26 | |||
27 | define U-Boot/at91sam9m10g45ek_nandflash |
||
28 | NAME:=AT91SAM9M10G45-EK board (NandFlash) |
||
29 | BUILD_SUBTARGET:=legacy |
||
30 | BUILD_DEVICES:=at91sam9m10g45ek |
||
31 | endef |
||
32 | |||
33 | define U-Boot/at91sam9x5ek_nandflash |
||
34 | NAME:=AT91SAM9X5-EK board (NandFlash) |
||
35 | BUILD_SUBTARGET:=legacy |
||
36 | BUILD_DEVICES:=at91sam9g15ek at91sam9g25ek \ |
||
37 | at91sam9g35ek at91sam9x25ek \ |
||
38 | at91sam9x35ek |
||
39 | endef |
||
40 | |||
41 | define U-Boot/sama5d3_xplained_nandflash |
||
42 | NAME:=SAMA5D3 Xplained board (NandFlash) |
||
43 | BUILD_SUBTARGET:=sama5d3 |
||
44 | BUILD_DEVICES:=at91-sama5d3_xplained |
||
45 | endef |
||
46 | |||
47 | define U-Boot/sama5d3_xplained_mmc |
||
48 | NAME:=SAMA5D3 Xplained board (SDcard) |
||
49 | BUILD_SUBTARGET:=sama5d3 |
||
50 | BUILD_DEVICES:=at91-sama5d3_xplained |
||
51 | endef |
||
52 | |||
53 | define U-Boot/sama5d2_xplained_spiflash |
||
54 | NAME:=SAMA5D2 Xplained board (SPI Flash) |
||
55 | BUILD_SUBTARGET:=sama5d2 |
||
56 | BUILD_DEVICES:=at91-sama5d2_xplained |
||
57 | endef |
||
58 | |||
59 | define U-Boot/sama5d2_xplained_mmc |
||
60 | NAME:=SAMA5D2 Xplained board (SDcard/EMMC) |
||
61 | BUILD_SUBTARGET:=sama5d2 |
||
62 | BUILD_DEVICES:=at91-sama5d2_xplained |
||
63 | endef |
||
64 | |||
65 | define U-Boot/sama5d4_xplained_spiflash |
||
66 | NAME:=SAMA5D4 Xplained board (SPI Flash) |
||
67 | BUILD_SUBTARGET:=sama5d4 |
||
68 | BUILD_DEVICES:=at91-sama5d4_xplained |
||
69 | endef |
||
70 | |||
71 | define U-Boot/sama5d4_xplained_mmc |
||
72 | NAME:=SAMA5D4 Xplained board (SDcard) |
||
73 | BUILD_SUBTARGET:=sama5d4 |
||
74 | BUILD_DEVICES:=at91-sama5d4_xplained |
||
75 | endef |
||
76 | |||
77 | define U-Boot/sama5d4_xplained_nandflash |
||
78 | NAME:=SAMA5D4 Xplained board (NandFlash) |
||
79 | BUILD_SUBTARGET:=sama5d4 |
||
80 | BUILD_DEVICES:=at91-sama5d4_xplained |
||
81 | endef |
||
82 | |||
83 | define U-Boot/sama5d27_som1_ek_mmc |
||
84 | NAME:=SAMA5D27 SOM1 Ek (SDCard) |
||
85 | BUILD_SUBTARGET:=sama5d2 |
||
86 | BUILD_DEVICES:=at91-sama5d27_som1_ek |
||
87 | endef |
||
88 | |||
89 | define U-Boot/sama5d27_som1_ek_spiflash |
||
90 | NAME:=SAMA5D27 SOM1 Ek (QSPI Flash) |
||
91 | BUILD_SUBTARGET:=sama5d2 |
||
92 | BUILD_DEVICES:=at91-sama5d27_som1_ek |
||
93 | endef |
||
94 | |||
95 | define U-Boot/sama5d2_ptc_ek_nandflash |
||
96 | NAME:=SAMA5D2 PTC Ek (Nand Flash) |
||
97 | BUILD_SUBTARGET:=sama5d2 |
||
98 | BUILD_DEVICES:=at91-sama5d2_ptc_ek |
||
99 | endef |
||
100 | |||
101 | define U-Boot/sama5d2_ptc_ek_mmc |
||
102 | NAME:=SAMA5D2 PTC Ek (SDCard) |
||
103 | BUILD_SUBTARGET:=sama5d2 |
||
104 | BUILD_DEVICES:=at91-sama5d2_ptc_ek |
||
105 | endef |
||
106 | |||
107 | UBOOT_TARGETS := \ |
||
108 | at91sam9m10g45ek_nandflash \ |
||
109 | at91sam9x5ek_nandflash \ |
||
110 | sama5d3_xplained_nandflash \ |
||
111 | sama5d3_xplained_mmc \ |
||
112 | sama5d2_xplained_mmc \ |
||
113 | sama5d2_xplained_spiflash \ |
||
114 | sama5d4_xplained_mmc \ |
||
115 | sama5d4_xplained_spiflash \ |
||
116 | sama5d4_xplained_nandflash\ |
||
117 | sama5d27_som1_ek_mmc \ |
||
118 | sama5d27_som1_ek_spiflash \ |
||
119 | sama5d2_ptc_ek_nandflash \ |
||
120 | sama5d2_ptc_ek_mmc |
||
121 | |||
122 | define Build/Compile |
||
123 | +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ |
||
124 | CROSS_COMPILE=$(TARGET_CROSS) \ |
||
125 | DTC=$(LINUX_DIR)/scripts/dtc/dtc \ |
||
126 | KCFLAGS="$(filter-out -fstack-protector \ |
||
127 | -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" |
||
128 | endef |
||
129 | |||
130 | $(eval $(call BuildPackage/U-Boot)) |