forked from FreifunkMD/site-ffmd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspecific_site.mk
267 lines (238 loc) · 5.62 KB
/
specific_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
#####################################################################################################################
# Hier werden weitere Target- und Device-spezifische Packages eingebunden.
#####################################################################################################################
# Basic support for USB stack
USB_PACKAGES_BASIC := \
kmod-usb-core \
kmod-usb2 \
usbutils
# Storage support for USB devices
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 \
usb-modeswitch
# Network support for PCI devices
PCI_PACKAGES_NET := \
kmod-3c59x \
kmod-e100 \
kmod-e1000 \
kmod-e1000e \
kmod-forcedeth \
kmod-igb \
kmod-natsemi \
kmod-ne2k-pci \
kmod-pcnet32 \
kmod-r8169 \
kmod-sis900 \
kmod-sky2 \
kmod-tg3 \
kmod-tulip \
kmod-via-rhine \
kmod-via-velocity \
kmod-8139too \
kmod-atl2
# Network support for USB devices
USB_PACKAGES_NET := \
kmod-ath9k-htc \
kmod-ath9k-common \
kmod-ath \
kmod-brcmfmac \
kmod-carl9170 \
kmod-mii \
kmod-nls-base \
kmod-rt73-usb \
kmod-rtl8192cu \
kmod-rtl8187 \
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 \
kmod-rt2800-usb \
kmod-rt2500-usb
# USB serial packages
USB_SERIAL_PACKAGES := \
kmod-usb-serial \
kmod-usb-serial-option \
kmod-usb-serial-ftdi \
kmod-usb-serial-pl2303
# USB Keyboard packages
USB_KEYBOARD_PACKAGES := \
kmod-usb-hid \
kmod-hid-generic
# kmod-ledtrig-usbdev
# x86 spezifisch
PCI_X86_PACKAGES :=\
pciutils \
kmod-usb-ohci-pci \
kmod-bnx2
# Util packages
UTIL_PACKAGES := \
nano \
iperf3 \
# Debug packages
DEBUG_PACKAGES := \
tcpdump \
libnl \
gdb \
valgrind \
iftop \
binutils \
strace \
screen \
kmod-cfg80211
LARGEDEVICE_PACKAGES := \
# wg-broker-server
# Main combination
MAIN_COMBO_PACKAGES := \
$(USB_PACKAGES_BASIC) \
$(USB_PACKAGES_STORAGE) \
$(USB_PACKAGES_NET) \
$(UTIL_PACKAGES)
#####################################################################################################################
# GLUON-Target specific settings:
#####################################################################################################################
# ar71xx-tiny
ifeq ($(GLUON_TARGET),ar71xx-tiny)
GLUON_SITE_PACKAGES += zram-swap
# Don't add aditional packages here.
# The ar71xx-tiny images require all free Flash memory space.
endif
# ar71xx Generic
ifeq ($(GLUON_TARGET),ar71xx-generic)
GLUON_SITE_PACKAGES += \
$(UTIL_PACKAGES) \
$(LARGEDEVICE_PACKAGES)
endif
# ar71xx NAND
ifeq ($(GLUON_TARGET),ar71xx-nand)
GLUON_SITE_PACKAGES +=
endif
# x86-generic
ifeq ($(GLUON_TARGET),x86-generic)
# support the usb stack on x86 devices
# and add a few common USB NICs
GLUON_SITE_PACKAGES += \
$(MAIN_COMBO_PACKAGES) \
$(USB_KEYBOARD_PACKAGES) \
$(USB_SERIAL_PACKAGES) \
$(PCI_PACKAGES_NET) \
$(PCI_X86_PACKAGES) \
$(DEBUG_PACKAGES) \
$(LARGEDEVICE_PACKAGES)
endif
# x86-64
ifeq ($(GLUON_TARGET),x86-64)
# support the usb stack on x86-64 devices
# and add a few common USB NICs
GLUON_SITE_PACKAGES += \
$(MAIN_COMBO_PACKAGES) \
$(USB_KEYBOARD_PACKAGES) \
$(USB_SERIAL_PACKAGES) \
$(PCI_PACKAGES_NET) \
$(PCI_X86_PACKAGES) \
$(DEBUG_PACKAGES) \
$(LARGEDEVICE_PACKAGES)
endif
# x86-geode
# support the usb stack on x86-geode devices
# and add a few common USB NICs
ifeq ($(GLUON_TARGET),x86-geode)
GLUON_SITE_PACKAGES += \
$(MAIN_COMBO_PACKAGES) \
$(USB_KEYBOARD_PACKAGES) \
$(USB_SERIAL_PACKAGES) \
$(PCI_PACKAGES_NET) \
$(PCI_X86_PACKAGES) \
$(DEBUG_PACKAGES) \
-kmod-e1000e
endif
# mpc85xx-generic
ifeq ($(GLUON_TARGET),mpc85xx-generic)
GLUON_SITE_PACKAGES +=
endif
# Raspberry Pi A/B/B+
ifeq ($(GLUON_TARGET),brcm2708-bcm2708)
GLUON_SITE_PACKAGES += \
$(MAIN_COMBO_PACKAGES) \
$(USB_KEYBOARD_PACKAGES) \
$(USB_SERIAL_PACKAGES) \
$(LARGEDEVICE_PACKAGES)
endif
# Raspberry Pi 2
ifeq ($(GLUON_TARGET),brcm2708-bcm2709)
GLUON_SITE_PACKAGES += \
$(MAIN_COMBO_PACKAGES) \
$(USB_KEYBOARD_PACKAGES) \
$(USB_SERIAL_PACKAGES) \
$(LARGEDEVICE_PACKAGES)
endif
# Raspberry Pi 3
ifeq ($(GLUON_TARGET),brcm2708-bcm2710)
GLUON_SITE_PACKAGES += \
$(MAIN_COMBO_PACKAGES) \
$(USB_KEYBOARD_PACKAGES) \
$(USB_SERIAL_PACKAGES) \
$(LARGEDEVICE_PACKAGES)
endif
# Banana Pi
ifeq ($(GLUON_TARGET),sunxi)
GLUON_SITE_PACKAGES += \
$(MAIN_COMBO_PACKAGES) \
$(USB_KEYBOARD_PACKAGES) \
$(USB_SERIAL_PACKAGES)
endif
# ramips-mt7620
ifeq ($(GLUON_TARGET),ramips-mt7620)
GLUON_SITE_PACKAGES +=
endif
# Ubiquiti EdgeRouter X (SFP)
ifeq ($(GLUON_TARGET),ramips-mt7621)
GLUON_SITE_PACKAGES += \
$(UTIL_PACKAGES)
endif
# ramips-mt7628
ifeq ($(GLUON_TARGET),ramips-mt7628)
GLUON_SITE_PACKAGES +=
endif
#ramips-rt305x
ifeq ($(GLUON_TARGET),ramips-rt305x)
GLUON_SITE_PACKAGES +=
endif
#####################################################################################################################
# GLUON-Device specific settings:
#####################################################################################################################