From: Nikolaus Schulz <nikolaus.schulz-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
To: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Nikolaus Schulz
<nikolaus.schulz-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
Subject: [cbootimage-configs PATCH v2] post.mk: Create dependency makefile by makefile rule
Date: Fri, 31 Mar 2017 17:01:53 +0200 [thread overview]
Message-ID: <20170331150153.14606-2-nikolaus.schulz@avionic-design.de> (raw)
In-Reply-To: <20170331150153.14606-1-nikolaus.schulz-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
Creating the emmc image requires creating the bct file and the
bootloader image first. These dependencies are written to a makefile
snippet that is created by the gen-image-deps.sh script. But that
script is only invoked when the rule that creates the emmc image is run,
which is too late for creating the dependencies makefile.
Add a rule to post.mk that tells make how to create the dependencies
makefile; with that in place, make automatically makes the dependency
makefile before executing any other rules.
Signed-off-by: Nikolaus Schulz <nikolaus.schulz-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
---
build/post.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/build/post.mk b/build/post.mk
index 979d8ce..a647c81 100644
--- a/build/post.mk
+++ b/build/post.mk
@@ -21,11 +21,12 @@ bcts: $(bcts)
images: $(images)
image_deps := $(addprefix .,$(addsuffix .d,$(images)))
+$(image_deps): .%.d : %.cfg
+ ../../../build/gen-image-deps.sh $< $(@:.%.d=%) $@
-include $(image_deps)
%.bct: %.bct.cfg
cbootimage -gbct -$(soc) $< $@
%.img: %.img.cfg
- ../../../build/gen-image-deps.sh $< $@ .$@.d
cbootimage -$(soc) $< $@
--
2.11.0
next prev parent reply other threads:[~2017-03-31 15:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 15:01 [cbootimage-configs PATCH v2] post.mk: Create dependency makefile by Nikolaus Schulz
[not found] ` <20170331150153.14606-1-nikolaus.schulz-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2017-03-31 15:01 ` Nikolaus Schulz [this message]
[not found] ` <20170331150153.14606-2-nikolaus.schulz-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2017-03-31 15:46 ` [cbootimage-configs PATCH v2] post.mk: Create dependency makefile by makefile rule Stephen Warren
[not found] ` <8bf27012-af67-3faf-206b-ebd5cd76b276-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2017-04-03 12:22 ` Nikolaus Schulz
[not found] ` <20170403122214.cqth3myvv6tpysr4-RM9K5IK7kjJNqqvv04100KcOhU4Rzj621B7CTYaBSLdn68oJJulU0Q@public.gmane.org>
2017-04-05 15:26 ` Stephen Warren
2017-04-03 12:25 ` [cbootimage-configs PATCH 1/2] post.mk: Add dependency of emmc image on bct file Nikolaus Schulz
[not found] ` <20170403122511.7194-1-nikolaus.schulz-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
2017-04-03 12:25 ` [cbootimage-configs PATCH 2/2] Use fixed variables to track image dependencies Nikolaus Schulz
2017-04-05 15:21 ` [cbootimage-configs PATCH 1/2] post.mk: Add dependency of emmc image on bct file Stephen Warren
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=20170331150153.14606-2-nikolaus.schulz@avionic-design.de \
--to=nikolaus.schulz-rm9k5ik7kjkj5m59nbduvrnah6klmebb@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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