-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.2.0 release
- Loading branch information
Showing
254 changed files
with
772,382 additions
and
30,211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"yaml.schemas": { | ||
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml" | ||
} | ||
"yaml.schemas": { | ||
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml" | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.autopep8" | ||
}, | ||
"python.formatting.provider": "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
logs | ||
sdkconfig.debug | ||
sdkconfig.release | ||
sdkconfig.mini_debug | ||
sdkconfig.mini_release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import os | ||
import zipfile | ||
|
||
Import("env") | ||
|
||
partition_gen_path = "components/partition_table/gen_esp32part.py" | ||
|
||
files_to_zip = ["firmware.bin", "bootloader.bin", "partitions.bin", "ota_data_initial.bin", "partitions.csv"] | ||
zip_filename = "firmware.zip" | ||
|
||
|
||
def create_zip(files, output_filename): | ||
with zipfile.ZipFile(output_filename, 'w') as zipf: | ||
for file in files: | ||
zipf.write(file, arcname=os.path.basename(file)) | ||
print(f"{output_filename} created successfully.") | ||
|
||
|
||
def create_partitions_csv(): | ||
print("Creating partitions.csv...") | ||
package_dir = env.PioPlatform().get_package_dir("framework-espidf") | ||
path = os.path.join(package_dir, partition_gen_path) | ||
part_bin_path = os.path.join(env.subst("$BUILD_DIR"), "partitions.bin") | ||
part_csv_path = os.path.join(env.subst("$BUILD_DIR"), "partitions.csv") | ||
env.Execute(f"python {path} {part_bin_path} {part_csv_path}") | ||
print(f"{part_csv_path} created successfully.") | ||
|
||
|
||
def post_build(source, target, env): | ||
print("#### POST BUILD ####") | ||
create_partitions_csv() | ||
files = [os.path.join(env.subst("$BUILD_DIR"), file) for file in files_to_zip] | ||
create_zip(files, os.path.join(env.subst("$BUILD_DIR"), zip_filename)) | ||
|
||
print("#### POST SCRIPT ####") | ||
env.AddPostAction("buildprog", post_build) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CONFIG_COMPILER_OPTIMIZATION_NONE=y | ||
|
||
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y | ||
|
||
CONFIG_BOOTLOADER_LOG_LEVEL_DEBUG=y | ||
CONFIG_LOG_DEFAULT_LEVEL_INFO=y | ||
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_DEBUG=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CONFIG_COMPILER_OPTIMIZATION_PERF=y | ||
|
||
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y | ||
|
||
CONFIG_BOOTLOADER_LOG_LEVEL_ERROR=y | ||
CONFIG_LOG_DEFAULT_LEVEL_ERROR=y | ||
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_ERROR=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.