From a6d5fcf109d109e2692ed76082d47c03403af5c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Foucher?= <cfoucher@laas.fr>
Date: Tue, 12 Jul 2022 11:57:09 +0000
Subject: [PATCH] Update to latest platform.

---
 platformio.ini             | 7 +------
 zephyr/platformio-extra.py | 8 --------
 2 files changed, 1 insertion(+), 14 deletions(-)
 delete mode 100644 zephyr/platformio-extra.py

diff --git a/platformio.ini b/platformio.ini
index d43d70b..057ab85 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -18,7 +18,7 @@ boards_dir = zephyr/boards
 
 framework = zephyr
 
-platform = ststm32@15.2.0
+platform = ststm32@15.4.1
 
 # Serial monitor baud rate
 monitor_speed = 115200
@@ -29,11 +29,6 @@ build_flags =
     -fsingle-precision-constant
     -Wl,-Map,memory.map
 
-# Below flags are only valid for C++ and create warnings for C files, so we add them as
-# CXXFLAGS in extra_script.
-build_unflags = -Wno-register -fno-rtti
-extra_scripts = zephyr/platformio-extra.py
-
 #### BOARD-SPECIFIC DEFINITIONS ###############################################
 
 [env:nucleo_g474re]
diff --git a/zephyr/platformio-extra.py b/zephyr/platformio-extra.py
deleted file mode 100644
index 1069e01..0000000
--- a/zephyr/platformio-extra.py
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Custom settings, as referred to as "extra_script" in platformio.ini
-#
-# See https://docs.platformio.org/en/latest/projectconf/section_env_advanced.html#extra-scriptss
-
-Import("env")
-
-env.Append( CXXFLAGS=[ "-Wno-register -fno-rtti" ] )
-- 
GitLab