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