From: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Hollis Blanchard <hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: kvm-devel
<kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
kvm-ppc-devel
<kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [kvm-ppc-devel] [PATCH 1/2] [v1] consolidate i386 & x86-64 user dir make rules
Date: Tue, 23 Oct 2007 11:06:45 -0500 [thread overview]
Message-ID: <1193155605.5735.27.camel@thinkpad> (raw)
In-Reply-To: <1193154751.22407.23.camel@basalt>
On Tue, 2007-10-23 at 10:52 -0500, Hollis Blanchard wrote:
> On Tue, 2007-10-23 at 10:45 -0500, Jerone Young wrote:
> > On Tue, 2007-10-23 at 10:21 -0500, Hollis Blanchard wrote:
> > > > diff --git a/user/config-x86-common.mak b/user/config-x86-common.mak
> > > > new file mode 100644
> > > > --- /dev/null
> > > > +++ b/user/config-x86-common.mak
> > > > @@ -0,0 +1,16 @@
> > > > +#This is a make file with common rules for both x86 & x86-64
> > > > +
> > > > +all: kvmctl libkvm.a flatfiles
> > > > +
> > > > +kvmctl: LDFLAGS += -pthread -lrt
> > > > +
> > > > +kvmctl: kvmctl.o main.o
> > > > +
> > > > +libkvm.a: kvmctl.o
> > > > + $(AR) rcs $@ $^
> > > > +
> > > > +balloon_ctl: balloon_ctl.o
> > > > +
> > > > +flatfiles-common = test/bootstrap test/vmexit.flat test/smp.flat
> > > > +
> > > > +flatfiles: $(flatfiles-common) $(flatfiles)
> > > > diff --git a/user/config-x86_64.mak b/user/config-x86_64.mak
> > > > --- a/user/config-x86_64.mak
> > > > +++ b/user/config-x86_64.mak
> > > > @@ -3,5 +3,9 @@ bits = 64
> > > > bits = 64
> > > > ldarch = elf64-x86-64
> > > > CFLAGS += -m64
> > > > +CFLAGS += -D__x86_64__
> > > > +CFLAGS += -I $(KERNELDIR)/include
> > > >
> > > > flatfiles = test/access.flat test/irq.flat test/sieve.flat test/simple.flat test/stringio.flat test/memtest1.flat
> > > > +
> > > > +include config-x86-common.mak
> > >
> > > I think you're clobbering flatfiles in config-x86-common.mak .
> >
> > PATCH 2 moves all the rest of the flatfile rules to
> > config-x86-common.mak. So nothing gets clobbered.
>
> But THIS patch clobbers it.
Oh, It does not clobber flatfiles. It uses it. So in
config-x86-common.mak there is a rule
flatfiles: $(flatfiles-common) $(flatfiles)
Acutally I thought the same too. But this is actually in the original
makefile. It doesn't clobber it apparently. But for saftey I'll change
the name of this rule as it shouldn't be the same name as variable.
>
> > > Philosophically, I don't think that targets like "all" should be moved
> > > into arch-specific makefiles. Also, the kvmctl and libkvm.a targets
> > > should both be in the common Makefile.
> >
> > So "all" is going to be different for everyone. Since all the test are
> > not common, and all will not use flat files.
> >
> > Also kvmctl ad libkvm.a will be diffrenent for everyone. But this could
> > also be made into a variable. With new split code (soon to be coming to
> > a kvm-devel list near you). Here is an example of how it will look
> > later. The names may change but you get the idea.
> >
> > Examples x86:
> > kvmctl: kvmctl-x86.o kvmctl.o main-x86.o main.o
> >
> > libkvm.a: kvmctl.o kvmctl-x86.o
> >
> > This split may also grow more .. as maybe the apic stuff will get
> > moved to it's own file.
> >
> >
> > Example Powerpc:
> > kvmctl: kvmctl-powerpc.o kvmctl.o main.o main-x86.o
> >
> >
> > Now one way could be is to create a variable in the arch specific
> > makefiles for kvmctl & libkvm . So that for x86 you woud have
> >
> > KVMCTL= kvmctl-x86.o kvmctl.o main-x86.o main.o
> >
> > Then in the main Makefile.
> >
> > kvmctl: $(KVMCTL)
>
> Exactly: that way we can ensure that every arch builds a common set of
> targets.
>
> > I personally think having the declaration in each arch makes things less
> > confusing.
>
> I can't tell if you're agreeing or if you forgot a negative. I agree
> that each arch should define e.g. "kvmctl_objs".
Well I guess I'm doing both :-). Either way will work. Having a variable
"kvmctl_objs" may be a better way. I'll redo and send again.
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
next prev parent reply other threads:[~2007-10-23 16:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-23 5:57 [PATCH 1/2] [v1] consolidate i386 & x86-64 user dir make rules Jerone Young
2007-10-23 15:21 ` [kvm-ppc-devel] " Hollis Blanchard
2007-10-23 15:24 ` Hollis Blanchard
2007-10-23 15:35 ` Jerone Young
2007-10-23 15:45 ` Jerone Young
2007-10-23 15:52 ` Hollis Blanchard
2007-10-23 16:06 ` Jerone Young [this message]
2007-10-23 18:10 ` Hollis Blanchard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1193155605.5735.27.camel@thinkpad \
--to=jyoung5-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox