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

Re: [Xen-devel] [PATCH 2/2] tools: provide distclean target for OVMF



On Mon, 2015-03-02 at 14:45 +0000, Wei Liu wrote:
> On Mon, Mar 02, 2015 at 02:35:31PM +0000, Ian Campbell wrote:
> > On Mon, 2015-03-02 at 14:31 +0000, Wei Liu wrote:
> > > On Mon, Mar 02, 2015 at 02:20:57PM +0000, Ian Campbell wrote:
> > > > On Mon, 2015-03-02 at 10:52 +0000, Wei Liu wrote:
> > > > > OVMF's distclean target was missed in f9c9b1277 (tools: fix "make
> > > > > distclean").
> > > > 
> > > > tools/firmware/Makefile has:
> > > > subdir-distclean-ovmf: .phony
> > > >         rm -rf ovmf-dir ovmf-dir-remote
> > > > 
> > > > Shouldn't this be avoiding recursing into ovmf-dir in the first place?
> > > > 
> > > > Or is there some other reason to want this?
> > > > 
> > > 
> > > If you're in firmware directory and do "make distclean", make will
> > > recurse into ovmf to do "make distclean".
> > 
> > Really? Despite the rule I quoted above? How strange, I wonder why that
> > is.
> > 
> > I'd have expected "make distclean" to behave the same whether run in the
> > directory or recursed into frmo a higher level.
> > 
> 
> The problem is that subdir-distclean-ovmf should have been
> subdir-distclean-ovmf-dir. I think you prefer I fix it this way?

You guessed right!

> subidr-clean-ovmf should be -ovmf-dir following the same rule. I shall
> fix them all in one go.

Yes please.

> 
> Wei.
> 
> > > 
> > > Wei.
> > > 
> > > > > 
> > > > > Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
> > > > > Cc: Anthony Perard <anthony.perard@xxxxxxxxxx>
> > > > > Cc: Ian Campbell <ian.campbell@xxxxxxxxxx>
> > > > > Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
> > > > > ---
> > > > >  tools/firmware/ovmf-makefile | 3 +++
> > > > >  1 file changed, 3 insertions(+)
> > > > > 
> > > > > diff --git a/tools/firmware/ovmf-makefile 
> > > > > b/tools/firmware/ovmf-makefile
> > > > > index 2838744..c922d4d 100644
> > > > > --- a/tools/firmware/ovmf-makefile
> > > > > +++ b/tools/firmware/ovmf-makefile
> > > > > @@ -22,3 +22,6 @@ build:
> > > > >  .PHONY: clean
> > > > >  clean:
> > > > >       rm -rf ovmf.bin Build/*
> > > > > +
> > > > > +.PHONY: distclean
> > > > > +distclean: clean
> > > > 
> > 



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


 


Rackspace

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