Unverified Commit 3e8f7fe8 authored by Maximilian Gerhardt's avatar Maximilian Gerhardt Committed by GitHub

PlatformIO: Fix linking to make initVariant() work (#6809)

parent 832c08e9
...@@ -356,10 +356,10 @@ if "build.variant" in env.BoardConfig(): ...@@ -356,10 +356,10 @@ if "build.variant" in env.BoardConfig():
join(variants_dir, env.BoardConfig().get("build.variant")) join(variants_dir, env.BoardConfig().get("build.variant"))
] ]
) )
libs.append(env.BuildLibrary( env.BuildSources(
join("$BUILD_DIR", "FrameworkArduinoVariant"), join("$BUILD_DIR", "FrameworkArduinoVariant"),
join(variants_dir, env.BoardConfig().get("build.variant")) join(variants_dir, env.BoardConfig().get("build.variant"))
)) )
envsafe = env.Clone() envsafe = env.Clone()
......
...@@ -349,10 +349,10 @@ if "build.variant" in env.BoardConfig(): ...@@ -349,10 +349,10 @@ if "build.variant" in env.BoardConfig():
join(variants_dir, env.BoardConfig().get("build.variant")) join(variants_dir, env.BoardConfig().get("build.variant"))
] ]
) )
libs.append(env.BuildLibrary( env.BuildSources(
join("$BUILD_DIR", "FrameworkArduinoVariant"), join("$BUILD_DIR", "FrameworkArduinoVariant"),
join(variants_dir, env.BoardConfig().get("build.variant")) join(variants_dir, env.BoardConfig().get("build.variant"))
)) )
envsafe = env.Clone() envsafe = env.Clone()
......
...@@ -351,10 +351,10 @@ if "build.variant" in env.BoardConfig(): ...@@ -351,10 +351,10 @@ if "build.variant" in env.BoardConfig():
join(variants_dir, env.BoardConfig().get("build.variant")) join(variants_dir, env.BoardConfig().get("build.variant"))
] ]
) )
libs.append(env.BuildLibrary( env.BuildSources(
join("$BUILD_DIR", "FrameworkArduinoVariant"), join("$BUILD_DIR", "FrameworkArduinoVariant"),
join(variants_dir, env.BoardConfig().get("build.variant")) join(variants_dir, env.BoardConfig().get("build.variant"))
)) )
envsafe = env.Clone() envsafe = env.Clone()
......
...@@ -368,10 +368,10 @@ if "build.variant" in env.BoardConfig(): ...@@ -368,10 +368,10 @@ if "build.variant" in env.BoardConfig():
join(variants_dir, env.BoardConfig().get("build.variant")) join(variants_dir, env.BoardConfig().get("build.variant"))
] ]
) )
libs.append(env.BuildLibrary( env.BuildSources(
join("$BUILD_DIR", "FrameworkArduinoVariant"), join("$BUILD_DIR", "FrameworkArduinoVariant"),
join(variants_dir, env.BoardConfig().get("build.variant")) join(variants_dir, env.BoardConfig().get("build.variant"))
)) )
envsafe = env.Clone() envsafe = env.Clone()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment