All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: minyard@acm.org, qemu-devel@nongnu.org
Cc: Corey Minyard <cminyard@mvista.com>
Subject: Re: [Qemu-devel] [PATCH 13/15] configure: Copy some items from default configs to target configs
Date: Fri, 10 Apr 2015 13:47:10 +0200	[thread overview]
Message-ID: <5527B83E.3000603@redhat.com> (raw)
In-Reply-To: <1428436304-24044-14-git-send-email-minyard@acm.org>



On 07/04/2015 21:51, minyard@acm.org wrote:
> From: Corey Minyard <cminyard@mvista.com>
> 
> This is to get CONFIG_ACPI into the target config so devices that may
> use ACPI know to do this or not.
> 
> Signed-off-by: Corey Minyard <cminyard@mvista.com>
> ---
>  configure | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/configure b/configure
> index 09c9225..e301259 100755
> --- a/configure
> +++ b/configure
> @@ -5073,6 +5073,9 @@ if test "$linux" = "yes" ; then
>      fi
>  fi
>  
> +# Copy these from the default config to the target config
> +defconfig_to_target="CONFIG_ACPI"
> +
>  for target in $target_list; do
>  target_dir="$target"
>  config_target_mak=$target_dir/config-target.mak
> @@ -5431,6 +5434,10 @@ fi
>  echo "LDFLAGS+=$ldflags" >> $config_target_mak
>  echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak
>  
> +for i in $defconfig_to_target; do
> +        grep $i $source_path/default-configs/${target}.mak >> $config_target_mak
> +done
> +
>  done # for target in $targets
>  
>  if [ "$pixman" = "internal" ]; then
> 

This doesn't support "include" directives.

Also, it's ugly that you have to compile files per-target.

Perhaps you can use something like:

CONFIG_NOT_ACPI   := $(call lnot,$(CONFIG_ACPI))
CONFIG_NOT_SMBIOS := $(call lnot,$(CONFIG_SMBIOS))

common-obj-$(CONFIG_ISA_IPMI) += isa_ipmi.o
common-obj-$(call land,$(CONFIG_ISA_IPMI),$(CONFIG_ACPI))     += isa_ipmi-ssdt.o
common-obj-$(call land,$(CONFIG_ISA_IPMI),$(CONFIG_NOT_ACPI)) += isa_ipmi-ssdt-stub.o
common-obj-$(call land,$(CONFIG_ISA_IPMI),$(CONFIG_SMBIOS))   += isa_ipmi-smbios.o
common-obj-$(call land,$(CONFIG_ISA_IPMI),$(CONFIG_NOT_ACPI)) += isa_ipmi-smbios-stub.o

# Make toplevel always build these
common-obj-$(CONFIG_ALL) += isa_ipmi-ssdt-stub.o isa_ipmi-smbios-stub.o

Paolo

  reply	other threads:[~2015-04-10 12:17 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-07 19:51 [Qemu-devel] [PATCH 00/15] IPMI device for qemu minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 01/15] Add a base IPMI interface minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 02/15] ipmi: Add a PC ISA type structure minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 03/15] ipmi: Add a KCS low-level interface minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 04/15] ipmi: Add a BT " minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 05/15] ipmi: Add a local BMC simulation minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 06/15] ipmi: Add an external connection simulation interface minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 07/15] ipmi: Add tests minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 08/15] ipmi: Add documentation minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 09/15] ipmi: Add migration capability to the IPMI device minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 10/15] smbios: Add a function to directly add an entry minyard
2015-04-12 16:05   ` Michael S. Tsirkin
2015-04-13  1:26     ` Corey Minyard
2015-04-13  7:00       ` Michael S. Tsirkin
2015-04-13 16:34         ` Corey Minyard
2015-04-13 16:40           ` Paolo Bonzini
2015-04-14  6:31             ` Michael S. Tsirkin
2015-04-14 15:30               ` Corey Minyard
2015-04-14 16:31               ` Paolo Bonzini
2015-04-14  6:41           ` Michael S. Tsirkin
2015-04-07 19:51 ` [Qemu-devel] [PATCH 11/15] pc: Postpone SMBIOS table installation to post machine init minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 12/15] ipmi: Add SMBIOS table entry minyard
2015-04-07 19:51 ` [Qemu-devel] [PATCH 13/15] configure: Copy some items from default configs to target configs minyard
2015-04-10 11:47   ` Paolo Bonzini [this message]
2015-04-07 19:51 ` [Qemu-devel] [PATCH 14/15] acpi: Add hooks for adding things to the SSDT table minyard
2015-04-10 11:29   ` Paolo Bonzini
2015-04-12 16:17   ` Michael S. Tsirkin
2015-04-13  1:30     ` Corey Minyard
2015-04-13  6:36       ` Michael S. Tsirkin
2015-04-13  8:39         ` Paolo Bonzini
2015-04-13 11:32           ` Michael S. Tsirkin
2015-04-13 13:47             ` Paolo Bonzini
2015-04-13 13:44       ` Paolo Bonzini
2015-04-13 16:00         ` Corey Minyard
2015-04-13 16:41           ` Paolo Bonzini
2015-04-10 11:48 ` [Qemu-devel] [PATCH 00/15] IPMI device for qemu Paolo Bonzini

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=5527B83E.3000603@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=cminyard@mvista.com \
    --cc=minyard@acm.org \
    --cc=qemu-devel@nongnu.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.