forked from rubo77/freifunk-gluon-site
-
Notifications
You must be signed in to change notification settings - Fork 2
/
site.mk
217 lines (187 loc) · 5.64 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
# site.mk for Freifunk Kiel
# Always call `make` from the command line with the desired release version!
# otherwise this is generated:
#DEFAULT_GLUON_RELEASE := 2020.2.3
DEFAULT_GLUON_RELEASE := 2020.2.3~rc$(shell date '+%y%m%d')
# Allow overriding the release number from the command line
GLUON_RELEASE ?= $(DEFAULT_GLUON_RELEASE)
GLUON_PRIORITY ?= 0
GLUON_BRANCH ?= nightly
GLUON_DEPRECATED ?= upgrade
export GLUON_BRANCH
GLUON_TARGET ?= ar71xx-generic
export GLUON_TARGET
# Region code required for some images; supported values: us eu
GLUON_REGION ?= eu
# enable generation of images for ath10k devices with 802.11s mode
GLUON_WLAN_MESH ?= 11s
GLUON_LANGS ?= en de
# for feature packs see https://github.com/freifunk-gluon/gluon/blob/v2020.2.x/package/features
GLUON_FEATURES := \
config-mode-geo-location-osm \
web-private-wifi \
ebtables-filter-multicast \
ebtables-filter-ra-dhcp \
mesh-batman-adv-15 \
mesh-vpn-fastd \
radv-filterd \
respondd \
status-page \
web-advanced \
web-wizard \
autoupdater
GLUON_SITE_PACKAGES := \
respondd-module-airtime \
iwinfo \
iptables \
autoupdater-proxy
# from sargon:
GLUON_SITE_PACKAGES += \
roamguide \
ddhcpd-batman-adv
# from https://github.com/Freifunk-Nord/eulenfunk-packages
GLUON_SITE_PACKAGES += \
gluon-quickfix
# from https://github.com/Freifunk-Nord/gluon-ssid-changer:
GLUON_SITE_PACKAGES += \
gluon-ssid-changer
# from ffki-packages:
GLUON_SITE_PACKAGES += \
gluon-config-mode-ppa \
# gluon-config-mode-contact-info-anonymous-hint
# from T-X alt-esc package:
#GLUON_SITE_PACKAGES += \
# gluon-alt-esc-client \
# gluon-alt-esc-provider
# from ffm-packages
GLUON_SITE_PACKAGES += \
ffffm-button-bind
# some models and targets have to be excluded:
ifeq ($(GLUON_TARGET),ar71xx-tiny)
GLUON_tp-link-tl-wr841n-nd-v7_SITE_PACKAGES = -ffffm-button-bind
endif
# a5-v11 gets too large
ifeq ($(GLUON_TARGET),ramips-rt305x)
GLUON_a5-v11_SITE_PACKAGES += \
-ffffm-button-bind \
-gluon-config-mode-ppa \
-config-mode-geo-location-osm \
-status-page
endif
# support for USB UMTS/3G devices
USB_PACKAGES_3G := \
kmod-usb-serial \
kmod-usb-serial-wwan \
kmod-usb-serial-option \
chat \
ppp
# support for USB GPS devices
USB_PACKAGES_GPS := \
kmod-usb-acm \
ugps
# support for HID devices (keyboard, mouse, ...)
USB_PACKAGES_HID := \
kmod-usb-hid \
kmod-hid-generic
# support for USB tethering
USB_PACKAGES_TETHERING := \
kmod-usb-net \
kmod-usb-net-asix \
kmod-usb-net-dm9601-ether
USB_X86_GENERIC_NETWORK_MODULES := \
kmod-usb-ohci-pci \
kmod-sky2 \
kmod-atl2 \
kmod-igb \
kmod-3c59x \
kmod-e100 \
kmod-e1000 \
kmod-e1000e \
kmod-natsemi \
kmod-ne2k-pci \
kmod-pcnet32 \
kmod-8139too \
kmod-r8169 \
kmod-sis900 \
kmod-tg3 \
kmod-via-rhine \
kmod-via-velocity \
kmod-forcedeth
# storage support for USB
USB_PACKAGES_STORAGE := \
block-mount \
kmod-fs-ext4 \
kmod-fs-vfat \
kmod-usb-storage \
kmod-usb-storage-extras \
blkid \
swap-utils \
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
# from ffki-packages:
USB_PACKAGES_STORAGE += \
gluon-usb-media \
gluon-config-mode-usb-media
# extra packages for fat clients
FAT_PACKAGES := \
tcpdump \
gre \
wireguard
#zram for tiny devices
ifeq ($(GLUON_TARGET),ar71xx-tiny)
GLUON_SITE_PACKAGES += zram-swap
endif
# add addition network drivers and usb stuff only to targets where disk space does not matter
ifeq ($(GLUON_TARGET),$(filter $(GLUON_TARGET),x86-generic x86-64))
# support the USB stack on x86 devices
# and add a few common USB NICs
GLUON_SITE_PACKAGES += \
$(USB_PACKAGES_STORAGE) \
$(USB_PACKAGES_HID) \
$(USB_PACKAGES_TETHERING) \
$(USB_PACKAGES_3G) \
$(USB_PACKAGES_GPS) \
$(USB_X86_GENERIC_NETWORK_MODULES) \
$(FAT_PACKAGES)
endif
# use the target names of https://github.com/freifunk-gluon/gluon/blob/master/targets/ar71xx-generic#L163
ifeq ($(GLUON_TARGET),ar71xx-generic)
GLUON_tp-link-tl-wr842n-nd-v1_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_tp-link-tl-wr842n-nd-v2_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_tp-link-tl-wr842n-nd-v3_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_tp-link-tl-wr1043n-nd-v2_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_tp-link-tl-wr1043n-nd-v3_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_tp-link-tl-wr1043n-nd-v4_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_tp-link-tl-wdr4300-v1_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_tp-link-tl-wr2543n-nd-v1_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_linksys-wrt160nl_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_d-link-dir-825-rev-b1_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_d-link-dir-505-rev-a1_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_d-link-dir-505-rev-a2_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_gl-inet-6408a-v1_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_gl-inet-6416a-v1_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_netgear-wndr3700_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_netgear-wndr3700v2_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_netgear-wndr3700v4_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_buffalo-wzr-hp-g450h_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_buffalo-wzr-hp-g300nh_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_tp-link-archer-c7-v2_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
GLUON_gl-ar300m_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
endif
ifeq ($(GLUON_TARGET),ramips-mt76x8)
GLUON_netgear-r6120_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
endif
ifeq ($(GLUON_TARGET),mpc85xx-generic)
GLUON_tp-link-tl-wdr4900-v1_SITE_PACKAGES := $(USB_PACKAGES_STORAGE)
endif