From: Julio Montes <julio.montes@intel.com>
To: qemu-devel@nongnu.org
Cc: Julio Montes <julio.montes@intel.com>,
pbonzini@redhat.com, sgarzare@redhat.com, mst@redhat.com
Subject: [Qemu-devel] [PATCH v2 1/2] Makefile: generate header file with the list of devices enabled
Date: Fri, 5 Jul 2019 14:35:53 +0000 [thread overview]
Message-ID: <20190705143554.10295-1-julio.montes@intel.com> (raw)
In-Reply-To: <20190703154958.29004-1-julio.montes@intel.com>
v2: generate config-devices.h which contains the list of devices enabled
---
config-devices.h is an auto-generated header file that will use
config-devices.mak to define the list of devices enabled.
Configs that are set to 'n' are ignored.
Signed-off-by: Julio Montes <julio.montes@intel.com>
---
Makefile.target | 5 +++++
scripts/clean-includes | 2 +-
scripts/create_config | 2 ++
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Makefile.target b/Makefile.target
index a6919e0caf..65eda0994d 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -45,6 +45,9 @@ include $(SRC_PATH)/tests/tcg/Makefile.include
config-target.h: config-target.h-timestamp
config-target.h-timestamp: config-target.mak
+config-devices.h: config-devices.h-timestamp
+config-devices.h-timestamp: config-devices.mak
+
ifdef CONFIG_TRACE_SYSTEMTAP
stap: $(QEMU_PROG).stp-installed $(QEMU_PROG).stp $(QEMU_PROG)-simpletrace.stp $(QEMU_PROG)-log.stp
@@ -170,6 +173,8 @@ generated-files-y += hmp-commands.h hmp-commands-info.h
endif # CONFIG_SOFTMMU
+generated-files-y += config-devices.h
+
dummy := $(call unnest-vars,,obj-y)
all-obj-y := $(obj-y)
diff --git a/scripts/clean-includes b/scripts/clean-includes
index dd938daa3e..fb05a639d5 100755
--- a/scripts/clean-includes
+++ b/scripts/clean-includes
@@ -161,7 +161,7 @@ for f in "$@"; do
# Remove includes that osdep.h already provides
perl -n -i -e 'print if !/\s*#\s*include\s*(["<][^>"]*[">])/ ||
! (grep { $_ eq $1 } qw (
- "config-host.h" "config-target.h" "qemu/compiler.h"
+ "config-host.h" "config-target.h" "config-devices.h" "qemu/compiler.h"
<setjmp.h> <stdarg.h> <stddef.h> <stdbool.h> <stdint.h> <sys/types.h>
<stdlib.h> <stdio.h> <string.h> <strings.h> <inttypes.h>
<limits.h> <unistd.h> <time.h> <ctype.h> <errno.h> <fcntl.h>
diff --git a/scripts/create_config b/scripts/create_config
index d727e5e36e..00e86c82b0 100755
--- a/scripts/create_config
+++ b/scripts/create_config
@@ -58,6 +58,8 @@ case $line in
name=${line%=*}
echo "#define $name 1"
;;
+ CONFIG_*=n) # configuration
+ ;;
CONFIG_*=*) # configuration
name=${line%=*}
value=${line#*=}
--
2.17.2
next prev parent reply other threads:[~2019-07-05 14:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-03 15:49 [Qemu-devel] [PATCH] hw/i386: Fix linker error when ISAPC is disabled Julio Montes
2019-07-03 16:21 ` Paolo Bonzini
2019-07-03 16:40 ` Montes, Julio
2019-07-03 21:09 ` Paolo Bonzini
2019-07-04 18:03 ` Julio Montes
2019-07-04 19:36 ` no-reply
2019-07-05 8:25 ` Paolo Bonzini
2019-07-05 8:25 ` Paolo Bonzini
2019-07-05 17:20 ` no-reply
2019-07-05 17:25 ` Philippe Mathieu-Daudé
2019-07-05 19:23 ` Montes, Julio
2019-07-03 20:09 ` no-reply
2019-07-05 14:35 ` Julio Montes [this message]
2019-07-05 14:35 ` [Qemu-devel] [PATCH v2 2/2] " Julio Montes
2019-07-05 16:34 ` Paolo Bonzini
2019-07-05 19:40 ` Philippe Mathieu-Daudé
2019-07-06 4:21 ` [Qemu-devel] [PATCH v2 1/2] Makefile: generate header file with the list of devices enabled Markus Armbruster
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=20190705143554.10295-1-julio.montes@intel.com \
--to=julio.montes@intel.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=sgarzare@redhat.com \
/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.