Changeset - 407831aaf6ad
[Not reviewed]
0 2 0
Max Wahl (Fantawams) - 4 years ago 2021-09-22 09:56:09
fantawams@c3l.lu
Site config update for experimental Gluon 2021.1.1. Build script update for Gluon 2021.1.1.
2 files changed with 8 insertions and 4 deletions:
0 comments (0 inline, 0 general)
build_script/build-all-targets.sh
Show inline comments
 
#!/bin/bash
 

	
 
if [[ $EUID -eq 0 ]]; then
 
  echo "cannot be run as root"
 
  exit
 
fi
 

	
 
# detect amount of CPU cores
 
CORES=$(lscpu|grep -e '^CPU(s):'|xargs|cut -d" " -f2)
 
#CORES=1
 

	
 
# build all regular targets
 
for TARGET in $(make list-targets); do
 
  make -j$CORES GLUON_TARGET=$TARGET GLUON_DEPRECATED=0 BROKEN=1 V=s
 
done
 

	
 
make -j$CORES GLUON_TARGET=brcm2708-bcm2710 GLUON_DEPRECATED=0 BROKEN=1 V=s
 
make -j$CORES GLUON_TARGET=ar71xx-mikrotik GLUON_DEPRECATED=0 BROKEN=1 V=s
 
make -j$CORES GLUON_TARGET=mvebu-cortexa9 GLUON_DEPRECATED=0 BROKWN=1 V=s
site_config/experimental/site/site.mk
Show inline comments
 
##	gluon site.mk makefile example
 

	
 
##      GLUON_FEATURES
 
#               Specify Gluon features/packages to enable;
 
#               Gluon will automatically enable a set of packages
 
#               depending on the combination of features listed
 

	
 
GLUON_FEATURES := \
 
        autoupdater \
 
        ebtables-filter-multicast \
 
        ebtables-filter-ra-dhcp \
 
        ebtables-limit-arp \
 
        mesh-batman-adv-15 \
 
        mesh-vpn-fastd \
 
        respondd \
 
        status-page \
 
        web-advanced \
 
	wireless-encryption-wpa3 \
 
        web-wizard
 

	
 

	
 
##	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-mesh-batman-adv-15 \
 
		gluon-autoupdater \
 
		gluon-config-mode-autoupdater \
 
		gluon-config-mode-hostname \
 
		gluon-config-mode-mesh-vpn \
 
		gluon-config-mode-geo-location \
 
		gluon-config-mode-contact-info \
 
		gluon-config-mode-core \
 
		gluon-ebtables-filter-multicast \
 
		gluon-ebtables-filter-ra-dhcp \
 
		gluon-web-admin \
 
		gluon-web-autoupdater \
 
		gluon-web-wifi-config \
 
		gluon-web-private-wifi \
 
		gluon-mesh-vpn-fastd \
 
		gluon-radvd \
 
		gluon-respondd \
 
	        gluon-setup-mode \
 
		gluon-status-page \
 
		gluon-ssid-changer \
 
		respondd-module-airtime \
 
		iwinfo \
 
		iptables \
 

	
 
##	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 := sid~exp$(shell date '+%Y%m%d')
 
DEFAULT_GLUON_RELEASE := 2020.2.3.0~exp20210618
 
DEFAULT_GLUON_RELEASE := 2021.1.1.0~exp20210913
 

	
 

	
 
##	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
 
GLUON_BRANCH ?= experimental
 

	
 
# Firmware branch and autoupdater config
 
GLUON_AUTOUPDATER_BRANCH ?= experimental
 

	
 
GLUON_AUTOUPDATER_ENABLED ?= 1
 

	
 
# set mesh mode for ath10k to 802.11s
 
GLUON_ATH10K_MESH ?= 11s
 

	
 
# Languages to include
 
GLUON_LANGS ?= en
 
GLUON_LANGS ?= de en
 

	
 
# define a region for specific devices like TP-Link Archer C7
 
GLUON_REGION := eu
 

	
 
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 \
 
		kmod-iwlwifi
 

	
 
ifeq ($(GLUON_TARGET),x86-generic)
 
		GLUON_SITE_PACKAGES += \
 
	$(USB_X86_GENERIC_NETWORK_MODULES)
 
endif
 

	
 
ifeq ($(GLUON_TARGET),x86-64)
 
              GLUON_SITE_PACKAGES += \
 
       $(USB_X86_GENERIC_NETWORK_MODULES)
 
endif
 

	
 
# Do not build images for deprecated devices
 
GLUON_DEPRECATED ?= 0
0 comments (0 inline, 0 general)