Can I add custom options in sdkconfig.defaults?

willhelm
Posts: 13
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?

Sprite
Espressif staff
Espressif staff
Posts: 10596
Joined: Thu Nov 26, 2015 4:08 am

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

Postby 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: Bytespider, Google [Bot], Qwantbot and 7 guests