ia64/xen-unstable

view buildconfigs/mk.linux-2.4-xenU @ 4913:5a28c8cd39a3

bitkeeper revision 1.1159.258.123 (42852fd48Nr7wIoriw8GV3ZAjVOw8Q)

Many files:
Create vmlinuz-$(VERSION).$(PATCHLEVEL)-$(XENGUEST) and
vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)-$(XENGUEST) symlinks in
dist/install/boot from kernel build target.
install.sh:
No need to create vmlinuz symlinks in dist/install/boot from install.sh
anymore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri May 13 22:53:08 2005 +0000 (2005-05-13)
parents 783e437809b6
children 0651c17c1f17 b3e15fadc1c1
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 # Patch kernel Makefile to set EXTRAVERSION
29 ( cd $(LINUX_DIR) ; \
30 sed -e 's/^EXTRAVERSION.*/&-$$(XENGUEST)\nXENGUEST = $(EXTRAVERSION)/' Makefile >Mk.tmp ; \
31 rm -f Makefile ; mv Mk.tmp Makefile )
32 # Re-use config from install dir if one exits else use default config
33 CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p' $(LINUX_DIR)/Makefile); \
34 [ -r $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION ] && \
35 cp $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION $(LINUX_DIR)/.config \
36 || cp $(LINUX_DIR)/arch/xen/defconfig-$(EXTRAVERSION) \
37 $(LINUX_DIR)/.config
38 make -C $(LINUX_DIR) ARCH=xen oldconfig
39 make -C $(LINUX_DIR) ARCH=xen dep
41 clean::
42 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
44 delete:
45 rm -rf tmp-$(OS)-$(LINUX_VER) $(LINUX_DIR)