cp ipq60xx-all.config .config
make defconfig
make menuconfig # Enter the graphical configuration interface
Save and exit:
After configuration is complete, press <Esc> until you exit the configuration interface.
The system will prompt to save the configuration, choose to save.
make oldconfig # Generate configuration based on existing configuration # This method updates and applies your configuration file without needing to manually enter make menuconfig.
make package/kernel/compile V=s
make package/feeds/base/fuse/compile V=s
2. Compile Kernel Modules
After configuring the kernel modules, you can compile them. You can compile the modules into .ipk packages using the following steps:
Compile target package:
# make package/kmod-fuse/compile V=s
make package/kernel/linux/compile V=s
The above command will compile the kmod-fuse package and generate the corresponding .ipk file. You can replace kmod-fuse with the name of the kernel module package you need to compile.
If you want to compile all kernel modules and package them into .ipk files, you can use the following command:
make package/kernel/compile V=s
Where {platform} and {subplatform} are your target platform and sub-platform. For example, if you are compiling the kmod-fuse package, the generated .ipk package may be located in the bin/targets/ath79/generic/packages/ directory.
Compile the packages selected in the OpenWRT configuration
make package/compile V=s
Compile specific package
make package/kmod-fuse/compile V=s
Reconfigure and clean the build
make clean # Execute make clean to clean the compilation directory. This will delete most of the compilation output files but will not delete the downloaded source code.
make dirclean # Execute make dirclean, which will delete everything in the build directory, including downloaded source code, configured files, and cache. This allows you to completely clear the environment and start over.
make defconfig # Run make defconfig to generate a default configuration file. This file will be generated based on the target platform you selected and other settings.