We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1663e commit 9b823d0Copy full SHA for 9b823d0
doc/guides/dts/index.rst
@@ -290,6 +290,14 @@ file. It includes the generated :file:`include/devicetree_unfixed.h` and
290
Do not include the generated C headers from the build directory directly.
291
Include :file:`devicetree.h` instead.
292
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
301
Generated macros
302
================
303
0 commit comments