Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Call for testing: Xen 4.2.0-rc4



Roger Pau Monne wrote:
> Roger Pau Monne wrote:
>> Hello,
>>
>> Xen has recently tagged the next rc of the 4.2 version, which should
>> include full NetBSD support without the need of additional patches. It
>> would be very helpful if you test this release and notify any bugs
>> found, to either port-xen%netbsd.org@localhost or 
>> xen-devel%lists.xen.org@localhost. Here
>> are the instructions for building Xen 4.2.0-rc4 from source on a NetBSD box.
>>
>> First, install all the necessary dependencies:
>>
>> devel/scmgit
>> devel/gmake
>> lang/python27
>> devel/py-curses
>> devel/dev86
>> devel/glib2
>> devel/yajl
> 
> I've forgot two dependencies here:
> 
> shells/bash
> sysutils/acpica-utils
> 
>> Clone the repository:
>>
>> # git clone git://xenbits.xen.org/xen.git
>>
>> Enter the directory:
>>
>> # cd xen/
>>
>> Switch to the 4.2.0-rc4 tag:
>>
>> # git checkout 4.2.0-rc4
> 
> There's a new rc, you can fetch it using:
> 
> # git checkout 4.2.0-rc5
> 
> This is (probably) the final release.
> 
> [I'm skipping the rest of the text, since it's exactly the same]
> 
> I've also been notified by Andreas Gustafsson that the build of SeaBIOS
> fails under NetBSD 5.1 (using gcc 4.1.3) with the following error:
> 
>   Building ld scripts
> Version: rel-1.7.1-25-g455a7c8-20120914_095529-.uk.xensource.com
> Fixed space: 0xe05b-0x10000  total: 8101  slack: 5  Percent slack: 0.1%
> 16bit size:           55072
> 32bit segmented size: 2118
> 32bit flat size:      19418
> 32bit flat init size: 61824
> Lowmem size:          2176
>   Linking out/rom16.o
>   Stripping out/rom16.strip.o
>   Linking out/rom32seg.o
>   Stripping out/rom32seg.strip.o
>   Linking out/rom.o
> out/romlayout32flat.lds:2042: undefined symbol `code32flat_start'
> referenced in expression
> gmake: *** [out/rom.o] Error 1
> 
> So this version of Xen is only available for NetBSD 6.x right now.

I'm attaching a dirty hack that allows to compile Xen 4.2 under NetBSD
5.1, it basically disables unused stuff by NetBSD.

Also, on NetBSD 5.1 run the configure script with the
"--disable-seabios" option.
From d62ee9b7bc8f2cb789cb959b4d860ff7391aa1e9 Mon Sep 17 00:00:00 2001
From: Roger Pau Monne <roger.pau%citrix.com@localhost>
Date: Fri, 14 Sep 2012 13:37:17 +0100
Subject: [PATCH] Hack to compile under NetBSD 5.1 by disabling stuff.

---
 Makefile       |   18 +++++-----
 tools/Makefile |   99 +++++++++++++++++++++++++++-----------------------------
 2 files changed, 57 insertions(+), 60 deletions(-)

diff --git a/Makefile b/Makefile
index 373ca19..517eeeb 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ install-tools:
        $(MAKE) -C tools install
 
 ifeq ($(CONFIG_IOEMU),y)
-install-tools: tools/qemu-xen-traditional-dir tools/qemu-xen-dir
+install-tools: tools/qemu-xen-traditional-dir
 endif
 
 .PHONY: install-kernels
@@ -90,16 +90,16 @@ tools/qemu-xen-traditional-dir:
 tools/qemu-xen-traditional-dir-force-update:
        $(MAKE) -C tools qemu-xen-traditional-dir-force-update
 
-tools/qemu-xen-dir:
-       $(MAKE) -C tools qemu-xen-dir-find
+# tools/qemu-xen-dir:
+#      $(MAKE) -C tools qemu-xen-dir-find
 
-.PHONY: tools/qemu-xen-dir-force-update
-tools/qemu-xen-dir-force-update:
-       $(MAKE) -C tools qemu-xen-dir-force-update
+# .PHONY: tools/qemu-xen-dir-force-update
+# tools/qemu-xen-dir-force-update:
+#      $(MAKE) -C tools qemu-xen-dir-force-update
 
-.PHONY: tools/firmware/seabios-dir-force-update
-tools/firmware/seabios-dir-force-update:
-       $(MAKE) -C tools/firmware seabios-dir-force-update
+# .PHONY: tools/firmware/seabios-dir-force-update
+# tools/firmware/seabios-dir-force-update:
+#      $(MAKE) -C tools/firmware seabios-dir-force-update
 
 .PHONY: install-docs
 install-docs:
diff --git a/tools/Makefile b/tools/Makefile
index d8c8cc0..032feda 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -25,8 +25,6 @@ SUBDIRS-$(CONFIG_Linux) += $(SUBDIRS-libaio)
 SUBDIRS-$(CONFIG_Linux) += memshr 
 SUBDIRS-$(CONFIG_Linux) += blktap
 SUBDIRS-$(CONFIG_Linux) += blktap2
-SUBDIRS-$(CONFIG_NetBSD) += $(SUBDIRS-libaio)
-SUBDIRS-$(CONFIG_NetBSD) += blktap2
 SUBDIRS-$(CONFIG_NetBSD) += xenbackendd
 SUBDIRS-y += libfsimage
 SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
@@ -35,7 +33,6 @@ SUBDIRS-$(CONFIG_Linux) += libvchan
 # do not recurse in to a dir we are about to delete
 ifneq "$(MAKECMDGOALS)" "distclean"
 SUBDIRS-$(CONFIG_IOEMU) += qemu-xen-traditional-dir
-SUBDIRS-$(CONFIG_IOEMU) += qemu-xen-dir
 endif
 
 SUBDIRS-y += xenpmd
@@ -109,7 +106,7 @@ clean: subdirs-clean
 .PHONY: distclean
 distclean: subdirs-distclean
        rm -rf qemu-xen-traditional-dir qemu-xen-traditional-dir-remote
-       rm -rf qemu-xen-dir qemu-xen-dir-remote
+#      rm -rf qemu-xen-dir qemu-xen-dir-remote
        rm -rf ../config/Tools.mk config.h config.log config.status \
                config.cache autom4te.cache
 
@@ -133,13 +130,13 @@ qemu-xen-traditional-dir-find:
                $(XEN_ROOT)/scripts/git-checkout.sh $(CONFIG_QEMU) $(QEMU_TAG) 
qemu-xen-traditional-dir; \
        fi
 
-qemu-xen-dir-find:
-       if test -d $(QEMU_UPSTREAM_URL) ; then \
-               mkdir -p qemu-xen-dir; \
-       else \
-               export GIT=$(GIT); \
-               $(XEN_ROOT)/scripts/git-checkout.sh $(QEMU_UPSTREAM_URL) 
$(QEMU_UPSTREAM_REVISION) qemu-xen-dir ; \
-       fi
+#qemu-xen-dir-find:
+#      if test -d $(QEMU_UPSTREAM_URL) ; then \
+#              mkdir -p qemu-xen-dir; \
+#      else \
+#              export GIT=$(GIT); \
+#              $(XEN_ROOT)/scripts/git-checkout.sh $(QEMU_UPSTREAM_URL) 
$(QEMU_UPSTREAM_REVISION) qemu-xen-dir ; \
+#      fi
 
 .PHONY: qemu-xen-traditional-dir-force-update
 qemu-xen-traditional-dir-force-update:
@@ -171,46 +168,46 @@ subdir-clean-qemu-xen-traditional-dir:
                $(MAKE) -C qemu-xen-traditional-dir clean; \
        fi
 
-.PHONY: qemu-xen-dir-force-update
-qemu-xen-dir-force-update:
-       set -ex; \
-       if [ "$(QEMU_UPSTREAM_REVISION)" ]; then \
-               cd qemu-xen-dir-remote; \
-               $(GIT) fetch origin; \
-               $(GIT) reset --hard $(QEMU_UPSTREAM_REVISION); \
-       fi
-
-subdir-all-qemu-xen-dir: qemu-xen-dir-find
-       if test -d $(QEMU_UPSTREAM_URL) ; then \
-               source=$(QEMU_UPSTREAM_URL); \
-       else \
-               source=.; \
-       fi; \
-       cd qemu-xen-dir; \
-       $$source/configure --enable-xen --target-list=i386-softmmu \
-               --source-path=$$source \
-               --extra-cflags="-I$(XEN_ROOT)/tools/include \
-               -I$(XEN_ROOT)/tools/libxc \
-               -I$(XEN_ROOT)/tools/xenstore \
-               -I$(XEN_ROOT)/tools/xenstore/compat \
-               $(EXTRA_CFLAGS_QEMU_XEN)" \
-               --extra-ldflags="-L$(XEN_ROOT)/tools/libxc \
-               -L$(XEN_ROOT)/tools/xenstore" \
-               --bindir=$(LIBEXEC) \
-               --datadir=$(SHAREDIR)/qemu-xen \
-               --disable-kvm \
-               --python=$(PYTHON) \
-               $(IOEMU_CONFIGURE_CROSS); \
-       $(MAKE) all
-
-subdir-install-qemu-xen-dir: subdir-all-qemu-xen-dir
-       cd qemu-xen-dir; \
-       $(MAKE) install
-
-subdir-clean-qemu-xen-dir:
-       set -e; if test -d qemu-xen-dir/.; then \
-               $(MAKE) -C qemu-xen-dir clean; \
-       fi
+#.PHONY: qemu-xen-dir-force-update
+#qemu-xen-dir-force-update:
+#      set -ex; \
+#      if [ "$(QEMU_UPSTREAM_REVISION)" ]; then \
+#              cd qemu-xen-dir-remote; \
+#              $(GIT) fetch origin; \
+#              $(GIT) reset --hard $(QEMU_UPSTREAM_REVISION); \
+#      fi
+
+# subdir-all-qemu-xen-dir: qemu-xen-dir-find
+#      if test -d $(QEMU_UPSTREAM_URL) ; then \
+#              source=$(QEMU_UPSTREAM_URL); \
+#      else \
+#              source=.; \
+#      fi; \
+#      cd qemu-xen-dir; \
+#      $$source/configure --enable-xen --target-list=i386-softmmu \
+#              --source-path=$$source \
+#              --extra-cflags="-I$(XEN_ROOT)/tools/include \
+#              -I$(XEN_ROOT)/tools/libxc \
+#              -I$(XEN_ROOT)/tools/xenstore \
+#              -I$(XEN_ROOT)/tools/xenstore/compat \
+#              $(EXTRA_CFLAGS_QEMU_XEN)" \
+#              --extra-ldflags="-L$(XEN_ROOT)/tools/libxc \
+#              -L$(XEN_ROOT)/tools/xenstore" \
+#              --bindir=$(LIBEXEC) \
+#              --datadir=$(SHAREDIR)/qemu-xen \
+#              --disable-kvm \
+#              --python=$(PYTHON) \
+#              $(IOEMU_CONFIGURE_CROSS); \
+#      $(MAKE) all
+
+# subdir-install-qemu-xen-dir: subdir-all-qemu-xen-dir
+#      cd qemu-xen-dir; \
+#      $(MAKE) install
+
+# subdir-clean-qemu-xen-dir:
+#      set -e; if test -d qemu-xen-dir/.; then \
+#              $(MAKE) -C qemu-xen-dir clean; \
+#      fi
 
 subdir-clean-debugger/gdbsx subdir-distclean-debugger/gdbsx: .phony
        $(MAKE) -C debugger/gdbsx clean
-- 
1.7.7.5 (Apple Git-26)



Home | Main Index | Thread Index | Old Index