- Edit Kconfig
Add following line
config CONFIG_VENDOR_HAPPY
bool "support"
default y
help
Enable code
Execute “make menuconfig” will generate “.config”.- Put into the code
#ifdef CONFIG_VENDOR_HAPPY
void customer()
{
if (!Clean)
{
Clean = 1;
}
}
#endif //CONFIG_VENDOR_HAPPY
- Put into the Makefile
-include $(TARGET_HOME)/.config
ifeq ($(GOGO),y)
0 意見:
張貼留言