未验证 提交 4204d1e6 编写于 作者: V Valerii Koval 提交者: GitHub

Handle PSRAM libs in PlatformIO build script (#4911)

This PR adds PSRAM-specific libraries to the final linker command depending on the `BOARD_HAS_PSRAM` macro.

cc @me-no-dev
上级 d7fda910
......@@ -187,6 +187,14 @@ env.Append(
if not env.BoardConfig().get("build.ldscript", ""):
env.Replace(LDSCRIPT_PATH=env.BoardConfig().get("build.arduino.ldscript", ""))
#
# Add PSRAM-specific libraries
#
flatten_cppdefines = env.Flatten(env["CPPDEFINES"])
if "BOARD_HAS_PSRAM" in flatten_cppdefines:
env.Append(LIBS=["c-psram-workaround", "m-psram-workaround"])
#
# Target: Build Core Library
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册