Dump only "platform, board and framework" by default when processing environment

This commit is contained in:
Ivan Kravets
2018-02-09 01:23:02 +02:00
parent f7023aa8ff
commit aac0b29929
3 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ def LoadPioPlatform(env, variables):
def PrintConfiguration(env): # pylint: disable=too-many-branches
platform_data = ["Platform: %s ::" % env.PioPlatform().title]
platform_data = ["Platform: %s >" % env.PioPlatform().title]
system_data = ["System:"]
mcu = env.subst("$BOARD_MCU")
f_cpu = env.subst("$BOARD_F_CPU")
+4 -4
View File
@@ -215,12 +215,12 @@ def CheckUploadSize(_, target, source, env): # pylint: disable=W0613,W0621
def PrintUploadInfo(env):
configured = env.subst("$UPLOAD_PROTOCOL")
available = []
available = [configured] if configured else []
if "BOARD" in env:
available = env.BoardConfig().get("upload", {}).get(
"protocols", [configured])
available.extend(env.BoardConfig().get("upload", {}).get(
"protocols", []))
if available:
print "Available: %s" % ", ".join(available)
print "Available: %s" % ", ".join(sorted(available))
if configured:
print "Configured: upload_protocol = %s" % configured