mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Use $PLATFORM from build environment instead from the board config
This commit is contained in:
@ -152,8 +152,7 @@ def add_mbedlib(libname, libar):
|
|||||||
}
|
}
|
||||||
|
|
||||||
target_includes = (
|
target_includes = (
|
||||||
"TARGET_%s" % target_map.get(
|
"TARGET_%s" % target_map.get(env.subst("$PLATFORM"), ""),
|
||||||
env.get("BOARD_OPTIONS", {}).get("platform", ""), ""),
|
|
||||||
"TARGET_%s" % variant,
|
"TARGET_%s" % variant,
|
||||||
"TARGET_CORTEX_M"
|
"TARGET_CORTEX_M"
|
||||||
)
|
)
|
||||||
@ -222,7 +221,7 @@ def get_build_flags(data):
|
|||||||
|
|
||||||
def _mbed_whole_archive_hook(libs_):
|
def _mbed_whole_archive_hook(libs_):
|
||||||
if (not isinstance(libs_, list) or
|
if (not isinstance(libs_, list) or
|
||||||
env.get("BOARD_OPTIONS", {}).get("platform") == "nordicnrf51"):
|
env.subst("$PLATFORM") == "nordicnrf51"):
|
||||||
return libs_
|
return libs_
|
||||||
|
|
||||||
_dynlibs = []
|
_dynlibs = []
|
||||||
|
Reference in New Issue
Block a user