of: per-file dtc compiler flags
authorFrank Rowand <frank.rowand@sony.com>
Wed, 26 Apr 2017 00:09:53 +0000 (17:09 -0700)
committerRob Herring <robh@kernel.org>
Thu, 27 Apr 2017 22:23:54 +0000 (17:23 -0500)
The dtc compiler version that adds initial support was available
in 4.11-rc1.  Add the ability to set an additional dtc compiler
flag is needed by overlays.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Rob Herring <robh@kernel.org>
scripts/Makefile.lib

index 8066b6185d1ec2eedbfc285e48792fa86e14eec6..01c77403a8030b32b260035c066155d4d2e0c786 100644 (file)
@@ -293,6 +293,8 @@ DTC_FLAGS += -Wnode_name_chars_strict \
        -Wproperty_name_chars_strict
 endif
 
+DTC_FLAGS += $(DTC_FLAGS_$(basetarget))
+
 # Generate an assembly file to wrap the output of the device tree compiler
 quiet_cmd_dt_S_dtb= DTB     $@
 cmd_dt_S_dtb=                                          \