Greetings,
I have defined some custom Kconfig options for our custom FW ( custom device and board) which I use in my prj.config file successfully (Located in C:/ncs/project_dir/project_dir/src and also some subdirectories of this) and was wondering which is the easiest way to use these Kconfig options in my custom_board.defconfig file which is in a different directory.
I tried adding the following lines in the Kconfig file inside the board directory as shown below:
<project_dir>/boards/arm/<custom_board_name>/Kconfig :
source "C:/nsc/<project_dir>/<project_dir>/src/Kconfig" source "C:/nsc/<project_dir>/<project_dir>/src/modules/Kconfig" source "C:/nsc/<project_dir>/<project_dir>/src/protocols/Kconfig" source "C:/nsc/<project_dir>/<project_dir>/src/sensors/Kconfig"
Ideally, I want to include the custom Kconfig files I have in my source code directory using a preprocessor token such as:
source "${PROJECT_SOURCE_DIR}/src/Kconfig"
source "${PROJECT_SOURCE_DIR}/src/modules/Kconfig"
source "${PROJECT_SOURCE_DIR}/src/protocols/Kconfig"
source "${PROJECT_SOURCE_DIR}/src/sensors/Kconfig"
Am I going about this the wrong way? How can I use these Kconfig custom options I created inside my custom_board.defconfig file?
Thank you very much and I look forward to hearing from you!
Best regards,
Stavros