Tools: move esp32 specific idf build stuff to subfolder

This commit is contained in:
Nicholas Kruzan 2023-05-15 13:07:41 +00:00 committed by Tom Pittenger
parent 9744b2d483
commit 7a9ceb7241

View File

@ -30,7 +30,7 @@ def configure(cfg):
#define env and location for the cmake esp32 file #define env and location for the cmake esp32 file
env = cfg.env env = cfg.env
env.AP_HAL_ESP32 = srcpath('libraries/AP_HAL_ESP32/targets/esp-idf') env.AP_HAL_ESP32 = srcpath('libraries/AP_HAL_ESP32/targets/esp32/esp-idf')
env.AP_PROGRAM_FEATURES += ['esp32_ap_program'] env.AP_PROGRAM_FEATURES += ['esp32_ap_program']
env.ESP_IDF_PREFIX_REL = 'esp-idf' env.ESP_IDF_PREFIX_REL = 'esp-idf'
@ -66,7 +66,7 @@ def pre_build(self):
esp_idf = self.cmake( esp_idf = self.cmake(
name='esp-idf', name='esp-idf',
cmake_vars=lib_vars, cmake_vars=lib_vars,
cmake_src='libraries/AP_HAL_ESP32/targets/esp-idf', cmake_src='libraries/AP_HAL_ESP32/targets/esp32/esp-idf',
cmake_bld='esp-idf_build', cmake_bld='esp-idf_build',
) )