mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Handle espressif
as espressif8266
dev/platform for LDF
This commit is contained in:
@ -511,15 +511,12 @@ class PlatformIOLibBuilder(LibBuilderBase):
|
||||
manifest = util.load_json(join(self.path, "library.json"))
|
||||
assert "name" in manifest
|
||||
|
||||
# replace "espressif" dev/platform with ESP8266/ESP32
|
||||
# replace "espressif" old name dev/platform with ESP8266
|
||||
if "platforms" in manifest:
|
||||
new_platforms = []
|
||||
for platform in self.items_to_list(manifest['platforms']):
|
||||
if platform == "espressif":
|
||||
new_platforms.extend(["espressif8266", "espressif32"])
|
||||
else:
|
||||
new_platforms.append(platform)
|
||||
manifest['platforms'] = new_platforms
|
||||
manifest['platforms'] = [
|
||||
"espressif8266" if p == "espressif" else p
|
||||
for p in self.items_to_list(manifest['platforms'])
|
||||
]
|
||||
|
||||
return manifest
|
||||
|
||||
|
Reference in New Issue
Block a user