Skip to content

Commit 9b823d0

Browse files
agansarigalak
authored andcommitted
doc: device tree - document pre_dt_board.cmake
Document pre_dt_board.cmake file usage. Signed-off-by: Andrei Gansari <[email protected]>
1 parent 8f1663e commit 9b823d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/guides/dts/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,14 @@ file. It includes the generated :file:`include/devicetree_unfixed.h` and
290290
Do not include the generated C headers from the build directory directly.
291291
Include :file:`devicetree.h` instead.
292292

293+
Since some boards may need special instructions for the device tree compiler
294+
(e.g. warning suppression), create a file named ``pre_dt_board.cmake`` inside
295+
the board's folder and add the extra flags inside.
296+
297+
.. code-block:: cmake
298+
299+
list(APPEND EXTRA_DTC_FLAGS "-Wno-simple_bus_reg")
300+
293301
Generated macros
294302
================
295303

0 commit comments

Comments
 (0)