prepare LP ULP support
This commit is contained in:
@@ -81,6 +81,15 @@ def get_component_includes(target_config):
|
|||||||
def generate_ulp_config(target_config):
|
def generate_ulp_config(target_config):
|
||||||
def _generate_ulp_configuration_action(env, target, source):
|
def _generate_ulp_configuration_action(env, target, source):
|
||||||
riscv_ulp_enabled = sdk_config.get("ULP_COPROC_TYPE_RISCV", False)
|
riscv_ulp_enabled = sdk_config.get("ULP_COPROC_TYPE_RISCV", False)
|
||||||
|
lp_core_ulp_enabled = sdk_config.get("ULP_COPROC_TYPE_LP_CORE", False)
|
||||||
|
|
||||||
|
if lp_core_ulp_enabled == False:
|
||||||
|
ulp_toolchain = "toolchain-%sulp%s.cmake"% (
|
||||||
|
"" if riscv_ulp_enabled else idf_variant + "-",
|
||||||
|
"-riscv" if riscv_ulp_enabled else "",
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
ulp_toolchain = "toolchain-lp-core-riscv"
|
||||||
|
|
||||||
cmd = (
|
cmd = (
|
||||||
os.path.join(platform.get_package_dir("tool-cmake"), "bin", "cmake"),
|
os.path.join(platform.get_package_dir("tool-cmake"), "bin", "cmake"),
|
||||||
@@ -91,11 +100,7 @@ def generate_ulp_config(target_config):
|
|||||||
"components",
|
"components",
|
||||||
"ulp",
|
"ulp",
|
||||||
"cmake",
|
"cmake",
|
||||||
"toolchain-%sulp%s.cmake"
|
ulp_toolchain,
|
||||||
% (
|
|
||||||
"" if riscv_ulp_enabled else idf_variant + "-",
|
|
||||||
"-riscv" if riscv_ulp_enabled else "",
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
"-DULP_S_SOURCES=%s" % ";".join([fs.to_unix_path(s.get_abspath()) for s in source]),
|
"-DULP_S_SOURCES=%s" % ";".join([fs.to_unix_path(s.get_abspath()) for s in source]),
|
||||||
"-DULP_APP_NAME=ulp_main",
|
"-DULP_APP_NAME=ulp_main",
|
||||||
|
|||||||
Reference in New Issue
Block a user