- Simple.
- Pro.
- Less is more.
-
Install and run some Docker-like shit.
-
docker build -t openwrt-buildbot https://raw.githubusercontent.com/KFERMercer/openwrt-preset/master/buildbot.dockerfile
-
docker run -it --rm \ -e COREUSE="$(nproc)" \ -e OPENWRT_BRANCH="openwrt-23.05" \ -e PRESET_ARCH="x86_64" \ -v /path/to/workdir:/work \ openwrt-buildbot
for loongarch64:
docker run -it --rm \ -e COREUSE="$(nproc)" \ -e OPENWRT_BRANCH="master" \ -e PRESET_ARCH="loongarch64" \ -v /path/to/workdir:/work \ openwrt-buildbot
-
git clone https://github.com/immortalwrt/immortalwrt.git --depth=1 -b openwrt-23.05 && cd immortalwrt ./scripts/feeds update -a
-
git clone https://github.com/KFERMercer/openwrt-preset.git --depth=1
-
for i in $(ls ./openwrt-preset/immortalwrt/openwrt-23.05/patches/); do patch -p1 -N --verbose --reject-file=/dev/null < ./openwrt-preset/immortalwrt/openwrt-23.05/patches/$i; done
-
./scripts/feeds install -a
-
cat ./openwrt-preset/immortalwrt/openwrt-23.05/x86_64.config > ./.config make defconfig
-
make -j$(nproc) || make -j1 V=s