scripts: rework edtlib warnings-turned-errors
Create a "global" gen_defines.py option and edtlib.EDT constructor kwarg that turns edtlib-specific warnings into errors. This applies to edtlib-specific warnings only. Warnings that are just dupes of dtc warnings are not affected. Use it from twister to increase DT testing coverage in upstream zephyr. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
f261d77c75
commit
c4079e4be2
3 changed files with 20 additions and 14 deletions
|
@ -2008,7 +2008,7 @@ class CMake():
|
|||
ldflags = "-Wl,--fatal-warnings"
|
||||
cflags = "-Werror"
|
||||
aflags = "-Wa,--fatal-warnings"
|
||||
gen_defines_args = "--err-on-deprecated-properties"
|
||||
gen_defines_args = "--edtlib-Werror"
|
||||
else:
|
||||
ldflags = cflags = aflags = ""
|
||||
gen_defines_args = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue