This script is optimized to compile TP-Link Archer AX1500 v1, v1.2; Archex AX10 v1, v1.2 GPL sources.
It is based on ubuntu precise 12.04 and uses docker to run it on any host.
How to run:
docker build -t router_build .
docker run -it -v /home/vetrov/ax1500v1_GPL:/router router_build
cd /router
patch -p1 < ../router.patch
This step updates source mirrors from where files should be downloaded. Files keep their checksums.mkdir -p Iplatform/openwrt/dl/ && cp /luci-0.11.1.tar.gz /router/Iplatform/openwrt/dl/
I wasn't able to patch this package so I decided to simpy download it and pass to the make. Checksum also keeps because you downloaded this file from the mirror git repository with the same commit hash (check Dockerfile)cd Iplatform/build
make SHELL=/bin/bash V=s
Shell=/bin/bash ensures that make will use bash by default (needed for build), V=s enables verbose mode that produces more detailed output. At the beginning of the make process it will ask you for some details. Feel free to simply press enter and choose the default option.Possible errors in the build process: GPL sources are extremly legacy thing. And errors seems to be generated by random. This repository just makes them more painless.
I hate Broadcomm and any other who did it and keep without maintance from 2013 year. A lot of mirrors has been shutted down and stopped so we should be ready for everything (30 Kb/s too). If any errors encountered in the build process it is likely related to the internet resources that provides the package. To resolve these errors you have to manually find the specific version of the package and update Makefiles (see router.patch for reference).
Thanks:
JonathanNakandala for post on openwrt forum with starting research in this theme