This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF Module Kconfig override using Application Kconfig

Hello nRF community,

I am currently testing some Memfault application that comes with the nRF SDK v1.7.0. I have a custom board designed around the nRF9160 and have been able to run the memfault sample application. However, I was only able to do this by modifying some of the Memfault module Kconfig files. For instance,

ncs/v1.7.0/nrf/modules/memfault/Kconfig

and modifying the above Kconfig by adding my board type similarly in other places.

config MEMFAULT_NCS_HW_VERSION
	string "Hardware version"
	default "nrf9160dk" if BOARD_NRF9160DK_NRF9160_NS
	default "thingy91" if BOARD_THINGY91_NRF9160_NS
	default "stratus" if BOARD_CONEXIO_STRATUS_NS
	help
	  Device hardware version


So my question is, instead of directly modifying the module Kconfig files, is there a way I can do this from my application Kconfig that will override the module configurations and will be local to my application only?

This way I do not have to touch any system files and just configure from Zephyr application layer.

Thanks and any suggestions or code snippets will be really helpful.


Parents Reply Children
No Data
Related