ia64/xen-unstable

view buildconfigs/mk.linux-2.4-xenU @ 5527:a787d0c6f797

bitkeeper revision 1.1713.2.14 (42b83897l9yCwRifZXvfuWUtymljvA)

Fix typo in cmpxchg_user (causes compile error in some compilers)
author djm@kirby.fc.hp.com
date Tue Jun 21 15:56:07 2005 +0000 (2005-06-21)
parents cff6a5c4f4b6
children 02282ff7cc8c 56a63f9f378f a83ac0806d6b
line source
2 OS = linux
4 LINUX_SERIES = 2.4
6 EXTRAVERSION = xenU
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-linux-$(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/defconfig-$(EXTRAVERSION) \
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
39 make -C $(LINUX_DIR) ARCH=xen dep
41 config: CONFIGMODE = menuconfig
42 config: $(LINUX_DIR)/include/linux/autoconf.h
43 $(MAKE) -C $(LINUX_DIR) ARCH=xen $(CONFIGMODE)
44 $(MAKE) -C $(LINUX_DIR) ARCH=xen dep
46 clean::
47 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
49 delete:
50 rm -rf tmp-$(OS)-$(LINUX_VER) $(LINUX_DIR)