Skip to content

Commit

Permalink
AP_HAL_ESP32: move generated sdkconfig to build folder
Browse files Browse the repository at this point in the history
Ensures it gets cleaned with `./waf clean`. Users will hopefully delete
and not be confused by the old one as it will now show up as an
untracked file.
  • Loading branch information
tpwrules authored and tridge committed Dec 9, 2024
1 parent 1b51d6a commit 535f687
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,3 @@ ENV/
env.bak/
venv.bak/
autotest_result_*_junit.xml

# Ignore ESP-IDF SDK defines
/libraries/AP_HAL_ESP32/targets/esp32/esp-idf/sdkconfig
/libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/sdkconfig
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ESP32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ press [tab] then enter on the [exit] box to exit the app
done. the 'sdkconfig' file in this folder should have been updated
cd ../../../..

If you want to make changes to sdkconfig (sdkconfig is in git ignore list) permanent and to commit them back in git, you should edit sdkconfig.defaults manually or to use ninja save-defconfig tool after menuconfig.
If you want to make changes to sdkconfig (sdkconfig is in the build dir) permanent and to commit them back in git, you should edit sdkconfig.defaults manually or use ninja save-defconfig tool after menuconfig and replace sdkconfig.defaults with defconfig.

5. Recommanded way to flash the firmware :
```
Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ESP32/targets/esp32/.gitignore

This file was deleted.

5 changes: 3 additions & 2 deletions libraries/AP_HAL_ESP32/targets/esp32/esp-idf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ idf_build_process(esp32
esp_system
esp_rom
esp_timer

SDKCONFIG ${CMAKE_CURRENT_LIST_DIR}/sdkconfig

# treat sdkconfig as build product generated by the defaults
SDKCONFIG ${CMAKE_BINARY_DIR}/sdkconfig
SDKCONFIG_DEFAULTS ${CMAKE_CURRENT_LIST_DIR}/sdkconfig.defaults
BUILD_DIR ${CMAKE_BINARY_DIR})

Expand Down
2 changes: 0 additions & 2 deletions libraries/AP_HAL_ESP32/targets/esp32s3/.gitignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ idf_build_process(esp32s3
esp_rom
esp_timer

SDKCONFIG ${CMAKE_CURRENT_LIST_DIR}/sdkconfig
# treat sdkconfig as build product generated by the defaults
SDKCONFIG ${CMAKE_BINARY_DIR}/sdkconfig
SDKCONFIG_DEFAULTS ${CMAKE_CURRENT_LIST_DIR}/sdkconfig.defaults
BUILD_DIR ${CMAKE_BINARY_DIR}
)
Expand Down

0 comments on commit 535f687

Please sign in to comment.