-
Notifications
You must be signed in to change notification settings - Fork 6
/
site.mk
304 lines (269 loc) · 7.57 KB
/
site.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
GLUON_MULTIDOMAIN=1
GLUON_DEPRECATED ?= upgrade
GLUON_FEATURES := \
autoupdater \
config-mode-domain-select \
config-mode-geo-location-osm \
config-mode-mesh-vpn \
ebtables-filter-multicast \
ebtables-filter-ra-dhcp \
ebtables-source-filter \
mesh-batman-adv-15 \
respondd \
status-page \
web-advanced \
web-private-wifi \
web-wizard
# base packages
GLUON_SITE_PACKAGES := \
gluon-segment-mover \
iwinfo \
gluon-ssid-changer \
respondd-module-airtime \
gluon-mesh-vpn-wireguard-vxlan \
ffrgb-banner
DEFAULT_GLUON_RELEASE := snapshot~$(shell date '+%Y%m%d')
# Allow overriding the release number from the command line
GLUON_RELEASE ?= $(DEFAULT_GLUON_RELEASE)
GLUON_PRIORITY ?= 0
GLUON_REGION ?= eu
GLUON_LANGS ?= en de
# additional packages
INCLUDE_USB := \
usbutils
EXCLUDE_USB := \
-usbutils
INCLUDE_USB_HID := \
kmod-usb-hid \
kmod-hid-generic
EXCLUDE_USB_HID := \
-kmod-usb-hid \
-kmod-hid-generic
INCLUDE_USB_SERIAL := \
kmod-usb-serial \
kmod-usb-serial-ftdi \
kmod-usb-serial-pl2303
EXCLUDE_USB_SERIAL := \
-kmod-usb-serial \
-kmod-usb-serial-ftdi \
-kmod-usb-serial-pl2303
INCLUDE_USB_STORAGE := \
block-mount \
blkid \
kmod-fs-ext4 \
kmod-fs-ntfs \
kmod-fs-vfat \
kmod-usb-storage \
kmod-usb-storage-extras \
kmod-usb-storage-uas \
kmod-nls-base \
kmod-nls-cp1250 \
kmod-nls-cp437 \
kmod-nls-cp850 \
kmod-nls-cp852 \
kmod-nls-iso8859-1 \
kmod-nls-iso8859-13 \
kmod-nls-iso8859-15 \
kmod-nls-iso8859-2 \
kmod-nls-utf8
EXCLUDE_USB_STORAGE := \
-block-mount \
-blkid \
-kmod-fs-ext4 \
-kmod-fs-ntfs \
-kmod-fs-vfat \
-kmod-usb-storage \
-kmod-usb-storage-extras \
-kmod-usb-storage-uas \
-kmod-nls-base \
-kmod-nls-cp1250 \
-kmod-nls-cp437 \
-kmod-nls-cp850 \
-kmod-nls-cp852 \
-kmod-nls-iso8859-1 \
-kmod-nls-iso8859-13 \
-kmod-nls-iso8859-15 \
-kmod-nls-iso8859-2 \
-kmod-nls-utf8
INCLUDE_USB_NET := \
kmod-mii \
kmod-usb-net \
kmod-usb-net-asix \
kmod-usb-net-asix-ax88179 \
kmod-usb-net-cdc-eem \
kmod-usb-net-cdc-ether \
kmod-usb-net-cdc-subset \
kmod-usb-net-dm9601-ether \
kmod-usb-net-hso \
kmod-usb-net-ipheth \
kmod-usb-net-mcs7830 \
kmod-usb-net-pegasus \
kmod-usb-net-rndis \
kmod-usb-net-rtl8152 \
kmod-usb-net-smsc95xx
EXCLUDE_USB_NET := \
-kmod-mii \
-kmod-usb-net \
-kmod-usb-net-asix \
-kmod-usb-net-asix-ax88179 \
-kmod-usb-net-cdc-eem \
-kmod-usb-net-cdc-ether \
-kmod-usb-net-cdc-subset \
-kmod-usb-net-dm9601-ether \
-kmod-usb-net-hso \
-kmod-usb-net-ipheth \
-kmod-usb-net-mcs7830 \
-kmod-usb-net-pegasus \
-kmod-usb-net-rndis \
-kmod-usb-net-rtl8152 \
-kmod-usb-net-smsc95xx
INCLUDE_PCI := \
pciutils
EXCLUDE_PCI := \
-pciutils
INCLUDE_PCI_NET := \
kmod-bnx2
EXCLUDE_PCI_NET := \
-kmod-bnx2
INCLUDE_TLS := \
ca-bundle \
libustream-openssl
EXCLUDE_TLS := \
-ca-bundle \
-libustream-openssl
ifeq ($(GLUON_TARGET),ath79-generic)
GLUON_SITE_PACKAGES += $(INCLUDE_TLS)
GLUON_devolo-wifi-pro-1750e_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_gl.inet-gl-ar150_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_gl.inet-gl-ar300m-lite_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_gl.inet-gl-ar750_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_joy-it-jt-or750i_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_netgear-wndr3700-v2_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_tp-link-archer-a7-v5_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_tp-link-archer-c5-v1_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_tp-link-archer-c7-v2_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_tp-link-archer-c7-v5_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_tp-link-archer-c59-v1_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_tp-link-tl-wr842n-v3_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_tp-link-tl-wr1043nd-v4_SITE_PACKAGES += $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
GLUON_d-link-dir825b1_SITE_PACKAGES += $(EXCLUDE_TLS)
GLUON_tp-link-re355-v1_SITE_PACKAGES += $(EXCLUDE_TLS)
GLUON_tp-link-re450-v1_SITE_PACKAGES += $(EXCLUDE_USB) $(EXCLUDE_USB_NET) $(EXCLUDE_USB_SERIAL) $(EXCLUDE_USB_STORAGE)
endif
# no pkglists for target ath79-mikrotik
ifeq ($(GLUON_TARGET),ath79-nand)
GLUON_SITE_PACKAGES += $(INCLUDE_TLS) $(INCLUDE_USB) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
endif
ifeq ($(GLUON_TARGET),bcm27xx-bcm2708)
GLUON_SITE_PACKAGES += $(INCLUDE_TLS) $(INCLUDE_USB) $(INCLUDE_USB_HID) $(INCLUDE_USB_NET) $(INCLUDE_USB_SERIAL) $(INCLUDE_USB_STORAGE)
endif
# some extra sauce to make offloader/kvm images extra spicy
USB_PACKAGES_BASIC := \
kmod-usb-core \
kmod-usb2
USB_PACKAGES_STORAGE := \
block-mount \
blkid \
kmod-fs-ext4 \
kmod-fs-vfat \
kmod-usb-storage \
kmod-usb-storage-extras \
kmod-nls-cp1250 \
kmod-nls-cp1251 \
kmod-nls-cp437 \
kmod-nls-cp775 \
kmod-nls-cp850 \
kmod-nls-cp852 \
kmod-nls-cp866 \
kmod-nls-iso8859-1 \
kmod-nls-iso8859-13 \
kmod-nls-iso8859-15 \
kmod-nls-iso8859-2 \
kmod-nls-koi8r \
kmod-nls-utf8 \
swap-utils
# network support for USB devices
USB_PACKAGES_NET := \
kmod-mii \
kmod-nls-base \
kmod-usb-net \
kmod-usb-net-asix \
kmod-usb-net-asix-ax88179 \
kmod-usb-net-cdc-eem \
kmod-usb-net-cdc-ether \
kmod-usb-net-cdc-mbim \
kmod-usb-net-cdc-ncm \
kmod-usb-net-cdc-subset \
kmod-usb-net-dm9601-ether \
kmod-usb-net-hso \
kmod-usb-net-huawei-cdc-ncm \
kmod-usb-net-ipheth \
kmod-usb-net-kalmia \
kmod-usb-net-kaweth \
kmod-usb-net-mcs7830 \
kmod-usb-net-pegasus \
kmod-usb-net-qmi-wwan \
kmod-usb-net-rndis \
kmod-usb-net-rtl8152 \
kmod-usb-net-sierrawireless \
kmod-usb-net-smsc95xx
USB_PACKAGES_NET_ADD := \
kmod-rtl8192cu \
kmod-rtl8187 \
kmod-ath9k-htc \
kmod-ath9k-common \
kmod-ath \
kmod-rt73-usb \
kmod-carl9170 \
kmod-brcmfmac
PCI_PACKAGES_NET := \
kmod-3c59x \
kmod-e100 \
kmod-e1000 \
kmod-e1000e \
kmod-forcedeth \
kmod-natsemi \
kmod-ne2k-pci \
kmod-pcnet32 \
kmod-r8169 \
kmod-sis900 \
kmod-sky2 \
kmod-tg3 \
kmod-tulip \
kmod-via-rhine
TOOLS_PACKAGES := \
iperf \
socat \
tcpdump \
usbutils \
vnstat
# x86-generic
ifeq ($(GLUON_TARGET),x86-generic)
# support the usb stack on x86 devices
# and add a few common USB and PCI NICs
GLUON_SITE_PACKAGES += \
kmod-usb-hid \
kmod-hid-generic \
kmod-button-hotplug \
$(USB_PACKAGES_BASIC) \
$(USB_PACKAGES_STORAGE) \
$(USB_PACKAGES_NET) \
$(PCI_PACKAGES_NET) \
$(TOOLS_PACKAGES) \
$(USB_PACKAGES_NET_ADD)
endif
# x86-64
ifeq ($(GLUON_TARGET),x86-64)
# support the usb stack on x86-64 devices
# and add a few common USB and PCI NICs
GLUON_SITE_PACKAGES += \
kmod-usb-hid \
kmod-hid-generic \
kmod-button-hotplug \
$(USB_PACKAGES_BASIC) \
$(USB_PACKAGES_STORAGE) \
$(USB_PACKAGES_NET) \
$(PCI_PACKAGES_NET) \
$(TOOLS_PACKAGES) \
$(USB_PACKAGES_NET_ADD)
endif