- 下载源代码
git clone https://github.com/coolsnowwolf/lede
- 创建容器
docker run -it \
--name openwrt-build \
-v ./lede:/app \
openwrt zsh
- 进入容器
docker exec -it openwrt-build zsh
- 更新 feeds 并选择配置
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
- 下载 dl 库,编译固件 (-j 后面是线程数,第一次编译推荐用单线程)
make download -j8
make V=s -j1
二次编译:
cd lede
git pull
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make download -j8
make V=s -j$(nproc)
如果需要重新配置:
rm -rf ./tmp && rm -rf .config
make menuconfig
make V=s -j$(nproc)
编译完成后输出路径:bin/targets