From: "Teresa Gámez" <t.gamez@phytec.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/2] dtc: Seperate path and filename of dts
Date: Wed, 14 May 2014 09:54:31 +0200 [thread overview]
Message-ID: <1400054072-1680-1-git-send-email-t.gamez@phytec.de> (raw)
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
next reply other threads:[~2014-05-14 7:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-14 7:54 Teresa Gámez [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1400054072-1680-1-git-send-email-t.gamez@phytec.de \
--to=t.gamez@phytec.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox