Can I add custom options in sdkconfig.defaults?

willhelm
Posts: 12
Joined: Sat Jul 13, 2019 4:41 pm

Can I add custom options in sdkconfig.defaults?

Postby willhelm » Thu Dec 16, 2021 3:47 am

I thought one could add custom options in sdkconfig.defaults such as:

CONFIG_THE_MEANING_OF_LIFE_IS=42

I thought this would be inserted into the two auto generated files sdkconfig and sdkconfig.h?

ESP_Sprite
Posts: 9577
Joined: Thu Nov 26, 2015 4:08 am

Re: Can I add custom options in sdkconfig.defaults?

Postby ESP_Sprite » Fri Dec 17, 2021 5:03 am

No. The sdkconfig.defaults simply sets default options for existing config options. For your thing to work, you'd also need to define CONFIG_THE_MEANING_OF_LIFE_IS in a Kconfig somewhere.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 331 guests