buildscript: reorganize user-defined variables

The only part that is changed regularly inside buildscript are
the OpenWrt and package revisions and the selected packages.

Move them up and put them into dedicated variables so it is more
obvious what to change and easier to do so.

While at it, remove outdated COMPAT_VERSION comment from Gluon
package; we don't pull it from there anyway. Update comment on
feed definition syntax as well.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Adrian Schmutzler 2020-09-19 01:29:12 +02:00
parent be4c1fe689
commit a39ee47811
1 changed files with 18 additions and 13 deletions

View File

@ -13,31 +13,36 @@
builddir=./build builddir=./build
# OpenWrt: openwrt-19.07.5
OPENWRTREV="v19.07.5" OPENWRTREV="v19.07.5"
OPENWRTURL="https://git.openwrt.org/openwrt/openwrt.git" PACKAGEREV="2974079d3db786fe5da00c10f1d80e79b0112093"
PACKAGEREV="2974079d3db786fe5da00c10f1d80e79b0112093" # openwrt-19.07.5 ROUTINGREV="02b4dbfcb7b8f8b566940847d22d5a6f229d2e66"
PACKAGEURL="https://git.openwrt.org/feed/packages.git"
## Feed definition [0]: name aka directory, [1]: url, [2]: revision, [3..n]: patches # Gluon packages: master from 2020-02-04
GLUONREV="12e41d0ff07ec54bbd67a31ab50d12ca04f2238c"
OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr bmon"
ROUTING_PKGS="kmod-batman-adv batctl alfred babeld"
GLUON_PKGS="simple-tc uradvd"
OPENWRTURL="https://git.openwrt.org/openwrt/openwrt.git"
## Feed definition [0]: name aka directory, [1]: url, [2]: revision
#official openwrt packages #official openwrt packages
OPENWRT=(openwrt OPENWRT=(openwrt
$PACKAGEURL https://git.openwrt.org/feed/packages.git
$PACKAGEREV) $PACKAGEREV)
OPENWRT_PKGS="gpioctl-sysfs libugpio fastd haserl micrond mtr bmon"
## Be careful: FFF uses COMPAT_VERSION 15 as default at the moment. #gluon packages
## See http://www.open-mesh.org/projects/batman-adv/wiki/Compatversion
GLUON=(gluon GLUON=(gluon
https://github.com/freifunk-gluon/packages.git https://github.com/freifunk-gluon/packages.git
12e41d0ff07ec54bbd67a31ab50d12ca04f2238c) # 2020-02-04 $GLUONREV)
GLUON_PKGS="simple-tc uradvd"
#official openwrt routing packages #official openwrt routing packages
ROUTING=(routing ROUTING=(routing
https://git.openwrt.org/feed/routing.git https://git.openwrt.org/feed/routing.git
02b4dbfcb7b8f8b566940847d22d5a6f229d2e66) # openwrt-19.07.5 $ROUTINGREV)
ROUTING_PKGS="kmod-batman-adv batctl alfred babeld"
FFF=(fff) FFF=(fff)
FFF_PKGS="-a" FFF_PKGS="-a"