.. by not launching 'xend' under Xen 4.2.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
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
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
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