From 0031001c2e9e9746a87b781ca60500c5cb6afa2e Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:07:07 +0200 Subject: [PATCH] Update platform.py --- platform.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/platform.py b/platform.py index 820588432..ff4fcfc34 100644 --- a/platform.py +++ b/platform.py @@ -32,18 +32,10 @@ def configure_default_packages(self, variables, targets): board_config = self.board_config(variables.get("board")) mcu = variables.get("board_build.mcu", board_config.get("build.mcu", "esp32")) - core_variant_board = ''.join(variables.get("board_build.extra_flags", board_config.get("build.extra_flags", ""))) - core_variant_board = core_variant_board.replace("-D", " ") - core_variant_build = (''.join(variables.get("build_flags", []))).replace("-D", " ") frameworks = variables.get("pioframework", []) if "arduino" in frameworks: - if "CORE32SOLO1" in core_variant_board or "FRAMEWORK_ARDUINO_SOLO1" in core_variant_build: - self.packages["framework-arduino-solo1"]["optional"] = False - elif "CORE32ITEAD" in core_variant_board or "FRAMEWORK_ARDUINO_ITEAD" in core_variant_build: - self.packages["framework-arduino-ITEAD"]["optional"] = False - else: - self.packages["framework-arduinoespressif32"]["optional"] = False + self.packages["framework-arduinoespressif32"]["optional"] = False if "buildfs" in targets: filesystem = variables.get("board_build.filesystem", "littlefs")