Add CONFIG_XXX=y in kernel config file not take effect

I add “CONFIG_MY_TEST=y” in openwrt/target/linux/mediatek/mt7622/config-5.4. Then I use "make -j24 V=s" to build mt7622 project. After build success,I can't find “CONFIG_MY_TEST=y” in kernel's .config?

Did you also add a Kconfig for this new option? The build process will remove unknown options.

1 Like

If you are talking about the kernel module (kmod), see an example here.

I drafted the pstore ramoops kernel feature as a selectable package. Kernel features need to be defined as "KernelPackage" for OpenWrt build system for the options to have effect.

Pure kernel option toggles are different. Regarding them, it should be enough to just change the value from the default.

No,I didn't add a Kconfig for this new option. So must I add a Kconfig together?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.