Go to file
Damir Franusic 29a2821659 opensync: build system update
* opensync_stats.proto gets compiled during the build
  process. The pre-compiled files (opensync_stats.pb-c.*)
  should not be patched any longer; I have also updated
  some older patches for all of this this to work. OpenWrt
  creates a temporary proto-c package for the host ARCH and
  generates source and header files for the target platform.
  This happens after all the patches have been applied and just
  before the opensync compilation process.

Signed-off-by: Damir Franusic <damir.franusic@netexperience.com>
2020-09-30 19:37:41 +02:00
.github workflow: fix ecw5410 builds 2020-08-02 18:15:41 +02:00
cloud cloud: add tooling for starting a local cloud-sdk instance 2020-07-10 09:45:27 +02:00
feeds opensync: build system update 2020-09-30 19:37:41 +02:00
patches ipq807x: Fix dtc host build with GCC 10 2020-09-30 19:37:41 +02:00
profiles profiles: move profiles into a dedicated folder 2020-09-22 18:09:24 +02:00
.gitignore cloud: add tooling for starting a local cloud-sdk instance 2020-07-10 09:45:27 +02:00
build.sh workflow: add ec420 2020-07-29 14:17:39 +02:00
config.yml patches: move all patches into a single folder 2020-09-22 18:20:11 +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 README.md: add AX instructions 2020-08-16 16:17:14 +02:00
setup.py patches: move all patches into a single folder 2020-09-22 18:20:11 +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 wifi

If you want to build an AX image you need to setup a different config. The available profiles are hawkeye, cypress, wallaby.

cd openwrt
./scripts/gen_config.py wallaby wifi-ax

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