mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Minor formatting to the system info
This commit is contained in:
@ -832,9 +832,9 @@ def BuildProjectLibraries(env):
|
|||||||
project.env = env
|
project.env = env
|
||||||
ldf_mode = LibBuilderBase.lib_ldf_mode.fget(project)
|
ldf_mode = LibBuilderBase.lib_ldf_mode.fget(project)
|
||||||
|
|
||||||
print "Library Dependency Finder (LDF) -> http://bit.ly/configure-pio-ldf"
|
print "Library Dependency Finder -> http://bit.ly/configure-pio-ldf"
|
||||||
print "LDF MODES: FINDER/%s COMPATIBILITY/%s" % (ldf_mode,
|
print "LDF MODES: FINDER(%s) COMPATIBILITY(%s)" % (ldf_mode,
|
||||||
project.lib_compat_mode)
|
project.lib_compat_mode)
|
||||||
|
|
||||||
lib_builders = env.GetLibBuilders()
|
lib_builders = env.GetLibBuilders()
|
||||||
print "Collected %d compatible libraries" % len(lib_builders)
|
print "Collected %d compatible libraries" % len(lib_builders)
|
||||||
|
@ -117,10 +117,8 @@ def PrintConfiguration(env): # pylint: disable=too-many-branches
|
|||||||
debug_tools = board_config.get("debug", {}).get("tools")
|
debug_tools = board_config.get("debug", {}).get("tools")
|
||||||
ram = board_config.get("upload", {}).get("maximum_ram_size")
|
ram = board_config.get("upload", {}).get("maximum_ram_size")
|
||||||
flash = board_config.get("upload", {}).get("maximum_size")
|
flash = board_config.get("upload", {}).get("maximum_size")
|
||||||
for (key, value) in (("RAM", ram), ("Flash", flash)):
|
system_data.append("%s (%s Flash)" % (util.format_filesize(ram),
|
||||||
if not value:
|
util.format_filesize(flash)))
|
||||||
continue
|
|
||||||
system_data.append("%s/%s" % (key, util.format_filesize(value)))
|
|
||||||
|
|
||||||
if platform_data:
|
if platform_data:
|
||||||
print " ".join(platform_data)
|
print " ".join(platform_data)
|
||||||
@ -132,7 +130,7 @@ def PrintConfiguration(env): # pylint: disable=too-many-branches
|
|||||||
return
|
return
|
||||||
|
|
||||||
data = [
|
data = [
|
||||||
"CURRENT/%s" % board_config.get_debug_tool_name(
|
"CURRENT(%s)" % board_config.get_debug_tool_name(
|
||||||
env.subst("$DEBUG_TOOL"))
|
env.subst("$DEBUG_TOOL"))
|
||||||
]
|
]
|
||||||
onboard = []
|
onboard = []
|
||||||
@ -143,9 +141,9 @@ def PrintConfiguration(env): # pylint: disable=too-many-branches
|
|||||||
else:
|
else:
|
||||||
external.append(key)
|
external.append(key)
|
||||||
if onboard:
|
if onboard:
|
||||||
data.append("ON-BORD/%s" % ", ".join(sorted(onboard)))
|
data.append("ON-BORD(%s)" % ", ".join(sorted(onboard)))
|
||||||
if external:
|
if external:
|
||||||
data.append("EXTERNAL/%s" % ", ".join(sorted(external)))
|
data.append("EXTERNAL(%s)" % ", ".join(sorted(external)))
|
||||||
|
|
||||||
print "DEBUG: %s" % " ".join(data)
|
print "DEBUG: %s" % " ".join(data)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user