Re: How to share variables with a sub-make command in a Kbuild Makefile?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux