Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 20cc45c

Browse files
authored
Merge pull request #113 from pycom/secure_boot_fix_sdkconfig_copy
Update get_idf_libs.py
2 parents 69ac2af + ff53818 commit 20cc45c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

esp32/get_idf_libs.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@ def main():
8787
shutil.copy(src + '/esp32/esp32.project.ld', ".")
8888

8989
# copy the generated sdkconfig.h
90-
shutil.copy(src + '/include/sdkconfig.h', ".")
91-
90+
with open(src + '/include/sdkconfig.h', 'r') as input:
91+
content = input.read()
92+
with open(os.path.dirname(os.path.realpath(__file__)) + '/sdkconfig.h', 'w') as output:
93+
output.write(content.replace('#define CONFIG_SECURE_BOOT_ENABLED 1',''))
94+
9295
shutil.rmtree(dsttmpbl)
9396
shutil.rmtree(dsttmpapp)
9497

0 commit comments

Comments
 (0)