]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
xen.config: Add support for .config in xen/xen
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 13 Jan 2016 14:12:11 +0000 (09:12 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 13 Jan 2016 14:12:26 +0000 (09:12 -0500)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Makefile
xen.config [new file with mode: 0644]

index 6784c13d7ad0d38993ecf16cc840d7d5e2543f3a..738b862a0eda0a50a47978da1b5387fa658bf86d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -149,16 +149,32 @@ 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_VERSION = $(shell cat xen/xen/Makefile |grep XEN_SUBVERSION | head -1 | sed s/.*=// | sed s/\ //)
 
 xen-DISTRIB_TARGET = dist/common/xen.gz
 
-.PHONY: xen-dist-nodep
-xen-dist-nodep:
+.PHONY: xen-config
+xen-config:
        if [ -e xen/tools/configure ]; then \
                if ! [ -e xen/tools/config.h ]; \
                        then (cd xen;./configure --prefix=/usr --disable-blktap2); \
                fi; \
        fi
+       if [ -e xen/tools/firmware/seabios-dir ]; then \
+               $(MAKE) -C xen/tools/firmware/seabios-dir defconfig; \
+       fi
+       if [ $(XEN_VERSION) -gt 6 ]; then \
+               $(MAKE) xen/xen/.config; \
+       fi
+
+XEN_DEF_CONFIG = xen/xen/arch/x86/configs/$(ARCH)_defconfig
+
+xen/xen/.config: xen.config
+       ./linux_cfg.pl $(DEF_CONFIG) xen.config  >$@
+       yes "" | $(MAKE) -C xen/xen $(XEN_OPTS) oldconfig
+
+.PHONY: xen-hypervisor
+xen-hypervisor: xen-config
 ifeq ($(ARCH),i386)
        touch xen/xen/xen.gz
 else
diff --git a/xen.config b/xen.config
new file mode 100644 (file)
index 0000000..b740c40
--- /dev/null
@@ -0,0 +1,4 @@
+CONFIG_KEXEC=y
+CONFIG_XSPLICE=y
+CONFIG_XSM=y
+CONFIG_BIGMEM=y