Go to file
John Crispin 6646f0ea20 opensync: dont install keys if wlan-ap-keys is enabled
The package wlan-ap-keys will copy the keys from our local cloud-sdk
instance into the image. If it is enabled we do not want to ship the
existing keys.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 09:45:27 +02:00
.github github/worflow: enable on pending and staging-* branches 2020-07-10 09:45:27 +02:00
feeds opensync: dont install keys if wlan-ap-keys is enabled 2020-07-10 09:45:27 +02:00
patches wlan-ap-keys: include cloud keys in the image 2020-07-10 09:45:27 +02:00
.gitignore wlan-pki-cert-scripts: automatically generate a key set 2020-07-10 09:45:27 +02:00
build.sh build.sh: add the wifi feed to default builds 2020-07-08 18:01:33 +02:00
config.yml backport/wifi: backport wifi stack from OpenWrt HEAD 2020-07-01 21:20:35 +02:00
dock-run.sh wlan-ap: initial import 2020-07-01 15:35:04 +02:00
Dockerfile wlan-ap: initial import 2020-07-01 15:35:04 +02:00
LICENSE.md LICENSE.md: add file 2020-07-07 08:23:17 +02:00
Makefile wlan-ap: initial import 2020-07-01 15:35:04 +02:00
README.md wlan-ap: initial import 2020-07-01 15:35:04 +02:00
setup.py wlan-pki-cert-scripts: automatically generate a key set 2020-07-10 09:45:27 +02:00

Setting up your build machine

Requires a recent linux installation. Older systems without python 3.7 will have trouble. See this link for details: https://openwrt.org/docs/guide-developer/quickstart-build-images

Install build packages: sudo apt install build-essential libncurses5-dev gawk git libssl-dev gettext zlib1g-dev swig unzip time rsync python3 python3-setuptools python3-yaml.

Plus specific for TIP: sudo apt-get install openvswitch-common

Doing a native build on Linux

First we need to clone and setup our tree. This will result in an openwrt/.

python3 setup.py --setup

Next we need to select the profile and base package selection. This setup will install the feeds, packages and generate the .config file. The available profiles are ap2220, ea8300, ecw5211, ecw5410.

cd openwrt
./scripts/gen_config.py ap2220 wlan-ap

Finally we can build the tree.

make -j X V=s

Builds for different profiles can co-exist in the same tree. Switching is done by simple calling gen_config.py again.

Doing a docker build

Start by installing docker.io on your host system and ensuring that you can run an unprivileged container. Once this is done edit the Dockerfile and choose the Ubuntu flavour. This might depend on your host installation. Then simple call (available targets are AP2220, EA8300, ECW5211, ECW5410)

TARGET=AP2200 make -j 8