ia64/xen-unstable

view buildconfigs/mk.linux-2.6-xen0 @ 5592:b75294458106

bitkeeper revision 1.1760.1.4 (42c10578DlONZUYkjuzFvNR6idseEQ)

Simplify x86_32 boot code by removing bogus P6 check (really it was a
486 check, and we can assume everyone has CPUID I think).
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Jun 28 08:08:24 2005 +0000 (2005-06-28)
parents cff6a5c4f4b6
children c3c51a34c924 56a63f9f378f a83ac0806d6b
line source
2 OS = linux
4 LINUX_SERIES = 2.6
6 EXTRAVERSION = xen0
8 LINUX_DIR = $(OS)-$(LINUX_VER)-$(EXTRAVERSION)
10 include buildconfigs/Rules.mk
12 .PHONY: build clean delete
14 # The real action starts here!
15 build: $(LINUX_DIR)/include/linux/autoconf.h
16 if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
17 $(MAKE) -C $(LINUX_DIR) ARCH=xen modules ; \
18 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \
19 fi
20 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(DESTDIR) install
22 $(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER)/.valid-ref
23 rm -rf $(LINUX_DIR)
24 cp -al $(<D) $(LINUX_DIR)
25 # Apply arch-xen patches
26 ( cd linux-$(LINUX_VER)-xen-sparse ; \
27 ./mkbuildtree ../$(LINUX_DIR) )
28 # Re-use config from install dir if one exits else use default config
29 CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p' $(LINUX_DIR)/Makefile); \
30 [ -r $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION) ] && \
31 cp $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION) $(LINUX_DIR)/.config \
32 || cp $(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig_$(XEN_TARGET_ARCH) \
33 $(LINUX_DIR)/.config
34 # Patch kernel Makefile to set EXTRAVERSION
35 ( cd $(LINUX_DIR) ; \
36 sed -e 's/^EXTRAVERSION.*/&$$(XENGUEST)\nXENGUEST = -$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
37 rm -f Makefile ; mv Mk.tmp Makefile )
38 $(MAKE) -C $(LINUX_DIR) ARCH=xen oldconfig
40 config: CONFIGMODE = menuconfig
41 config: $(LINUX_DIR)/include/linux/autoconf.h
42 $(MAKE) -C $(LINUX_DIR) ARCH=xen $(CONFIGMODE)
44 clean::
45 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
47 delete:
48 rm -rf tmp-$(OS)-$(LINUX_VER) $(LINUX_DIR)