From: "Michael S. Tsirkin" <mst@redhat.com>
To: Marcel Apfelbaum <marcel.a@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] configure: add CONFIG_IASL to config-host.h
Date: Wed, 25 Dec 2013 16:22:22 +0200 [thread overview]
Message-ID: <20131225142222.GC32493@redhat.com> (raw)
In-Reply-To: <1387968616-3629-2-git-send-email-marcel.a@redhat.com>
On Wed, Dec 25, 2013 at 12:50:15PM +0200, Marcel Apfelbaum wrote:
> Acpi unit-tests will extract the iasl executable
> from CONFIG_IASL define.
>
> Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
> ---
> scripts/create_config | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/scripts/create_config b/scripts/create_config
> index b1adbf5..0478315 100755
> --- a/scripts/create_config
> +++ b/scripts/create_config
> @@ -26,6 +26,10 @@ case $line in
> # save for the next definitions
> prefix=${line#*=}
> ;;
> + IASL=*) # iasl executable
> + value=${line#*=}
> + echo "#define CONFIG_IASL \"$value\""
> + ;;
This won't work correctly if IASL includes any
special characters like \ or '.
It's a good idea to use preprocessor's # operator,
that escapes them properly.
We have a bunch of macros like this all over the place, short term
you can introduce
#define CONFIG_STRINGIFY(x) #x
longer term we really want QEMU_STRINGIFY.
> CONFIG_AUDIO_DRIVERS=*)
> drivers=${line#*=}
> echo "#define CONFIG_AUDIO_DRIVERS \\"
> --
> 1.8.3.1
next prev parent reply other threads:[~2013-12-25 14:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-25 10:50 [Qemu-devel] [PATCH 0/2] acpi unit-test: extract iasl executable from configuration Marcel Apfelbaum
2013-12-25 10:50 ` [Qemu-devel] [PATCH 1/2] configure: add CONFIG_IASL to config-host.h Marcel Apfelbaum
2013-12-25 10:56 ` Marcel Apfelbaum
2013-12-25 14:22 ` Michael S. Tsirkin [this message]
2013-12-25 10:50 ` [Qemu-devel] [PATCH 2/2] acpi unit-test: extract iasl executable from configuration Marcel Apfelbaum
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=20131225142222.GC32493@redhat.com \
--to=mst@redhat.com \
--cc=marcel.a@redhat.com \
--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.