mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] kbuild: fix DTC-native include path for dts/ directory
@ 2015-10-22  3:34 Masahiro Yamada
  2015-10-22  3:34 ` [PATCH 2/2] kbuild: Don't assume dts files live in arch/*/boot/dts Masahiro Yamada
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Masahiro Yamada @ 2015-10-22  3:34 UTC (permalink / raw)
  To: barebox

For the pre-processor to include sources below dts/ directory,
-I$(srctree)/dts/src is specified as an include path.  On the other
hand, for the DTC-native, -i $(srctree)/dts/src/$(SRCARCH) is
currently specified.

Theoretically, the pre-processor style (#include) and DTC-native
style (/include/) should work with the same include paths.

Currently, there are no users for the latter, so we can fix it safely.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 scripts/Makefile.lib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index e991f33..c529d15 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -258,7 +258,7 @@ quiet_cmd_dtc = DTC     $@
 cmd_dtc = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
 	$(objtree)/scripts/dtc/dtc -O dtb -o $@ -b 0 \
 		-i $(srctree)/arch/$(SRCARCH)/dts $(DTC_FLAGS) \
-		-i $(srctree)/dts/src/$(SRCARCH) \
+		-i $(srctree)/dts/src/ \
 		-d $(depfile).dtc $(dtc-tmp) ; \
 	cat $(depfile).pre $(depfile).dtc > $(depfile)
 
-- 
1.9.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-23  6:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22  3:34 [PATCH 1/2] kbuild: fix DTC-native include path for dts/ directory Masahiro Yamada
2015-10-22  3:34 ` [PATCH 2/2] kbuild: Don't assume dts files live in arch/*/boot/dts Masahiro Yamada
2015-10-22  7:35 ` [PATCH 1/2] kbuild: fix DTC-native include path for dts/ directory Sascha Hauer
2015-10-22 13:16 ` Sascha Hauer
2015-10-23  6:53   ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox