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:
@@ -192,7 +192,7 @@ rule CompileDTS
|
|||||||
|
|
||||||
actions 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
|
rule Ld
|
||||||
|
|||||||
Reference in New Issue
Block a user