build openwrt firmware images within podman container. based on debian bullseye
some specific build configurations are available in /home/build/conf
- Tag:
v18.06.4
- Tag:
v19.07.4
- Tag:
v21.02.2
# build container image using specific openwrt tag/branch
# the tag/branch name is also used as container image tag
# this will automatically checkout the git tag/branch and download the related feeds
./openwrtbuild init v21.02.2
Note: building the specific toolchain will initially take some time depending on your cpu resources (+20min)
Example - Custom Build
# set target device
make menuconfig
# set defaults
make defconfig
# change config
make menuconfig
# fetch packages
make download
# build (n+1 core)
make -j5
Example - Load preconfiguration file
# copy diffconfig
cp ../conf/v19/wrtac.conf .config
# expand diffconfig
make defconfig
# fetch packages
make download
# build (n+1 core)
make -j5
The firmware images are stored within the directory target/
of your current working dir via bind-mount (container /home/build/openwrt/bin/targets/<device>/<arch>
).
- Quick Image Building Guide | openwrt.org
- Build system Usage | openwrt.org
A few configuration templates are available in conf/
You can dump your config changes by using he scripts/diffconfig.sh
script
Example
./scripts/diffconfig.sh > myconfig
Some prebuild images (from configuration templates) are available on http://dl.a3non.org/openwrt/
The Dockerfile and configuration templates are OpenSource and licensed under the Terms of Mozilla Public License 2.0 - your're welcome to contribute