* Xen-unstable "make clean" error on a freshly cloned tree
@ 2015-03-01 22:30 Sander Eikelenboom
2015-03-02 9:40 ` Ian Campbell
0 siblings, 1 reply; 2+ messages in thread
From: Sander Eikelenboom @ 2015-03-01 22:30 UTC (permalink / raw)
To: Wei Liu; +Cc: xen-devel, Ian Campbell
Hi Wei / Ian,
I'm getting this error on a "make clean" on a freshly
cloned xen-unstable staging tree. It's probably because the make script
can't handle a make clean on a tree which hasn't cloned the mini-os tree
at least once as part of a build.
make[2]: Entering directory `/usr/src/new/xen-unstable/tools'
make -C python clean
make[3]: Entering directory `/usr/src/new/xen-unstable/tools/python'
find . \( -name "*.py[ocd]" -o -name "*~" -o -name "_*.[hc]" \) -delete
rm -rf build/
rm -f .*.d
make[3]: Leaving directory `/usr/src/new/xen-unstable/tools/python'
make[2]: Leaving directory `/usr/src/new/xen-unstable/tools'
make[2]: Entering directory `/usr/src/new/xen-unstable/tools'
make -C pygrub clean
make[3]: Entering directory `/usr/src/new/xen-unstable/tools/pygrub'
rm -rf build tmp *.pyc *.pyo *.o *.a *~ a.out .*.d
make[3]: Leaving directory `/usr/src/new/xen-unstable/tools/pygrub'
make[2]: Leaving directory `/usr/src/new/xen-unstable/tools'
make[1]: Leaving directory `/usr/src/new/xen-unstable/tools'
make -C stubdom crossclean
make[1]: Entering directory `/usr/src/new/xen-unstable/stubdom'
Makefile:5: *** Please run `make mini-os-dir' in top-level directory. Stop.
make[1]: Leaving directory `/usr/src/new/xen-unstable/stubdom'
make: *** [clean-stubdom] Error 2
--
Sander
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Xen-unstable "make clean" error on a freshly cloned tree
2015-03-01 22:30 Xen-unstable "make clean" error on a freshly cloned tree Sander Eikelenboom
@ 2015-03-02 9:40 ` Ian Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2015-03-02 9:40 UTC (permalink / raw)
To: Sander Eikelenboom; +Cc: xen-devel, Wei Liu
On Sun, 2015-03-01 at 23:30 +0100, Sander Eikelenboom wrote:
> Hi Wei / Ian,
>
> I'm getting this error on a "make clean" on a freshly
> cloned xen-unstable staging tree. It's probably because the make script
> can't handle a make clean on a tree which hasn't cloned the mini-os tree
> at least once as part of a build.
Yes. I thought we had addressed that during review, but it seems we only
caught one of the two places.
Wei,
I think this bit of stubdom/Makefile:
ifeq ($(wildcard $(MINI_OS)/Config.mk),)
$(error Please run `make mini-os-dir' in top-level directory)
endif
Needs something like this pattern from the end of tools/Rules.mk,
combined with the wildcard stuff (or switching to a dependency on
Config.mk):
ifeq (,$(findstring clean,$(MAKECMDGOALS)))
$(XEN_ROOT)/config/Tools.mk:
$(error You have to run ./configure before building or installing the tools)
endif
I think that'll catch clean and distclean.
Can you whip up a patch please.
Ian.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-02 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-01 22:30 Xen-unstable "make clean" error on a freshly cloned tree Sander Eikelenboom
2015-03-02 9:40 ` Ian Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.