This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
forked from freifunk-goettingen/site-ffgoe
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsite.mk
120 lines (104 loc) · 2.69 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
## gluon site.mk makefile example
## GLUON_SITE_PACKAGES
# specify gluon/openwrt packages to include here
# The gluon-mesh-batman-adv-* package must come first because of the dependency resolution
GLUON_SITE_PACKAGES := \
gluon-autoupdater \
gluon-config-mode-core \
gluon-config-mode-hostname \
gluon-config-mode-autoupdater \
gluon-config-mode-mesh-vpn \
gluon-config-mode-geo-location \
gluon-config-mode-contact-info \
gluon-ebtables-filter-multicast \
gluon-ebtables-filter-ra-dhcp \
gluon-luci-admin \
gluon-luci-autoupdater \
gluon-luci-portconfig \
gluon-mesh-batman-adv-15 \
gluon-mesh-vpn-fastd \
gluon-next-node \
gluon-radvd \
gluon-respondd \
gluon-setup-mode \
gluon-status-page \
haveged \
iwinfo \
iptables
# add offline ssid only if the target has wifi device
ifeq "$(GLUON_TARGET)" "ar71xx-generic"
ADD_WIFI_PKGS = yes
endif
ifeq "$(GLUON_TARGET)" "ar71xx-nand"
ADD_WIFI_PKGS = yes
endif
ifeq "$(GLUON_TARGET)" "mpc85xx-generic"
ADD_WIFI_PKGS = yes
endif
ifeq "$(ADD_WIFI_PKGS)" "yes"
GLUON_SITE_PACKAGES += \
gluon-luci-wifi-config \
gluon-ssid-changer
endif
# RaspberryPi Model 1B
ifeq ($(GLUON_TARGET),brcm2708-bcm2708)
GLUON_SITE_PACKAGES += \
gluon-luci-wifi-config \
gluon-ssid-changer \
iw \
kmod-ath \
kmod-ath9k-common \
kmod-ath9k-htc \
kmod-cfg80211 \
kmod-crypto-aes \
kmod-crypto-arc4 \
kmod-gpio-button-hotplug \
kmod-mac80211 \
kmod-usb-core \
kmod-usb2 \
kmod-usb-hid \
kmod-usb-net \
kmod-usb-net-asix \
kmod-usb-net-dm9601-ether \
kmod-rtlwifi-usb \
kmod-rtlwifi \
swconfig
endif
# add network drivers and usb stuff only to x86-generic
# (where disk space probably doesn't matter)
ifeq ($(GLUON_TARGET),x86-generic)
GLUON_SITE_PACKAGES += \
kmod-forcedeth \
kmod-sky2 \
kmod-r8169 \
kmod-usb-core \
kmod-usb2 \
kmod-usb-hid \
kmod-usb-net \
kmod-usb-net-asix \
kmod-usb-net-dm9601-ether \
kmod-8139too
endif
## DEFAULT_GLUON_RELEASE
# version string to use for images
# gluon relies on
# opkg compare-versions "$1" '>>' "$2"
# to decide if a version is newer or not.
DEFAULT_GLUON_RELEASE := v2016.2-2
## GLUON_RELEASE
# call make with custom GLUON_RELEASE flag, to use your own release version scheme.
# e.g.:
# $ make images GLUON_RELEASE=23.42+5
# would generate images named like this:
# gluon-ff%site_code%-23.42+5-%router_model%.bin
# Allow overriding the release number from the command line
GLUON_RELEASE ?= $(DEFAULT_GLUON_RELEASE)
# Default priority for updates.
GLUON_PRIORITY ?= 0
# Languages to include
GLUON_LANGS ?= de en fr
# Turn on building for ATH10K Devices by specifying mesh type
GLUON_ATH10K_MESH ?= 11s
# Print the default release (for external scripts)
print_default_release:
@echo $(DEFAULT_GLUON_RELEASE)