3
0
mirror of https://github.com/ffrgb/site-ffrgb.git synced 2024-11-16 02:19:13 +01:00

Compare commits

..

32 Commits

Author SHA1 Message Date
1abf64c76c v2023.2.4 and dockerized build 2024-11-07 11:57:10 +01:00
527059ce72
Merge pull request #26 from ffrgb/v2023.1.x
V2023.1.x
2023-09-11 13:25:22 +02:00
09b3f3aae6 Add patching facility, remove RE450 and RE335 due to stupid flash layout 2023-09-11 13:13:06 +02:00
Bastian Mäuser
be50c08e57 Add extra sauce to x86 offloader/kvm images 2023-09-08 18:33:16 +02:00
8f84463643 Revert EFI 2023-09-08 12:04:10 +02:00
2a5991fa35 Update gluon-packages 2023-08-26 16:48:15 +02:00
ebecb011c9
Merge pull request #25 from ffrgb/next
Next
2023-08-26 16:43:43 +02:00
7d937c39ce Add target file, add gitignore 2023-08-26 16:42:37 +02:00
125225a9d5 update community package feed 2023-08-25 18:46:14 +02:00
0191f7c568 wip 2023-08-21 17:03:50 +02:00
06659e70a4 Update to latest master 2022-04-09 11:46:04 +00:00
86e0bd8b0b Adjustments f/ new Openwrt 2022-03-30 11:10:23 +00:00
0a8cb606ea Update.. 2022-03-29 18:25:49 +00:00
ee6ec34914 Merge branch 'vxlan-test' 2022-02-22 09:05:38 +00:00
c769acbe10 Shift to latest Gluon Master 2022-02-22 08:35:51 +00:00
c9e8b3dd1c Gluon v2021.1.1 2021-08-16 09:54:40 +00:00
8eb1336593 Remove NTP from Domain config 2021-08-15 12:40:32 +00:00
Bastian Mäuser
3f53397b57 Integrate external NTP Server 2021-08-11 16:27:53 +02:00
6f9782b2d1 New Package feed 2021-08-11 14:26:22 +00:00
Bastian Mäuser
ea050a19a0 Add gluon-config-mode-mesh-vpn 2021-08-09 14:58:39 +02:00
Bastian Mäuser
231417fc52 New Wireguard Packages feed 2021-08-09 13:43:51 +02:00
2168b819d3 Update Community feed 2021-07-27 08:55:39 +00:00
343f062428 Update Gluon to v2021.1 2021-07-24 23:24:40 +00:00
ffeefe1492
Merge pull request #22 from moepman/vxlan-test
update wireguard endpoints and pubkeys
2021-07-23 21:28:59 +02:00
8888177535 update wireguard endpoints and pubkeys 2021-07-23 20:32:07 +02:00
a74c42f18b VXLAN Test 2021-05-08 20:17:10 +00:00
e222d2db45 bump community package feeed 2020-11-22 18:44:27 +00:00
b1f4879de0 Use 2020.2.2, add broker entpoind host 2020-11-22 18:37:27 +00:00
be887cb984 wip: update package feed commit id 2020-11-17 14:14:17 +00:00
d2ccca6ac7 wip: testbuild 2020-11-17 13:28:42 +00:00
82625076c9 Add community package feed for VXoWG 2020-11-16 23:09:05 +00:00
24a8d6dff9 Added Domainconfig to Test-gw 2020-11-16 23:03:33 +00:00
14 changed files with 493 additions and 164 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
site-ffrgb.code-workspace
gluon-build
output

View File

