All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Christian Ehrhardt
	<ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH] portability: add top level config-$arch	files
Date: Tue, 08 Jan 2008 11:36:26 -0600	[thread overview]
Message-ID: <1199813786.5689.5.camel@thinkpad> (raw)
In-Reply-To: <11998114633101-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>

This is a patch that we do need. Though instead of redefining "qemu"
target in every config file. It's best to use a variable and have "qemu"
target in the main Makefile use that variable for dependencies.

example:
Makefile
      qemu: $(ARCH_QEMU_DEP)

config-x86
      ARCH_QEMU_DEP = libkvm extboot

Same goes for the "all" target. This is how we ended up doing it in the
user directory & libkvm dir.


On Tue, 2008-01-08 at 17:57 +0100, Christian Ehrhardt wrote:
> Subject: [PATCH] portability: add top level config-$arch files
> From: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> 
> This allows per arch configuration for the top level Makefile of
> kvm-userspace e.g. allowing to disable extboot for non x86 or disabling
> kvmctl build until ported to an architecture.
> I'm aware that we now have already 8 config-$arch files in kvm-userspace
> and this patch adds 4 more so maybe we need some kind of consolidation in
> the future - comments and approaches to that are very welcome.
> 
> Signed-off-by: Christian Ehrhardt <ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> 
>  Makefile             |    5 +----
>  b/config-i386.mak    |    2 ++
>  b/config-ia64.mak    |    2 ++
>  b/config-powerpc.mak |    4 ++++
>  b/config-x86_64.mak  |    2 ++
>  5 files changed, 11 insertions(+), 4 deletions(-)
> 
> diff -r 958dc9839a95 Makefile
> --- a/Makefile	Tue Jan 08 13:06:03 2008 +0100
> +++ b/Makefile	Tue Jan 08 13:59:10 2008 +0100
> @@ -1,5 +1,5 @@
> -
>  include config.mak
> +include config-$(ARCH).mak
> 
>  DESTDIR=
> 
> @@ -7,14 +7,11 @@ rpmrelease = devel
> 
>  .PHONY: kernel user libkvm qemu bios vgabios extboot clean
> 
> -all: $(if $(WANT_MODULE), kernel) user libkvm qemu
> -
>  kcmd = $(if $(WANT_MODULE),,@\#)
> 
>  qemu kernel user libkvm:
>  	$(MAKE) -C $@
> 
> -qemu: libkvm extboot
>  user: libkvm
> 
>  bios:
> diff -r 958dc9839a95 config-i386.mak
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/config-i386.mak	Tue Jan 08 13:59:10 2008 +0100
> @@ -0,0 +1,2 @@
> +all: $(if $(WANT_MODULE), kernel) user libkvm qemu
> +qemu: libkvm extboot
> diff -r 958dc9839a95 config-ia64.mak
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/config-ia64.mak	Tue Jan 08 13:59:10 2008 +0100
> @@ -0,0 +1,2 @@
> +all: $(if $(WANT_MODULE), kernel) user libkvm qemu
> +qemu: libkvm extboot
> diff -r 958dc9839a95 config-powerpc.mak
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/config-powerpc.mak	Tue Jan 08 13:59:10 2008 +0100
> @@ -0,0 +1,4 @@
> +# kvmctl (user) not yet ported to powerpc
> +all: $(if $(WANT_MODULE), kernel) libkvm qemu
> +# extboot is x86 only
> +qemu: libkvm
> diff -r 958dc9839a95 config-x86_64.mak
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/config-x86_64.mak	Tue Jan 08 13:59:10 2008 +0100
> @@ -0,0 +1,2 @@
> +all: $(if $(WANT_MODULE), kernel) user libkvm qemu
> +qemu: libkvm extboot
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> kvm-devel mailing list
> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/kvm-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

      parent reply	other threads:[~2008-01-08 17:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-08 16:57 [PATCH] portability: add top level config-$arch files Christian Ehrhardt
     [not found] ` <11998114633101-git-send-email-ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2008-01-08 17:36   ` Jerone Young [this message]

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=1199813786.5689.5.camel@thinkpad \
    --to=jyoung5-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=ehrhardt-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
    --cc=kvm-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 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.