]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
Makefile: Build only 64-bit hypervisor and fix rcS
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 15 Jan 2013 21:08:52 +0000 (16:08 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 11 Mar 2013 19:51:33 +0000 (15:51 -0400)
.. by not launching 'xend' under Xen 4.2.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Makefile
root_image/etc/init.d/rcS

index 7c20bade9c29992cb375e08bce5aa8d8a2dd650b..ba30dd376ff3630135c48efe6e3e5b4d515a930b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -148,6 +148,8 @@ linux-distclean: linux-clean
 
 XEN_DISTDIR = xen/dist/install
 
+#XEN_MINOR = $(shell cat xen/xen/Makefile | grep XEN_SUBVERSION | head -1 |sed 's/.*= //g')
+
 xen-DISTRIB_TARGET = dist/common/xen.gz
 
 .PHONY: xen-dist-nodep
@@ -157,16 +159,24 @@ xen-dist-nodep:
                        then (cd xen;./configure); \
                fi; \
        fi
+ifeq ($(ARCH),i386)
+       touch xen/xen/xen.gz
+else
        $(MAKE) -C xen xen -j$$(($(NCPUS) * 2))
+endif
+
        $(INSTALL_DIR) dist/common/
-       $(INSTALL_DATA) $(XEN_DISTDIR)/boot/xen.gz dist/common/
 
+ifeq ($(ARCH),x86_64)
+       $(INSTALL_DATA) $(XEN_DISTDIR)/boot/xen.gz dist/common/
+endif
 
 IOEMU_DIR = ioemu-remote
 
 .PHONY: xen-tools
 xen-tools:
 #      $(MAKE) -C xen dist-misc -j$$(($(NCPUS) * 2))
+
        $(MAKE) -C xen IOEMU_CONFIGURE_CROSS="--disable-curses --disable-slirp --disable-opengl --disable-sdl --disable-kvm --disable-vnc-tls" tools -j$$(($(NCPUS) * 2))
 
 .PHONY: xen-dist
index 83825f2b70f51081af7550628d6b008a7a855646..16693734f1140114fd050659512162e3a53aeba9 100755 (executable)
@@ -97,10 +97,16 @@ if [ $XEND_LOAD -eq 1 ]; then
        modprobe evtchn
        modprobe xen_evtchn
        # Xen 4.0 can't deal with xencommons running first
-       if [ `xen-detect | sed -e 's/.*v//' -e 's/\.//g'` != 40 ]; then
+       XEN_VERSION=`xen-detect | sed -e 's/.*v//' -e 's/\.//g'`
+       if [ "$XEN_VERSION" != 40 ]; then
                /etc/init.d/xencommons start
        fi
-       /etc/init.d/xend start
+       # Xen 4.2 and above should use 'xl' instead of 'xm'
+       if [ "$XEN_VERSION" -lt 42 ]; then
+               /etc/init.d/xend start
+       else
+               echo "run_hotplug_scripts=0" >> /etc/xen/xl.conf
+       fi
        rm -f /dev/ttyS0
        ln -s /dev/null /dev/ttyS0
        sed -i 's/\(^ttyS0.*\)/# \1/' /etc/inittab