Skip to content

Commit b3affe6

Browse files
tejlmandcfriedt
authored andcommitted
devicetree: remove support for DTC_OVERLAY_FILE in environment
Setting of DTC_OVERLAY_FILE as an environment setting was deprecated before Zephyr 1.14 LTS. This commit remove the support for this possibility and thus cleans up the build system. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 5969c3b commit b3affe6

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

cmake/app/boilerplate.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,7 @@ zephyr_boilerplate_watch(CONF_FILE)
489489

490490
if(DTC_OVERLAY_FILE)
491491
# DTC_OVERLAY_FILE has either been specified on the cmake CLI or is already
492-
# in the CMakeCache.txt. This has precedence over the environment
493-
# variable DTC_OVERLAY_FILE
494-
elseif(DEFINED ENV{DTC_OVERLAY_FILE})
495-
set(DTC_OVERLAY_FILE $ENV{DTC_OVERLAY_FILE})
492+
# in the CMakeCache.txt.
496493
elseif(APP_BOARD_DTS)
497494
set(DTC_OVERLAY_FILE ${APP_BOARD_DTS})
498495
elseif(EXISTS ${APPLICATION_SOURCE_DIR}/${BOARD}.overlay)

doc/guides/dts/howtos.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ Here are some ways to set it:
210210
(``-DDTC_OVERLAY_FILE="file1.overlay;file2.overlay"``)
211211
#. with the CMake ``set()`` command in the application ``CMakeLists.txt``,
212212
before including zephyr's :file:`boilerplate.cmake` file
213-
#. using a ``DTC_OVERLAY_FILE`` environment variable (deprecated)
214213
#. create a ``boards/<BOARD>_<revision>.overlay`` file in the application
215214
folder for the current board revision. This requires that the board supports
216215
multiple revisions, see :ref:`porting_board_revisions`.

0 commit comments

Comments
 (0)