mirror of https://github.com/arendst/Tasmota.git
Merge pull request #16425 from Staars/gen_berry_str
generate berry structures before every build process
This commit is contained in:
commit
e6ffdaea1b
|
@ -0,0 +1,14 @@
|
|||
Import("env")
|
||||
env = DefaultEnvironment()
|
||||
platform = env.PioPlatform()
|
||||
import os
|
||||
import subprocess
|
||||
from os.path import join
|
||||
|
||||
# generate all precompiled Berry structures from multiple modules
|
||||
CURRENT_DIR = os.getcwd()
|
||||
BERRY_GEN_DIR = join(env.subst("$PROJECT_DIR"), "lib", "libesp32","berry")
|
||||
os.chdir(BERRY_GEN_DIR)
|
||||
cmd = ("python3",join("tools","coc","coc"),"-o","generate","src","default",join("..","berry_tasmota","src"),join("..","berry_mapping","src"),join("..","berry_int64","src"),join("..","..","libesp32_lvgl","lv_binding_berry","src"),join("..","..","libesp32_lvgl","lv_binding_berry","generate"),"-c",join("default","berry_conf.h"))
|
||||
returncode = subprocess.call(cmd, shell=False)
|
||||
os.chdir(CURRENT_DIR)
|
|
@ -35,6 +35,7 @@ build_flags = ${esp_defaults.build_flags}
|
|||
-Wl,--wrap=_Z11analogWritehi ; `analogWrite(unsigned char, int)` use the Tasmota version of analogWrite for deeper integration and phase control
|
||||
-Wl,--wrap=ledcReadFreq ; `uint32_t ledcReadFreq(uint8_t chan)`
|
||||
extra_scripts = pre:pio-tools/add_c_flags.py
|
||||
pio-tools/gen-berry-structures.py
|
||||
post:pio-tools/post_esp32.py
|
||||
${esp_defaults.extra_scripts}
|
||||
|
||||
|
|
Loading…
Reference in New Issue