ia64/xen-unstable

view buildconfigs/mk.linux-2.6-xen @ 9788:bdcc838b9a72

Add small memory warning message to domain configuration examples.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
author stekloff@dyn9047022152.beaverton.ibm.com
date Wed Apr 19 22:58:24 2006 +0100 (2006-04-19)
parents 3c05406f5e0a
children d36ac8bf715e
line source
1 LINUX_SERIES = 2.6
2 LINUX_VER = 2.6.16
3 LINUX_SRCS = linux-2.6.16.tar.bz2
5 EXTRAVERSION ?= xen
7 LINUX_DIR = linux-$(LINUX_VER)-$(EXTRAVERSION)
9 include buildconfigs/Rules.mk
11 # The real action starts here!
12 .PHONY: build
13 build: $(LINUX_DIR)/include/linux/autoconf.h
14 if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
15 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) modules ; \
16 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \
17 fi
18 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_PATH=$(DESTDIR) vmlinuz
19 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_PATH=$(DESTDIR) install
21 $(LINUX_DIR)/include/linux/autoconf.h: ref-linux-$(LINUX_VER)/.valid-ref
22 rm -rf $(LINUX_DIR)
23 cp -al $(<D) $(LINUX_DIR)
24 # Apply arch-xen patches
25 ( cd linux-$(LINUX_SERIES)-xen-sparse && \
26 LINUX_ARCH=$(LINUX_ARCH) bash ./mkbuildtree ../$(LINUX_DIR) )
27 # Re-use config from install dir if one exits else use default config
28 CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p' $(LINUX_DIR)/Makefile); \
29 [ -r $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION) ] && \
30 cp $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION) $(LINUX_DIR)/.config \
31 || cp buildconfigs/linux-defconfig_$(EXTRAVERSION)_$(XEN_TARGET_ARCH)$(XEN_SYSTYPE) \
32 $(LINUX_DIR)/.config
33 # See if we need to munge config to enable PAE
34 $(MAKE) CONFIG_FILE=$(LINUX_DIR)/.config -f buildconfigs/Rules.mk config-update-pae
35 # Patch kernel Makefile to set EXTRAVERSION
36 ( cd $(LINUX_DIR) ; \
37 sed -e 's/^EXTRAVERSION.*/&$$(XENGUEST)\nXENGUEST = -$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
38 rm -f Makefile ; mv Mk.tmp Makefile )
39 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) oldconfig
41 .PHONY: prep
42 prep: $(LINUX_DIR)/include/linux/autoconf.h
44 .PHONY: config
45 config: CONFIGMODE = menuconfig
46 config: $(LINUX_DIR)/include/linux/autoconf.h
47 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) $(CONFIGMODE)
49 .PHONY: clean
50 clean::
51 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) clean
53 .PHONY: delete
54 delete:
55 rm -rf tmp-linux-$(LINUX_VER) $(LINUX_DIR)