mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
feat(tools): detect linux platform only on linux systems
Closes https://github.com/espressif/esp-idf/issues/13148
This commit is contained in:
@ -311,6 +311,7 @@ class Platforms:
|
|||||||
if platform_alias == 'any' and CURRENT_PLATFORM:
|
if platform_alias == 'any' and CURRENT_PLATFORM:
|
||||||
platform_alias = CURRENT_PLATFORM
|
platform_alias = CURRENT_PLATFORM
|
||||||
platform_name = Platforms.PLATFORM_FROM_NAME.get(platform_alias, None)
|
platform_name = Platforms.PLATFORM_FROM_NAME.get(platform_alias, None)
|
||||||
|
if sys.platform == 'linux':
|
||||||
platform_name = Platforms.detect_linux_arm_platform(platform_name)
|
platform_name = Platforms.detect_linux_arm_platform(platform_name)
|
||||||
|
|
||||||
if not platform_name:
|
if not platform_name:
|
||||||
|
Reference in New Issue
Block a user