mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
build-system: add loadable elf support for ESP32-S2 and C3
This commit is contained in:
@@ -37,10 +37,10 @@ class SerialThread(object):
|
||||
|
||||
@ttfw_idf.idf_custom_test(env_tag='test_jtag_arm', group='test-apps')
|
||||
def test_app_loadable_elf(env, extra_data):
|
||||
|
||||
rel_project_path = os.path.join('tools', 'test_apps', 'system', 'gdb_loadable_elf')
|
||||
app_files = ['gdb_loadable_elf.elf']
|
||||
app = ttfw_idf.LoadableElfTestApp(rel_project_path, app_files, target='esp32')
|
||||
target = 'esp32'
|
||||
app = ttfw_idf.LoadableElfTestApp(rel_project_path, app_files, target=target)
|
||||
idf_path = app.get_sdk_path()
|
||||
proj_path = os.path.join(idf_path, rel_project_path)
|
||||
elf_path = os.path.join(app.binary_path, 'gdb_loadable_elf.elf')
|
||||
@@ -49,7 +49,7 @@ def test_app_loadable_elf(env, extra_data):
|
||||
with SerialThread(esp_log_path):
|
||||
openocd_log = os.path.join(proj_path, 'openocd.log')
|
||||
gdb_log = os.path.join(proj_path, 'gdb.log')
|
||||
gdb_init = os.path.join(proj_path, 'gdbinit')
|
||||
gdb_init = os.path.join(proj_path, 'gdbinit_' + target)
|
||||
gdb_dir = os.path.join(proj_path, 'main')
|
||||
|
||||
with ttfw_idf.OCDBackend(openocd_log, app.target):
|
||||
|
Reference in New Issue
Block a user