@ -1,47 +1,29 @@
GLUON_BUILD_DIR := gluon-build GLUON_BUILD_DIR := gluon-build
GLUON_GIT_URL := https://github.com/freifunk-gluon/gluon GLUON_GIT_URL := https://github.com/freifunk-gluon/gluon
GLUON_GIT_REF := v2021.1 GLUON_GIT_REF := v2023.2.4
PATCH_DIR := ./patches
SECRET_KEY_FILE ?= ${HOME}/.gluon-secret-key SECRET_KEY_FILE ?= ${HOME}/.gluon-secret-key
GLUON_TARGETS ?= $(shell cat targets | tr '\n' ' ')
GLUON_TARGETS ?= \
ar71xx-generic \
ar71xx-tiny \
ar71xx-nand \
ath79-generic \
brcm2708-bcm2708 \
brcm2708-bcm2709 \
ipq806x-generic \
lantiq-xrx200 \
lantiq-xway \
mpc85xx-generic \
mpc85xx-p1020 \
ramips-mt7620 \
ramips-mt7621 \
ramips-mt76x8 \
ramips-rt305x \
ipq40xx-generic \
sunxi-cortexa7 \
x86-64 \
x86-generic \
x86-geode \
GLUON_RELEASE := $(shell git describe --tags 2>/dev/null)
ifneq (,$(shell git describe --exact-match --tags 2>/dev/null)) ifneq (,$(shell git describe --exact-match --tags 2>/dev/null))
GLUON_BRANCH := stable GLUON_AUTOUPDATER_ENABLED := 1
GLUON_RELEASE := $(shell git describe --tags 2>/dev/null)
else else
GLUON_BRANCH := experimental GLUON_AUTOUPDATER_ENABLED := 0
EXP_FALLBACK = $(shell date '+%Y%m%d')
BUILD_NUMBER ?= $(EXP_FALLBACK)
GLUON_RELEASE := $(shell git describe --tags)~exp$(BUILD_NUMBER)
endif endif
JOBS ?= $(shell cat /proc/cpuinfo | grep processor | wc -l) JOBS ?= $(shell cat /proc/cpuinfo | grep processor | wc -l)
#JOBS = 1 GLUON_MAKE := ${MAKE} -j ${JOBS} -C ${GLUON_BUILD_DIR} \
GLUON_MAKE := ${MAKE} V=s BROKEN=0 -j ${JOBS} -C ${GLUON_BUILD_DIR} \
GLUON_RELEASE=${GLUON_RELEASE} \ GLUON_RELEASE=${GLUON_RELEASE} \
GLUON_BRANCH=${GLUON_BRANCH} \ GLUON_AUTOUPDATER_BRANCH=${GLUON_AUTOUPDATER_BRANCH} \
GLUON_AUTOUPDATER_ENABLED=${GLUON_AUTOUPDATER_ENABLED}
all: info all: info
@ -50,46 +32,52 @@ all: info
info: info:
@echo @echo
@echo '#########################' @echo '#########################'
@echo '# FFRGB Firmare build' @echo '# FFRGB Firmware build'
@echo '# Building release ${GLUON_RELEASE} for branch ${GLUON_BRANCH}' @echo '# Building release ${GLUON_RELEASE} for branch ${GLUON_AUTOUPDATER_BRANCH}'
@echo '# make params: ${GLUON_MAKE}'
@echo @echo
build: gluon-prepare build: gluon-prepare output-clean
for target in ${GLUON_TARGETS}; do \ for target in ${GLUON_TARGETS}; do \
echo ""Building target $$target""; \ echo ""Building target $$target""; \
${GLUON_MAKE} GLUON_TARGET="$$target"; \ ${GLUON_MAKE} download all GLUON_TARGET="$$target"; \
done done
buildonly:
for target in ${GLUON_TARGETS}; do \
echo ""Building target $$target""; \
${GLUON_MAKE} GLUON_TARGET="$$target"; \
done
manifest: build manifest: build
${GLUON_MAKE} manifest for branch in next experimental testing stable; do \
mv ${GLUON_BUILD_DIR}/output . ${GLUON_MAKE} manifest GLUON_AUTOUPDATER_BRANCH=$$branch;\
done
mv -f ${GLUON_BUILD_DIR}/output/* ./output/
sign: manifest sign: manifest
${GLUON_BUILD_DIR}/contrib/sign.sh ${SECRET_KEY_FILE} images/sysupgrade/${GLUON_BRANCH}.manifest ${GLUON_BUILD_DIR}/contrib/sign.sh ${SECRET_KEY_FILE} output/images/sysupgrade/${GLUON_AUTOUPDATER_BRANCH}.manifest
${GLUON_BUILD_DIR}: ${GLUON_BUILD_DIR}:
git clone ${GLUON_GIT_URL} ${GLUON_BUILD_DIR} mkdir -p ${GLUON_BUILD_DIR}
gluon-prepare: images-clean ${GLUON_BUILD_DIR} # Note: "|" means "order only", e.g. "do not care about folder timestamps"
(cd ${GLUON_BUILD_DIR} \ # https://www.gnu.org/savannah-checkouts/gnu/make/manual/html_node/Prerequisite-Types.html
&& git remote set-url origin ${GLUON_GIT_URL} \ ${GLUON_BUILD_DIR}/.git: | ${GLUON_BUILD_DIR}
&& git fetch origin \ git init ${GLUON_BUILD_DIR}
&& git checkout -q ${GLUON_GIT_REF}) cd ${GLUON_BUILD_DIR} && git remote add origin ${GLUON_GIT_URL}
gluon-update: | ${GLUON_BUILD_DIR}/.git
cd ${GLUON_BUILD_DIR} && git fetch --tags origin ${GLUON_GIT_REF}
cd ${GLUON_BUILD_DIR} && git reset --hard FETCH_HEAD
cd ${GLUON_BUILD_DIR} && git clean -fd
gluon-prepare: gluon-update
make gluon-patch
ln -sfT .. ${GLUON_BUILD_DIR}/site ln -sfT .. ${GLUON_BUILD_DIR}/site
${GLUON_MAKE} update ${GLUON_MAKE} update
gluon-patch:
scripts/apply_patches.sh ${GLUON_BUILD_DIR} ${PATCH_DIR}
gluon-clean: gluon-clean:
rm -rf ${GLUON_BUILD_DIR} rm -rf ${GLUON_BUILD_DIR}
images-clean: output-clean:
rm -rf images mkdir -p output/
rm -rf output/*
clean: gluon-clean images-clean clean: gluon-clean output-clean

6
dockerfile_build Normal file
View File

@ -0,0 +1,6 @@
FROM ubuntu:22.04
ADD ./scripts/install_build_dependencies.sh /
RUN /install_build_dependencies.sh \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*

View File

@ -6,8 +6,6 @@
prefix6 = 'fdef:f10f:1337:cafe::/64', prefix6 = 'fdef:f10f:1337:cafe::/64',
extra_prefixes6 = {'2a00:9d80:6000:0101::/64', '2001:678:ddc:11::/64', '2001:678:e64:12::/64'}, extra_prefixes6 = {'2a00:9d80:6000:0101::/64', '2001:678:ddc:11::/64', '2001:678:e64:12::/64'},
ntp_servers = {'1.ntp.services.ffrgb','2.ntp.services.ffrgb'},
wifi24 = { wifi24 = {
channel = 1, channel = 1,
htmode = 'HT20', htmode = 'HT20',
@ -53,6 +51,19 @@
mesh_vpn = { mesh_vpn = {
mtu = 1312, mtu = 1312,
wireguard = {
enabled = 'true',
iface = 'wg_mesh_vpn',
limit = '1', -- actually unused
peers = {
{
publickey ='zqBVQJlzkZxk5YT04dv4cIrYoDYpx0xBxK/6gV2PZXE=',
endpoint ='gw11.ffrgb.net:20010',
broker ='gw11.ffrgb.net',
link_address='fe80::11',
},
},
},
fastd = { fastd = {
groups = { groups = {
backbone = { backbone = {

View File

@ -7,8 +7,6 @@
prefix6 = 'fdef:f30f:1337:cafe::/64', prefix6 = 'fdef:f30f:1337:cafe::/64',
extra_prefixes6 = {'2a00:9d80:6000:0103::/64', '2001:678:ddc:31::/64', '2001:678:e64:32::/64'}, extra_prefixes6 = {'2a00:9d80:6000:0103::/64', '2001:678:ddc:31::/64', '2001:678:e64:32::/64'},
ntp_servers = {'1.ntp.services.ffrgb','2.ntp.services.ffrgb'},
wifi24 = { wifi24 = {
channel = 1, channel = 1,
htmode = 'HT20', htmode = 'HT20',
@ -24,7 +22,7 @@
channel = 44, channel = 44,
htmode = 'HT20', htmode = 'HT20',
ap = { ap = {
ssid = 'test.freifunk.net', ssid = 'test.ffrgb.net',
}, },
mesh = { mesh = {
id = 'mesh_ffrgb_tst_11s', id = 'mesh_ffrgb_tst_11s',
@ -54,6 +52,19 @@
mesh_vpn = { mesh_vpn = {
mtu = 1312, mtu = 1312,
wireguard = {
enabled = 'true',
iface = 'wg_mesh_vpn',
limit = '1', -- actually unused
peers = {
{
publickey ='SfVwYUjy2b9AZ+R/JTwmLXz5jm1UEmnfuRMGpN9B4X4=',
endpoint ='gw31.ffrgb.net:20030',
broker ='gw31.ffrgb.net',
link_address='fe80::31',
},
},
},
fastd = { fastd = {
groups = { groups = {
backbone = { backbone = {

View File

@ -6,8 +6,6 @@
prefix6 = 'fdef:f20f:1337:cafe::/64', prefix6 = 'fdef:f20f:1337:cafe::/64',
extra_prefixes6 = {'2a00:9d80:6000:0102::/64', '2001:678:ddc:21::/64', '2001:678:e64:22::/64'}, extra_prefixes6 = {'2a00:9d80:6000:0102::/64', '2001:678:ddc:21::/64', '2001:678:e64:22::/64'},
ntp_servers = {'1.ntp.services.ffrgb','2.ntp.services.ffrgb'},
wifi24 = { wifi24 = {
channel = 1, channel = 1,
htmode = 'HT20', htmode = 'HT20',
@ -53,6 +51,19 @@
mesh_vpn = { mesh_vpn = {
mtu = 1312, mtu = 1312,
wireguard = {
enabled = 'true',
iface = 'wg_mesh_vpn',
limit = '1', -- actually unused
peers = {
{
publickey ='MqzXEqO4US16rSGxsF2oHuSdMAy/Qimy+GUSeCob+U0=',
endpoint ='gw21.ffrgb.net:20020',
broker ='gw21.ffrgb.net',
link_address='fe80::21',
},
},
},
fastd = { fastd = {
groups = { groups = {
backbone = { backbone = {

View File

@ -1,4 +1,7 @@
GLUON_SITE_FEEDS='ffrgb' GLUON_SITE_FEEDS='ffrgb community'
PACKAGES_FFRGB_REPO=https://github.com/ffrgb/gluon-packages.git PACKAGES_FFRGB_REPO=https://github.com/ffrgb/gluon-packages.git
PACKAGES_FFRGB_BRANCH=master PACKAGES_FFRGB_BRANCH=master
PACKAGES_FFRGB_COMMIT=af2c608f31e264a279b919814896e4470c455e72 PACKAGES_FFRGB_COMMIT=49d44d2fcad156e3b7d7234f42f7b6f091e16152
PACKAGES_COMMUNITY_REPO=https://github.com/ffrgb/community-packages.git
PACKAGES_COMMUNITY_BRANCH=gluon-mesh-vpn-wireguard-vxlan
PACKAGES_COMMUNITY_COMMIT=ae20a79ff283998fb5cc9625dbc42903ae5f18e9

View File

@ -0,0 +1,41 @@
From b5fb157e3b67b2d39f5b7c391ef39f0b19e4cf2e Mon Sep 17 00:00:00 2001
From: Christian <github@grische.xyz>
Date: Fri, 18 Aug 2023 17:02:22 +0200
Subject: [PATCH] targets: drop TP-Link RE450 and RE355
The flash size is not sufficient to host the minimal set of FFMuc packages
---
targets/ath79-generic | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/targets/ath79-generic b/targets/ath79-generic
index 7a5140c9..32a03ce3 100644
--- a/targets/ath79-generic
+++ b/targets/ath79-generic
@@ -474,23 +474,6 @@ device('tp-link-eap225-outdoor-v1', 'tplink_eap225-outdoor-v1', {
packages = ATH10K_PACKAGES_QCA9888,
})
-device('tp-link-re355-v1', 'tplink_re355-v1', {
- manifest_aliases = {
- 'tp-link-re355', -- upgrade from OpenWrt 19.07
- },
- packages = ATH10K_PACKAGES_SMALLBUFFERS_QCA9880,
- broken = true, -- OOM with 5GHz enabled in most environments if device is 64M RAM variant
- class = 'tiny', -- Only 6M of usable Firmware space
-})
-
-device('tp-link-re450-v1', 'tplink_re450-v1', {
- packages = ATH10K_PACKAGES_QCA9880,
- manifest_aliases = {
- 'tp-link-re450', -- upgrade from OpenWrt 19.07
- },
- class = 'tiny', -- Only 6M of usable Firmware space
-})
-
device('tp-link-tl-wdr3500-v1', 'tplink_tl-wdr3500-v1')
device('tp-link-tl-wdr3600-v1', 'tplink_tl-wdr3600-v1')
device('tp-link-tl-wdr4300-v1', 'tplink_tl-wdr4300-v1')
--
2.25.1

View File

@ -0,0 +1,26 @@
diff --git a/targets/bcm27xx-bcm2711 b/targets/bcm27xx-bcm2711
new file mode 100644
index 00000000..ba631911
--- /dev/null
+++ b/targets/bcm27xx-bcm2711
@@ -0,0 +1,9 @@
+include 'bcm27xx.inc'
+
+device('raspberry-pi-4-model-b', 'rpi-4', {
+ manifest_aliases = {
+ 'raspberry-pi-4-model-b-rev-1.1',
+ 'raspberry-pi-4-model-b-rev-1.2',
+ 'raspberry-pi-4-model-b-rev-1.4',
+ },
+})
diff --git a/targets/targets.mk b/targets/targets.mk
index d5f605aa..d27865b0 100644
--- a/targets/targets.mk
+++ b/targets/targets.mk
@@ -25,5 +25,6 @@ $(eval $(call GluonTarget,x86,64))
ifeq ($(BROKEN),1)
$(eval $(call GluonTarget,bcm27xx,bcm2710)) # BROKEN: Untested
+$(eval $(call GluonTarget,bcm27xx,bcm2711)) # BROKEN: Untested
$(eval $(call GluonTarget,mvebu,cortexa9)) # BROKEN: No 11s support
endif

50
scripts/apply_patches.sh Normal file
View File

@ -0,0 +1,50 @@
#!/usr/bin/env bash
set -eEu
set -o pipefail
shopt -s nullglob
gluon_build_dir=${1:-gluon-build}
gluon_patch_dir="${2:-patches}"
function reset_gluon_build_dir() {
# Make sure we are in the correct folder
if [[ ! $(pwd) =~ .*${gluon_build_dir} ]]; then
echo "Resetting environment in the wrong folder. Aborting."
return 1
fi
echo "Resetting environment."
# Reset all files known to git, but keep manually commited changes.
git checkout .
# Delete all files not known to git
git clean -dx --force
echo "Environment reset."
}
# Relative patches folder does not work with git-apply below. Make sure it is an absolute path.
if [[ ! ${gluon_patch_dir} =~ ^/ ]]; then
gluon_patch_dir="${PWD}/${gluon_patch_dir}"
echo "Setting patch directory to ${gluon_patch_dir}"
fi
pushd "${gluon_build_dir}"
# Check if there are any patches at all
if ! compgen -G "${gluon_patch_dir}/*.patch" >/dev/null; then
echo "No patches found in ${gluon_patch_dir}/*.patch"
exit 1
fi
# Reset previously applied patches
reset_gluon_build_dir
# Apply all patches
echo "Applying Patches."
if ! git apply --ignore-space-change --ignore-whitespace --whitespace=nowarn --verbose "${gluon_patch_dir}"/*.patch; then
echo "Patching failed. Inspect ${gluon_build_dir} folder for failed patches."
exit 1
fi
echo "Patching finished."
popd

View File

@ -0,0 +1,40 @@
#!/usr/bin/env sh
set -eux
# Verify that the script is running in Ubuntu
. /etc/lsb-release
if [ "$DISTRIB_ID" != "Ubuntu" ]; then
echo "Error: This script only works in Ubuntu"
exit 1
fi
# Avoid tzdata from asking which timezone to choose
export DEBIAN_FRONTEND=noninteractive
apt-get update
# ca-certificates required for Github git cloning
apt-get -y --no-install-recommends install ca-certificates
# Install build environment
apt-get -y --no-install-recommends install \
bash \
bzip2 \
curl \
diffutils \
file \
g++ \
gawk \
gcc \
git \
libncurses5-dev \
make \
patch \
perl \
python3 \
qemu-utils \
rsync \
tar \
unzip \
wget

View File

@ -9,9 +9,7 @@
}, },
timezone = 'CET-1CEST,M3.5.0,M10.5.0/3', timezone = 'CET-1CEST,M3.5.0,M10.5.0/3',
ntp_servers = {'1.ntp.services.ffrgb','2.ntp.services.ffrgb'}, ntp_servers = {'ntp.ffrgb.net'},
mesh_on_wan = false,
regdom = 'DE', regdom = 'DE',
@ -52,5 +50,33 @@
}, },
}, },
}, },
config_mode = {
geo_location = {
show_altitude = false,
osm = {
center = {
lat = 49.01384173771134,
lon = 12.096109539536478,
},
zoom = 12,
},
},
},
interfaces = {
lan = {
default_roles = { 'client' },
},
wan = {
default_roles = { 'uplink', 'mesh' },
},
single = {
default_roles = { 'uplink', 'mesh' },
},
},
} }
-- vim: set ft=lua:ts=2:sw=2:et -- vim: set ft=lua:ts=2:sw=2:et

279
site.mk
View File

@ -1,42 +1,195 @@
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_SITE_PACKAGES := \
gluon-mesh-batman-adv-15 \
gluon-respondd \
gluon-autoupdater \
gluon-config-mode-core \
gluon-config-mode-autoupdater \
gluon-config-mode-hostname \
gluon-config-mode-mesh-vpn \
gluon-config-mode-domain-select \
gluon-config-mode-geo-location \
gluon-config-mode-contact-info \
gluon-ebtables-filter-multicast \
gluon-ebtables-filter-ra-dhcp \
gluon-ebtables-source-filter \
gluon-web-admin \
gluon-web-autoupdater \
gluon-web-network \
gluon-web-wifi-config \
gluon-web-mesh-vpn-fastd \
gluon-web-private-wifi \
gluon-radvd \
gluon-setup-mode \
gluon-status-page \
gluon-segment-mover \ gluon-segment-mover \
iwinfo \ iwinfo \
iptables \
gluon-ssid-changer \ gluon-ssid-changer \
respondd-module-airtime \ respondd-module-airtime \
ffrgb-banner #\ gluon-mesh-vpn-wireguard-vxlan \
#ffho-site-generate \ ffrgb-banner
#ffho-config-mode-site-select \
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
# basic support for USB stack 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 := \ USB_PACKAGES_BASIC := \
kmod-usb-core \ kmod-usb-core \
kmod-usb2 kmod-usb2
# storage support for USB devices
USB_PACKAGES_STORAGE := \ USB_PACKAGES_STORAGE := \
block-mount \ block-mount \
blkid \ blkid \
@ -84,9 +237,7 @@ USB_PACKAGES_NET := \
kmod-usb-net-rtl8152 \ kmod-usb-net-rtl8152 \
kmod-usb-net-sierrawireless \ kmod-usb-net-sierrawireless \
kmod-usb-net-smsc95xx kmod-usb-net-smsc95xx
# broken
# kmod-usb-net-rtl8150 \
# additional USB network devices (ie Edimax)
USB_PACKAGES_NET_ADD := \ USB_PACKAGES_NET_ADD := \
kmod-rtl8192cu \ kmod-rtl8192cu \
kmod-rtl8187 \ kmod-rtl8187 \
@ -97,7 +248,6 @@ USB_PACKAGES_NET_ADD := \
kmod-carl9170 \ kmod-carl9170 \
kmod-brcmfmac kmod-brcmfmac
# network support for PCI devices
PCI_PACKAGES_NET := \ PCI_PACKAGES_NET := \
kmod-3c59x \ kmod-3c59x \
kmod-e100 \ kmod-e100 \
@ -113,22 +263,13 @@ PCI_PACKAGES_NET := \
kmod-tg3 \ kmod-tg3 \
kmod-tulip \ kmod-tulip \
kmod-via-rhine kmod-via-rhine
# broken
# kmod-ixgbe \
# kmod-r8139too \
# additional packages
TOOLS_PACKAGES := \ TOOLS_PACKAGES := \
iperf \ iperf \
socat \ socat \
tcpdump \ tcpdump \
usbutils \ usbutils \
vnstat vnstat
# broken
# pciutils \
#
# $(GLUON_TARGET) specific settings:
#
# x86-generic # x86-generic
ifeq ($(GLUON_TARGET),x86-generic) ifeq ($(GLUON_TARGET),x86-generic)
@ -161,57 +302,3 @@ GLUON_SITE_PACKAGES += \
$(TOOLS_PACKAGES) \ $(TOOLS_PACKAGES) \
$(USB_PACKAGES_NET_ADD) $(USB_PACKAGES_NET_ADD)
endif endif
# Raspberry Pi A/B/B+
ifeq ($(GLUON_TARGET),brcm2708-bcm2708)
GLUON_SITE_PACKAGES += \
kmod-usb-hid \
kmod-hid-generic \
$(USB_PACKAGES_BASIC) \
$(USB_PACKAGES_STORAGE) \
$(USB_PACKAGES_NET) \
$(TOOLS_PACKAGES) \
$(USB_PACKAGES_NET_ADD)
endif
# Raspberry Pi 2
ifeq ($(GLUON_TARGET),brcm2708-bcm2709)
GLUON_SITE_PACKAGES += \
kmod-usb-hid \
kmod-hid-generic \
$(USB_PACKAGES_BASIC) \
$(USB_PACKAGES_STORAGE) \
$(USB_PACKAGES_NET) \
$(TOOLS_PACKAGES) \
$(USB_PACKAGES_NET_ADD)
endif
# ar71xx-generic
GLUON_TLWR842_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
GLUON_TLWR1043_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
GLUON_TLWR2543_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
GLUON_TLWDR4300_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
GLUON_WNDR3700_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
GLUON_WRT160NL_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
GLUON_ARCHERC7_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
GLUON_GLINET_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
GLUON_WZRHPG450H_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
GLUON_WZRHPAG300H_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
# mpc85xx-generic
GLUON_TLWDR4900_SITE_PACKAGES := $(USB_PACKAGES_BASIC) $(TOOLS_PACKAGES) $(USB_PACKAGES_STORAGE)
DEFAULT_GLUON_RELEASE := snapshot~$(shell date '+%Y%m%d')
# Allow overriding the release number from the command line
GLUON_RELEASE ?= $(DEFAULT_GLUON_RELEASE)
GLUON_DEPRECATED ?= 1
GLUON_PRIORITY ?= 0
# Languages to include
GLUON_LANGS ?= en de
GLUON_WLAN_MESH := 11s
GLUON_MULTIDOMAIN=1

25
targets Normal file
View File

@ -0,0 +1,25 @@
ath79-generic
ath79-mikrotik
ath79-nand
bcm27xx-bcm2708
bcm27xx-bcm2709
bcm27xx-bcm2710
bcm27xx-bcm2711
ipq40xx-generic
ipq40xx-mikrotik
ipq806x-generic
lantiq-xrx200
lantiq-xway
mediatek-mt7622
mpc85xx-p1010
mpc85xx-p1020
mvebu-cortexa9
ramips-mt7620
ramips-mt7621
ramips-mt76x8
rockchip-armv8
sunxi-cortexa7
x86-64
x86-generic
x86-geode
x86-legacy