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

Re: [Xen-devel] [PATCH] xen/Makefile: remove all temporary files for every architecture



On Thu, Mar 23, 2017 at 11:07:04AM +0000, Wei Liu wrote:
> On Thu, Mar 23, 2017 at 02:31:37AM +0100, Luca Miccio wrote:
> > Execute the clean target for both arm and x86 architecture.
> > 
> > When trying to build Xen for a different architecture in the same
> > tree, the command make clean will only remove temporary files for
> > the host architecture.
> > This will lead a compilation error when trying to build ARM64 and
> > ARM32 Xen in the same tree.
> > (See also: 
> > https://lists.xenproject.org/archives/html/xen-devel/2016-11/msg02176.html)
> > 
> > Signed-off-by: Luca Miccio <lucmiccio@xxxxxxxxx>
> > ---
> >  xen/Makefile | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/xen/Makefile b/xen/Makefile
> > index dc6862e04d..fcd5c7e9d6 100644
> > --- a/xen/Makefile
> > +++ b/xen/Makefile
> > @@ -115,7 +115,8 @@ _clean: delete-unfresh-files
> >     $(MAKE) -f $(BASEDIR)/Rules.mk -C drivers clean
> >     $(MAKE) -f $(BASEDIR)/Rules.mk -C xsm clean
> >     $(MAKE) -f $(BASEDIR)/Rules.mk -C crypto clean
> > -   $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/$(TARGET_ARCH) clean
> > +   $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/arm clean
> > +   $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/x86 clean
> 
> A more future-proof way of doing this is to use find to collect a list
> of directory under arch/ and iterate.
> 
> But I don't see a new architecture support coming any time soon, so
> this is just a suggestion.
> 

Also, you seem to have missed overriding TARGET_ARCH and TARGET_SUBARCH.
I believe there are references to them in arch-specific Makefiles.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.