From: Mark McLoughlin <markmc@redhat.com>
To: qemu-devel@nongnu.org
Cc: Mark McLoughlin <markmc@redhat.com>
Subject: [Qemu-devel] [PATCH 01/15 v2] net: move net-queue.[ch] under net/
Date: Fri, 23 Oct 2009 17:52:16 +0100 [thread overview]
Message-ID: <1256316736-7505-1-git-send-email-markmc@redhat.com> (raw)
In-Reply-To: <1256230156-29652-2-git-send-email-markmc@redhat.com>
[v2: handle building in a separate dir]
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
Makefile | 10 +++++++---
configure | 2 +-
net.h | 2 +-
net-queue.c => net/queue.c | 2 +-
net-queue.h => net/queue.h | 0
5 files changed, 10 insertions(+), 6 deletions(-)
rename net-queue.c => net/queue.c (99%)
rename net-queue.h => net/queue.h (100%)
diff --git a/Makefile b/Makefile
index e78a3d0..aea7756 100644
--- a/Makefile
+++ b/Makefile
@@ -86,6 +86,10 @@ block-nested-$(CONFIG_CURL) += curl.o
block-obj-y += $(addprefix block/, $(block-nested-y))
+net-obj-y = net.o
+net-nested-y = queue.o
+net-obj-y += $(addprefix net/, $(net-nested-y))
+
######################################################################
# libqemu_common.a: Target independent part of system emulation. The
# long term path is to suppress *all* target specific code in case of
@@ -93,6 +97,7 @@ block-obj-y += $(addprefix block/, $(block-nested-y))
# CPUs and machines.
obj-y = $(block-obj-y)
+obj-y += $(net-obj-y)
obj-y += readline.o console.o
obj-y += tcg-runtime.o host-utils.o
@@ -121,7 +126,6 @@ obj-$(CONFIG_SD) += sd.o
obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o
obj-y += bt-hci-csr.o
obj-y += buffered_file.o migration.o migration-tcp.o qemu-sockets.o
-obj-y += net.o net-queue.o
obj-y += qemu-char.o aio.o net-checksum.o savevm.o
obj-y += msmouse.o ps2.o
obj-y += qdev.o qdev-properties.o
@@ -220,7 +224,7 @@ clean:
# avoid old build problems by removing potentially incorrect old files
rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
- rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d
+ rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d
rm -f qemu-img-cmds.h
$(MAKE) -C tests clean
for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser; do \
@@ -404,4 +408,4 @@ tarbin:
$(mandir)/man8/qemu-nbd.8
# Include automatically generated dependency files
--include $(wildcard *.d audio/*.d slirp/*.d block/*.d)
+-include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d)
diff --git a/configure b/configure
index 43d87c5..6b4faf6 100755
--- a/configure
+++ b/configure
@@ -2529,7 +2529,7 @@ done # for target in $targets
# build tree in object directory if source path is different from current one
if test "$source_path_used" = "yes" ; then
- DIRS="tests tests/cris slirp audio block pc-bios/optionrom"
+ DIRS="tests tests/cris slirp audio block net pc-bios/optionrom"
DIRS="$DIRS roms/pcbios roms/seabios roms/vgabios"
FILES="Makefile tests/Makefile"
FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"
diff --git a/net.h b/net.h
index 7e6cbf4..9ebb978 100644
--- a/net.h
+++ b/net.h
@@ -5,7 +5,7 @@
#include "qemu-common.h"
#include "qdict.h"
#include "qemu-option.h"
-#include "net-queue.h"
+#include "net/queue.h"
/* VLANs support */
diff --git a/net-queue.c b/net/queue.c
similarity index 99%
rename from net-queue.c
rename to net/queue.c
index f6b01e9..e91a9a5 100644
--- a/net-queue.c
+++ b/net/queue.c
@@ -21,7 +21,7 @@
* THE SOFTWARE.
*/
-#include "net-queue.h"
+#include "net/queue.h"
#include "qemu-queue.h"
/* The delivery handler may only return zero if it will call
diff --git a/net-queue.h b/net/queue.h
similarity index 100%
rename from net-queue.h
rename to net/queue.h
--
1.6.2.5
next prev parent reply other threads:[~2009-10-23 16:54 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-22 16:49 [Qemu-devel] [PATCH 00/15] Some networking code re-organization Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 01/15] net: move net-queue.[ch] under net/ Mark McLoughlin
2009-10-23 16:52 ` Mark McLoughlin [this message]
2009-10-22 16:49 ` [Qemu-devel] [PATCH 02/15] net: move net-checksum.c " Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 03/15] net: move tap-win32.c " Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 04/15] net: move more stuff into net/tap-win32.c, add net/tap.h Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 05/15] net: move tap-linux.h under net/ Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 06/15] net: split all the tap code out into net/tap.c Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 07/15] net: split BSD tap_open() out into net/tap-bsd.c Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 08/15] net: move solaris code to net/tap-solaris.c Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 09/15] net: move AIX code into net/tap-aix.c Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 10/15] build: add CONFIG_LINUX Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 11/15] net: move linux code into net/tap-linux.c Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 12/15] net: move tap_set_sndbuf() to tap-linux.c Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 13/15] net: move tap_probe_vnet_hdr() " Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 14/15] net: move tap_set_offload() code into tap-linux.c Mark McLoughlin
2009-10-22 16:49 ` [Qemu-devel] [PATCH 15/15] net: move UFO support detection to tap-linux.c Mark McLoughlin
2009-10-22 20:34 ` [Qemu-devel] [PATCH 00/15] Some networking code re-organization Anthony Liguori
2009-10-23 9:59 ` Mark McLoughlin
2009-10-23 13:44 ` Anthony Liguori
2009-10-23 16:49 ` Mark McLoughlin
[not found] ` <m37hunntts.fsf@neno.mitica>
2009-10-23 10:00 ` [Qemu-devel] " Mark McLoughlin
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=1256316736-7505-1-git-send-email-markmc@redhat.com \
--to=markmc@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 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).