[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] stubdom: simplify and fix Makefile
On Fri, Nov 04, 2016 at 10:53:29AM +0100, Juergen Gross wrote: > The stubdom Makefile is setting up links for various libraries. This > is done only once when qemu links are created and each library's links > are updated/created only if the link for the Makefile of the library > isn't already existing. In case a source is added to one library after > doing the first make of stubdom the new source won't be linked by a > new call of make. > I think this is a bug, hence I intend to take this patch in 4.8. > Instead of testing the existence of the Makefile link use a make > dependency which will catch changes of the linked Makefile, too. > > At the same time don't repeat the same link pattern 7 times but use a > make macro to do the linking. > > Signed-off-by: Juergen Gross <jgross@xxxxxxxx> > --- > stubdom/Makefile | 77 > ++++++++++++++++++++++++++------------------------------ > 1 file changed, 35 insertions(+), 42 deletions(-) > > diff --git a/stubdom/Makefile b/stubdom/Makefile > index 2921f30..9b30b58 100644 > --- a/stubdom/Makefile > +++ b/stubdom/Makefile > @@ -305,7 +305,41 @@ ioemu/linkfarm.stamp: > touch ioemu/linkfarm.stamp > endif > > -mk-headers-$(XEN_TARGET_ARCH): $(IOEMU_LINKFARM_TARGET) > +define do_links > + touch $@ This should be moved to the last line of this macro. If you agree on this, I can fix it up while committing. > + mkdir -p $(dir $@)include > + cd $(dir $@); \ > + ln -sf $(dir $<)include/*.h include/; \ > + ln -sf $(dir $<)*.[ch] .; \ > + ln -sf $(dir $<)Makefile . > +endef > + Wei. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |