From: Wei Liu Subject: Re: [PATCH 6/7] build system: stubdom targets now depends on mini-os target Date: Mon, 2 Feb 2015 15:25:10 +0000 Message-ID: <20150202152510.GE2743@zion.uk.xensource.com> References: <1422881943-7687-1-git-send-email-wei.liu2@citrix.com> <1422881943-7687-7-git-send-email-wei.liu2@citrix.com> <1422889304.4801.8.camel@citrix.com> <20150202151211.GD2743@zion.uk.xensource.com> <21711.38011.702912.871234@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21711.38011.702912.871234@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: talex5@gmail.com, Wei Liu , Ian Campbell , stefano.stabellini@eu.citrix.com, anil@recoil.org, xen-devel@lists.xen.org, pooka@iki.fi, samuel.thibault@ens-lyon.org, dgdegra@tycho.nsa.gov List-Id: xen-devel@lists.xenproject.org On Mon, Feb 02, 2015 at 03:15:07PM +0000, Ian Jackson wrote: > Wei Liu writes ("Re: [PATCH 6/7] build system: stubdom targets now depends on mini-os target"): > > So I once had something like: > > > > $(XEN_ROOT)/Config.mk: mini-os-dir > > > > Mini-os got clone and the build proceeded. But stubdom build still broke > > miserably, because *FLAGS in stubdom/Makefile are not reevaluated. > > This seems wrong to me because I would expect make to actually read > the relevant file it has just built. But given how bad the > xen.git/stubdom makefiles are, I'm not convinced that trying to debug > this will be very fruitful :-/. > FWIW I did this test myself. == Config.mk include New.mk == end Config.mk == Makefile include Config.mk .PHONY: all @echo $(VAR) New.mk: @echo "VAR = 123" > New.mk VAR += ABC == end Makefile And the final result is VAR = "123 ABC". However this is not the case for stubdom. :-/ I agree it won't be fruitful in debugging this. Wei. > Ian.