diff --git a/mbed.py b/mbed.py index 2831d4a..893933a 100644 --- a/mbed.py +++ b/mbed.py @@ -133,6 +133,7 @@ def process_global_lib(libname, lib_configs): board_type = env.subst("$BOARD") variant = variants_remap[ board_type] if board_type in variants_remap else board_type.upper() +variant = env.BoardConfig().get("build.variant", variant) mbed_config = get_mbed_config(variant)