From: Michal Marek <mmarek@suse.cz>
To: Joel A Fernandes <agnel.joel@gmail.com>
Cc: linux-kbuild@vger.kernel.org
Subject: Re: How to share variables with a sub-make command in a Kbuild Makefile?
Date: Fri, 22 Feb 2013 00:01:58 +0100 [thread overview]
Message-ID: <5126A766.9070604@suse.cz> (raw)
In-Reply-To: <CAD=GYpa5OTy8Jd4Pevgabvc0J+mx6Ba+_K8iAsGPwD3Bc7hknw@mail.gmail.com>
On 9.2.2013 17:34, Joel A Fernandes wrote:
> Hi,
> I am trying to create a patch that involves a call to a submake and
> sharing a variable with it.
>
> The the top level Makefile is arch/arm/Makefile and has something like:
> dtbs: scripts
> $(Q)$(MAKE) -e $(build)=$(boot)/dts MACHINE=$(MACHINE) dtbs
> # Make use of share-var modified by the submake
> echo $(share-var)
>
> In the sub-make Makefile, I want to modify a variable and have it
> reflect in the top Makefile
> dtbs: $(addprefix $(obj)/, $(dtb-y))
> $(Q)rm -f $(obj)/../*.dtb
> share-var += "new stuff"
This is not possible, because we run a separate make process for every
subdirectory.
Michal
prev parent reply other threads:[~2013-02-21 23:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-09 16:34 How to share variables with a sub-make command in a Kbuild Makefile? Joel A Fernandes
2013-02-09 16:42 ` Joel A Fernandes
2013-02-21 23:01 ` Michal Marek [this message]
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=5126A766.9070604@suse.cz \
--to=mmarek@suse.cz \
--cc=agnel.joel@gmail.com \
--cc=linux-kbuild@vger.kernel.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