From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH 1 of 3] [QEMU remote] Fixes to the build system to compile as a stubdomain
Date: Thu, 11 Sep 2008 16:27:21 +0100 [thread overview]
Message-ID: <48C938D9.9060503@eu.citrix.com> (raw)
Various fixes to the build system to compile as a stubdomain.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
i386-stubdom/config.mak | 1 -
i386-stubdom/hooks.mak | 6 +++---
xen-config-host.h | 11 +++++++++++
xen-config-host.mak | 4 ++++
xen-hooks.mak | 14 +++++++++++---
xen-setup | 9 ++++++++-
6 files changed, 37 insertions(+), 8 deletions(-)
delete mode 100644 i386-stubdom/config.mak
diff --git a/i386-stubdom/config.mak b/i386-stubdom/config.mak
deleted file mode 100644
index 1f48b2f..0000000
--- a/i386-stubdom/config.mak
+++ /dev/null
@@ -1 +0,0 @@
-include ../xen-config.mak
diff --git a/i386-stubdom/hooks.mak b/i386-stubdom/hooks.mak
index 33b9bce..8cd761b 100644
--- a/i386-stubdom/hooks.mak
+++ b/i386-stubdom/hooks.mak
@@ -1,11 +1,11 @@
include ../xen-hooks.mak
OBJS += block-vbd.o
-OBJS += tpm_tis.o
-QEMU_STUBDOM= libqemu.a
+QEMU_STUBDOM= qemu.a
-PROGS=$(QEMU_STUBDOM)
+PROGS=$(QEMU_STUBDOM) libqemu.a
+TOOLS=
$(QEMU_STUBDOM): $(OBJS)
$(AR) rcs $@ $^
diff --git a/xen-config-host.h b/xen-config-host.h
index 6e84a98..42c24d9 100644
--- a/xen-config-host.h
+++ b/xen-config-host.h
@@ -1,3 +1,9 @@
+#ifdef __MINIOS__
+#define CONFIG_STUBDOM
+#define NO_AIO 1
+#define NO_UNIX_SOCKETS 1
+#endif
+
extern char domain_name[64];
extern int domid;
@@ -11,7 +17,9 @@ extern int domid;
#include "xenctrl.h"
#include "xs.h"
+#ifndef CONFIG_STUBDOM
#include "blktaplib.h"
+#endif
#ifndef XEN_CONFIG_HOST_BOOL_WAS_DEFINED
# undef bool
@@ -32,6 +40,9 @@ extern int vcpus;
void xenstore_parse_domain_config(int domid);
void xenstore_read_vncpasswd(int domid, char *pwbuf, size_t pwbuflen);
+#ifdef CONFIG_STUBDOM
+extern struct BlockDriver bdrv_vbd;
+#endif
struct CharDriverState;
void xenstore_store_serial_port_info(int i, struct CharDriverState *chr,
const char *devname);
diff --git a/xen-config-host.mak b/xen-config-host.mak
index ceacdcd..b02dcb0 100644
--- a/xen-config-host.mak
+++ b/xen-config-host.mak
@@ -2,6 +2,10 @@ QEMU_ROOT ?= .
XEN_ROOT ?= $(QEMU_ROOT)/../xen-unstable.hg
include $(XEN_ROOT)/tools/Rules.mk
+ifdef CONFIG_STUBDOM
+TARGET_DIRS=i386-stubdom
+else
TARGET_DIRS=i386-dm
+endif
-include $(QEMU_ROOT)/xen-hooks.mak
diff --git a/xen-hooks.mak b/xen-hooks.mak
index 8e2a7fb..230d03a 100644
--- a/xen-hooks.mak
+++ b/xen-hooks.mak
@@ -1,7 +1,6 @@
CPPFLAGS+= -I$(XEN_ROOT)/tools/libxc
CPPFLAGS+= -I$(XEN_ROOT)/tools/xenstore
CPPFLAGS+= -I$(XEN_ROOT)/tools/include
-CPPFLAGS+= -I$(XEN_ROOT)/tools/blktap/lib
SSE2 := $(call cc-option,-msse2,)
ifeq ($(SSE2),-msse2)
@@ -20,7 +19,6 @@ CFLAGS += $(CMDLINE_CFLAGS)
LIBS += -L$(XEN_ROOT)/tools/libxc -lxenctrl -lxenguest
LIBS += -L$(XEN_ROOT)/tools/xenstore -lxenstore
-LIBS += -L$(XEN_ROOT)/tools/blktap/lib -lblktap
LDFLAGS := $(CFLAGS) $(LDFLAGS)
@@ -32,10 +30,20 @@ OBJS += xen_machine_pv.o
OBJS += xenfb.o
OBJS += xen_console.o
OBJS += xen_machine_fv.o
-OBJS += xen_blktap.o
OBJS += exec-dm.o
OBJS += pci_emulation.o
+
+ifdef CONFIG_STUBDOM
+CPPFLAGS += $(TARGET_CPPFLAGS)
+CONFIG_SDL=
+CONFIG_AUDIO=
+OBJS += xenfbfront.o
+else
+CPPFLAGS+= -I$(XEN_ROOT)/tools/blktap/lib
+LIBS += -L$(XEN_ROOT)/tools/blktap/lib -lblktap
+OBJS += xen_blktap.o
OBJS += tpm_tis.o
+endif
ifdef CONFIG_STUBDOM
CONFIG_PASSTHROUGH=1
diff --git a/xen-setup b/xen-setup
index 7f8768d..2a86a89 100755
--- a/xen-setup
+++ b/xen-setup
@@ -11,7 +11,14 @@ if test -f config-host.h; then mv config-host.h config-host.h~; fi
./configure --disable-gfx-check --disable-gcc-check --disable-curses --disable-slirp "$@" --prefix=/usr
-target=i386-dm
+if [ -n "$CONFIG_STUBDOM" ]
+then
+ target=i386-stubdom
+ ln -sf ../i386-dm/hookslib.mak $target/
+ (cd $target ; ln -sf ../i386-dm/*.[ch] .)
+else
+ target=i386-dm
+fi
if [ "x$XEN_ROOT" != x ]; then
echo "XEN_ROOT=$XEN_ROOT" >>config-host.mak
--
1.5.4.3
reply other threads:[~2008-09-11 15:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=48C938D9.9060503@eu.citrix.com \
--to=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.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.