diff options
| author | Robin Howard <robin@rhoward.id.au> | 2024-07-19 13:50:00 +1000 |
|---|---|---|
| committer | Robin Howard <robin@rhoward.id.au> | 2024-07-19 13:50:02 +1000 |
| commit | d8bdb3434d486e0f70da79d29bac155c7b618d4d (patch) | |
| tree | d3cd98e7031fc075e06ff9431c2d6f243fd2be9b /CMakeLists.txt | |
| parent | ac54cab319b7525630e8376c0a6d236df8ccb8fd (diff) | |
| download | tangara-fw-d8bdb3434d486e0f70da79d29bac155c7b618d4d.tar.gz | |
Adds sdkconfig.local (intentionally not tracked in .git) for local overrides.
Here's what I have in mine, for example:
```
CONFIG_LOG_DEFAULT_LEVEL_WARN=n
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
CONFIG_LOG_DEFAULT_LEVEL=3
```
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f9d1f72c..3f0db812 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,12 @@ cmake_minimum_required(VERSION 3.16) include($ENV{PROJ_PATH}/tools/cmake/common.cmake) -set(SDKCONFIG_DEFAULTS "sdkconfig.common") +get_filename_component(_abs_curr_dir "." ABSOLUTE) +if (EXISTS ${_abs_curr_dir}/sdkconfig.local) + set(SDKCONFIG_DEFAULTS "sdkconfig.common;sdkconfig.local") +else() + set(SDKCONFIG_DEFAULTS "sdkconfig.common") +endif() # No exceptions in app builds (this is different in test builds). idf_build_set_property(COMPILE_OPTIONS "-DRESULT_DISABLE_EXCEPTIONS" APPEND) |
