From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: aliguori@us.ibm.com, afaerber@suse.de
Subject: [Qemu-devel] [PATCH 3/9] build: avoid duplicate appearance of files
Date: Mon, 17 Sep 2012 18:44:57 +0200 [thread overview]
Message-ID: <1347900303-24314-4-git-send-email-pbonzini@redhat.com> (raw)
In-Reply-To: <1347900303-24314-1-git-send-email-pbonzini@redhat.com>
cutils.c and iov.c appeared in the Makefile in multiple spots. Clean
this up by moving them respectively to oslib-obj-y and block-obj-y.
Notably, qemu-ga and user-mode emulation both need cutils.c but not iov.c.
async.o was linked in tools via both tools-obj-y and block-obj-y.
Remove the former, which is unnecessary.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
Makefile | 2 +-
Makefile.objs | 8 ++++----
2 file modificati, 5 inserzioni(+), 5 rimozioni(-)
diff --git a/Makefile b/Makefile
index 6426d85..5240834 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,7 @@ qemu-img.o: qemu-img-cmds.h
tools-obj-y = $(oslib-obj-y) $(trace-obj-y) qemu-tool.o qemu-timer.o \
qemu-timer-common.o main-loop.o notify.o monitor-dummy.o \
- iohandler.o cutils.o iov.o async.o
+ iohandler.o
tools-obj-$(CONFIG_POSIX) += compatfd.o
qemu-img$(EXESUF): qemu-img.o $(tools-obj-y) $(block-obj-y)
diff --git a/Makefile.objs b/Makefile.objs
index abb7d0f..cf00fd5 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -19,7 +19,7 @@ universal-obj-y += $(qom-obj-y)
#######################################################################
# oslib-obj-y is code depending on the OS (win32 vs posix)
-oslib-obj-y = osdep.o
+oslib-obj-y = osdep.o cutils.o
oslib-obj-$(CONFIG_WIN32) += oslib-win32.o qemu-thread-win32.o
oslib-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posix.o
@@ -41,7 +41,7 @@ coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o
#######################################################################
# block-obj-y is code used by both qemu system emulation and qemu-img
-block-obj-y = cutils.o iov.o cache-utils.o qemu-option.o module.o async.o
+block-obj-y = iov.o cache-utils.o qemu-option.o module.o async.o
block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o
block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
@@ -89,7 +89,7 @@ common-obj-y += hw/
common-obj-y += ui/
common-obj-y += bt-host.o bt-vhci.o
-common-obj-y += iov.o acl.o
+common-obj-y += acl.o
common-obj-$(CONFIG_POSIX) += compatfd.o
common-obj-y += notify.o event_notifier.o
common-obj-y += qemu-timer.o qemu-timer-common.o
@@ -108,7 +108,7 @@ endif
user-obj-y =
user-obj-y += envlist.o path.o
user-obj-y += tcg-runtime.o host-utils.o
-user-obj-y += cutils.o cache-utils.o
+user-obj-y += cache-utils.o
user-obj-y += module.o
user-obj-y += qemu-user.o
user-obj-y += $(trace-obj-y)
--
1.7.12
next prev parent reply other threads:[~2012-09-17 16:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-17 16:44 [Qemu-devel] [PATCH 0/9] build cleanups Paolo Bonzini
2012-09-17 16:44 ` [Qemu-devel] [PATCH 1/9] tools: split monitor-dummy.c, clean up qemu-tool.c Paolo Bonzini
2012-09-17 16:44 ` [Qemu-devel] [PATCH 2/9] block: move QEMUIOVector functions to iov.c Paolo Bonzini
2012-09-17 16:44 ` Paolo Bonzini [this message]
2012-09-17 16:44 ` [Qemu-devel] [PATCH 4/9] qemu-ga: do not include the QEMU main loop and dependencies Paolo Bonzini
2012-09-17 16:44 ` [Qemu-devel] [PATCH 5/9] build: add object directory to QEMU_INCLUDES Paolo Bonzini
2012-09-17 16:45 ` [Qemu-devel] [PATCH 6/9] build: add $(TARGET_DIR) to "GEN config-target.h" lines Paolo Bonzini
2012-09-17 16:45 ` [Qemu-devel] [PATCH 7/9] build: use nesting magic for tools-obj-y Paolo Bonzini
2012-09-17 16:45 ` [Qemu-devel] [PATCH 8/9] libcacard: add include/ to CFLAGS Paolo Bonzini
2012-09-17 16:45 ` [Qemu-devel] [PATCH 9/9] libcacard: remove dependency on QEMU main loop Paolo Bonzini
2012-09-19 14:38 ` [Qemu-devel] [PATCH 0/9] build cleanups Paolo Bonzini
2012-09-25 21:04 ` Anthony Liguori
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=1347900303-24314-4-git-send-email-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=afaerber@suse.de \
--cc=aliguori@us.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).