mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2 1/2] dtc: Seperate path and filename of dts
@ 2014-05-15  9:10 Teresa Gámez
  2014-05-15  9:10 ` [ptxdist] [PATCH v2 2/2] barebox_mlo: use images/barebox-*-mlo.img as images Teresa Gámez
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Teresa Gámez @ 2014-05-15  9:10 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>
---
Changed v2:
- Add default for DTC_OFFTREE_DTS_PATH

 platforms/dtc.in    |    8 +++++++-
 rules/post/dts.make |    8 ++++++--
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/platforms/dtc.in b/platforms/dtc.in
index a39af97..dbf3c55 100644
--- a/platforms/dtc.in
+++ b/platforms/dtc.in
@@ -19,9 +19,15 @@ 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"
+	default "${KERNEL_DIR}/arch/${PTXCONF_KERNEL_ARCH_STRING}/boot/dts/"
+	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] 7+ messages in thread

end of thread, other threads:[~2014-06-20  7:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-15  9:10 [ptxdist] [PATCH v2 1/2] dtc: Seperate path and filename of dts Teresa Gámez
2014-05-15  9:10 ` [ptxdist] [PATCH v2 2/2] barebox_mlo: use images/barebox-*-mlo.img as images Teresa Gámez
2014-06-11  6:30   ` Michael Olbrich
2014-05-15  9:38 ` [ptxdist] [PATCH v2 1/2] dtc: Seperate path and filename of dts Alexander Aring
2014-05-16  6:45 ` Alexander Aring
2014-06-11  6:29   ` Michael Olbrich
2014-06-20  7:23     ` Alexander Aring

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