mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/2] dtc: Seperate path and filename of dts
@ 2014-05-14  7:54 Teresa Gámez
  2014-05-14  7:54 ` [ptxdist] [PATCH 2/2] barebox_mlo: use images/barebox-*-mlo.img as images Teresa Gámez
  2014-05-14  8:49 ` [ptxdist] [PATCH 1/2] dtc: Seperate path and filename of dts Alexander Aring
  0 siblings, 2 replies; 6+ messages in thread
From: Teresa Gámez @ 2014-05-14  7:54 UTC (permalink / raw)
  To: ptxdist

Creating multiple device trees result in a quite
long DTC_OFTREE_DTS variable. Splitting it into a
path variable and file variable makes it more handy.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
---
 platforms/dtc.in    |    7 ++++++-
 rules/post/dts.make |    8 ++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/platforms/dtc.in b/platforms/dtc.in
index a39af97..de10aaa 100644
--- a/platforms/dtc.in
+++ b/platforms/dtc.in
@@ -19,9 +19,14 @@ config DTC_INSTALL_OFTREE
 	  Creates an package to install the 'oftree' file to /boot
 	  of your target system.
 
+config DTC_OFTREE_DTS_PATH
+	string "path to source dts file"
+	help
+	  Define path to the dts source file.
+
 config DTC_OFTREE_DTS
 	string "source dts file"
-	default "${KERNEL_DIR}/arch/${PTXCONF_KERNEL_ARCH_STRING}/boot/dts/<yourboard>.dts"
+	default "<yourboard>.dts"
 	help
 	  Select the dts file to use for the device tree binary
 	  blob generation. Default is to use the one shipped with
diff --git a/rules/post/dts.make b/rules/post/dts.make
index 8d2b7fe..b39a4f0 100644
--- a/rules/post/dts.make
+++ b/rules/post/dts.make
@@ -12,10 +12,14 @@
 # defined in post/ to make sure PTXCONF_DTC_OFTREE_DTS is fully defined
 # .dtb depends on the .dts and dtc.install for all other dependencies
 #
+
+DTS_PATH = $(call remove_quotes,$(PTXCONF_DTC_OFTREE_DTS_PATH))
+
 $(foreach dts, $(call remove_quotes,$(PTXCONF_DTC_OFTREE_DTS)), \
-	$(eval $(IMAGEDIR)/$(call ptx/dtb, $(dts)): $(dts)  $(STATEDIR)/dtc.install))
+	$(eval $(IMAGEDIR)/$(call ptx/dtb, $(DTS_PATH)/$(dts)): \
+	$(DTS_PATH)/$(dts)  $(STATEDIR)/dtc.install))
 
 $(foreach dts, $(call remove_quotes,$(PTXCONF_DTC_OFTREE_DTS)), \
-	$(eval $(dts):  $(STATEDIR)/kernel.extract.post))
+	$(eval $(DTS_PATH)/$(dts):  $(STATEDIR)/kernel.extract.post))
 
 # vim: syntax=make
-- 
1.7.0.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2014-05-14  9:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-14  7:54 [ptxdist] [PATCH 1/2] dtc: Seperate path and filename of dts Teresa Gámez
2014-05-14  7:54 ` [ptxdist] [PATCH 2/2] barebox_mlo: use images/barebox-*-mlo.img as images Teresa Gámez
2014-05-14  8:47   ` Alexander Aring
2014-05-14  9:04     ` Uwe Kleine-König
2014-05-14  9:22       ` Alexander Aring
2014-05-14  8:49 ` [ptxdist] [PATCH 1/2] dtc: Seperate path and filename of dts Alexander Aring

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