CompileDTS: use preprocessor on .dts files

Recent linux behaviour (and also copied by BSD) is to preprocess
DTS files with the C preprpocessor to enable sharing constants between
driver implementation and DTS content for more readability.
This commit is contained in:
Ithamar R. Adema 2014-10-31 10:57:07 +01:00
parent f4c28fe71f
commit 128e69f9e5

View File

@ -192,7 +192,7 @@ rule CompileDTS
actions CompileDTS
{
dtc -O dtb -o $(1) $(2);
cpp -P -xassembler-with-cpp -I$(HAIKU_TOP)/src/data/dts/ $(2) | dtc -O dtb -o $(1) -i $(HAIKU_TOP)/src/data/dts ;
}
rule Ld