mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Print board's configuration URL
This commit is contained in:
@ -122,8 +122,10 @@ def LoadPioPlatform(env, variables):
|
|||||||
|
|
||||||
|
|
||||||
def PrintConfiguration(env):
|
def PrintConfiguration(env):
|
||||||
platform_data = ["PLATFORM: %s >" % env.PioPlatform().title]
|
platform = env.PioPlatform()
|
||||||
|
platform_data = ["PLATFORM: %s >" % platform.title]
|
||||||
system_data = ["SYSTEM:"]
|
system_data = ["SYSTEM:"]
|
||||||
|
configuration_data = ["CONFIGURATION:"]
|
||||||
mcu = env.subst("$BOARD_MCU")
|
mcu = env.subst("$BOARD_MCU")
|
||||||
f_cpu = env.subst("$BOARD_F_CPU")
|
f_cpu = env.subst("$BOARD_F_CPU")
|
||||||
if mcu:
|
if mcu:
|
||||||
@ -142,11 +144,13 @@ def PrintConfiguration(env):
|
|||||||
flash = board_config.get("upload", {}).get("maximum_size")
|
flash = board_config.get("upload", {}).get("maximum_size")
|
||||||
system_data.append("%s RAM (%s Flash)" % (util.format_filesize(ram),
|
system_data.append("%s RAM (%s Flash)" % (util.format_filesize(ram),
|
||||||
util.format_filesize(flash)))
|
util.format_filesize(flash)))
|
||||||
|
configuration_data.append(
|
||||||
|
"https://docs.platformio.org/page/boards/%s/%s.html" %
|
||||||
|
(platform.name, board_config.id))
|
||||||
|
|
||||||
if platform_data:
|
for data in (configuration_data, platform_data, system_data):
|
||||||
print " ".join(platform_data)
|
if len(data) > 1:
|
||||||
if system_data:
|
print " ".join(data)
|
||||||
print " ".join(system_data)
|
|
||||||
|
|
||||||
# Debugging
|
# Debugging
|
||||||
if not debug_tools:
|
if not debug_tools:
|
||||||
|
Reference in New Issue
Block a user