![Ninux NNXX](https://github.com/mikysal78/ninux-build-openwrt/raw/master/workflows/nnxx.png)
Build script:
Required: -o YourOrganizations -t Target
Optional: -c (Captive Portal): YES or NO
./local_build.sh -o basilicata -t glinet_gl-mt300n-v2 -c NO
Build manually:
cd openwrt
make menuconfig
make defconfig
make V=s
Write your SD card:
gzip -k -d openwrt/bin/path_xxx/file_xxx.img.gz
dd if=openwrt/bin/path_xxx/file_xxx.img of=/dev/YOURSDCARD
Cleaning Up (in openwrt directory):
make clean
deletes contents of the directories /bin and /build_dir. make clean does not remove the toolchain, it also avoids cleaning architectures/targets other than the one you have selected in your .config
Dirclean:
make dirclean
deletes contents of the directories /bin and /build_dir and additionally /staging_dir and /toolchain (=the cross-compile tools) and /logs. 'Dirclean' is your basic "Full clean" operation.
Distclean:
make distclean
nukes everything you have compiled or configured and also deletes all downloaded feeds contents and package sources.
CAUTION : In addition to all else, this will erase your build configuration (<buildroot_dir>/.config), your toolchain and all other sources. Use with care!