Use $PLATFORM from build environment instead from the board config

This commit is contained in:
Ivan Kravets
2016-06-15 14:56:31 +03:00
parent 7e027db02b
commit cdcf075635

View File

@ -152,8 +152,7 @@ def add_mbedlib(libname, libar):
}
target_includes = (
"TARGET_%s" % target_map.get(
env.get("BOARD_OPTIONS", {}).get("platform", ""), ""),
"TARGET_%s" % target_map.get(env.subst("$PLATFORM"), ""),
"TARGET_%s" % variant,
"TARGET_CORTEX_M"
)
@ -222,7 +221,7 @@ def get_build_flags(data):
def _mbed_whole_archive_hook(libs_):
if (not isinstance(libs_, list) or
env.get("BOARD_OPTIONS", {}).get("platform") == "nordicnrf51"):
env.subst("$PLATFORM") == "nordicnrf51"):
return libs_
_dynlibs = []