scripts/dtc: consolidate include path options in Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 4 Jul 2018 01:59:23 +0000 (10:59 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 22 Aug 2018 14:21:36 +0000 (23:21 +0900)
commite3fd9b5384f37e55261ebd261ad97951a44ece50
tree3aa3e00317afbf86e9ff3d43f6110f3c7375c47e
parentad1d69735878a6bf797705b5d2a20316d35e1113
scripts/dtc: consolidate include path options in Makefile

It is tedious to specify extra compiler options for every file.
HOST_EXTRACFLAGS is useful to add options to all files in a
directory.

-I$(src)/libfdt is needed for all the files in this directory
to include libfdt_env.h etc. from scripts/dtc/libfdt/.

On the other hand, -I$(src) is used to include check-in headers
from generated C files.  Thus, I added it only to dtc-lexer.lex.o
and dtc-parser.tab.o .

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Rob Herring <robh@kernel.org>
scripts/dtc/Makefile