Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Compare sdk_config files

Hi!

What is the easiest way to compare two sdk_config files? Some tools, etc. Why do I need it:

  1. My idea is to use "$NRF_SDK/config/nrf52840/config/sdk_config.h" as base config and don't change it. All changed parameters ("diff") put into "app_config.h". Usually it's not a lot of changes compared to the base configuration, but if i need to see it in "modified" (compared to the base) sdk_config - it's very hard. Now I have projects with "modified" sdk_config files, I want to get "diff". 
  2. It would be useful for sdk examples to see "diff".

I hope my explanation is understandable. Thanks for answers and suggestions in advance.

Parents
  • I continue to work on it. Trying to make complete config.

    First step - find all definitions.

    Second - default values.

    Third - add definitions to sdk_config.h to correct sections.

    1. I parsed all sdk_config.h from examples, made full list of definitions.
    2. I parsed all /config/**/config/sdk_config.h, made full list of know definition.
    3. Calculate all unknown definition. Total 585.
    4. and tried to find them in SDK folder except 'examples' (grep -Rlwn [defintion] $NRF_SDK --exclude-dir=examples). Some of definitions like '_ENABLED' ended weren't found, I added to search this definition without this ending. Total 374.
    5. Looked into all found definitions, there are seem a lot of trash.

    I have assumption, that all sdk libraries must contain '[library_name]_ENABLED' definition. Is it correct? If it's true, I can found all libraries by 'library_name', and left definitions which starts with found 'library_name's.

    Regarding second and third step - I don't have any ideas.

Reply
  • I continue to work on it. Trying to make complete config.

    First step - find all definitions.

    Second - default values.

    Third - add definitions to sdk_config.h to correct sections.

    1. I parsed all sdk_config.h from examples, made full list of definitions.
    2. I parsed all /config/**/config/sdk_config.h, made full list of know definition.
    3. Calculate all unknown definition. Total 585.
    4. and tried to find them in SDK folder except 'examples' (grep -Rlwn [defintion] $NRF_SDK --exclude-dir=examples). Some of definitions like '_ENABLED' ended weren't found, I added to search this definition without this ending. Total 374.
    5. Looked into all found definitions, there are seem a lot of trash.

    I have assumption, that all sdk libraries must contain '[library_name]_ENABLED' definition. Is it correct? If it's true, I can found all libraries by 'library_name', and left definitions which starts with found 'library_name's.

    Regarding second and third step - I don't have any ideas.

Children
No Data
Related