From 128e69f9e5607ea15bcfa96f3e982901ccc4496d Mon Sep 17 00:00:00 2001 From: "Ithamar R. Adema" Date: Fri, 31 Oct 2014 10:57:07 +0100 Subject: [PATCH] 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. --- build/jam/MainBuildRules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/jam/MainBuildRules b/build/jam/MainBuildRules index b8c63b5b19..00a0c613c1 100644 --- a/build/jam/MainBuildRules +++ b/build/jam/MainBuildRules @@ -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