diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b896f599b80..819c69889fdb 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. ## [15.3.0.4] ### Added +- Berry solidification is now part of the build system ### Breaking Changed diff --git a/pio-tools/gen-berry-structures.py b/pio-tools/gen-berry-structures.py index c59360b130ee..766887752820 100644 --- a/pio-tools/gen-berry-structures.py +++ b/pio-tools/gen-berry-structures.py @@ -3,11 +3,103 @@ import os import glob import subprocess -from os.path import join +from os.path import join, isfile # generate all precompiled Berry structures from multiple modules CURRENT_DIR = os.getcwd() -BERRY_GEN_DIR = join(env.subst("$PROJECT_DIR"), "lib", "libesp32","berry") +PROJECT_DIR = env.subst("$PROJECT_DIR") +BERRY_GEN_DIR = join(PROJECT_DIR, "lib", "libesp32", "berry") +BERRY_PORT_DIR = BERRY_GEN_DIR # PYTHONPATH root for `berry_port` module + +# --------------------------------------------------------------------------- +# Step 1 - run all `solidify_all_python.be` scripts in pure Python +# +# Each script has a shebang of the form: +# #!/usr/bin/env -S PYTHONPATH=/berry python3 -m berry_port -s -g +# We replicate this here by invoking `python3 -m berry_port -s -g