From 8c13d13f8067b371c0fbfc05c0ee24a7cfed82ee Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 8 Aug 2022 16:51:19 +0300 Subject: [PATCH] =?UTF-8?q?Added=20support=20for=20accepting=20the=20origi?= =?UTF-8?q?nal=20FileNode=20environment=20in=20a=20=E2=80=9Ccallback?= =?UTF-8?q?=E2=80=9D=20function=20when=20using=20Build=20Middlewares=20//?= =?UTF-8?q?=20Resolve=20#4380?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HISTORY.rst | 1 + docs | 2 +- platformio/builder/tools/piobuild.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 7587f549..b6bd269b 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -16,6 +16,7 @@ PlatformIO Core 6 6.1.4 (2022-??-??) ~~~~~~~~~~~~~~~~~~ +* Added support for accepting the original FileNode environment in a "callback" function when using `Build Middlewares `__ (`pull #4380 `_) * Improved device port finder when using dual channel UART converter (`issue #4367 `_) * Improved project dependency resolving when using the `pio project init --ide `__ command * Upgraded build engine to the SCons 4.4.0 (`release notes `__) diff --git a/docs b/docs index 2175b369..f79c01f6 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 2175b369e206d000e1cca1f14ba2d309b358790a +Subproject commit f79c01f6f3825d413e9e6f92b9c3cba899860c8b diff --git a/platformio/builder/tools/piobuild.py b/platformio/builder/tools/piobuild.py index 06937e58..9652eabe 100644 --- a/platformio/builder/tools/piobuild.py +++ b/platformio/builder/tools/piobuild.py @@ -296,6 +296,8 @@ def CollectBuildFiles( new_node = callback(env, new_node) else: new_node = callback(new_node) + if not new_node: + break if new_node: new_sources.append(new_node)