ia64/xen-unstable

view buildconfigs/mk.linux-2.4-xen0 @ 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 = 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 patches/tmp/ebtables.diff:
23 mkdir -p patches/tmp
24 wget http://www.cl.cam.ac.uk/netos/xen/downloads/ebtables-brnf-5_vs_2.4.27.diff.gz -O- | gunzip -c > $@
26 $(LINUX_DIR)/include/linux/autoconf.h: patches/tmp/ebtables.diff
27 $(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER)/.valid-ref
28 rm -rf $(LINUX_DIR)
29 cp -al $(<D) $(LINUX_DIR)
30 # Apply arch-xen patches
31 ( cd linux-$(LINUX_VER)-xen-sparse ; \
32 ./mkbuildtree ../$(LINUX_DIR) )
33 # Patch kernel Makefile to set EXTRAVERSION
34 ( cd $(LINUX_DIR) ; \
35 sed -e 's/^EXTRAVERSION.*/&-$$(XENGUEST)\nXENGUEST = $(EXTRAVERSION)/' Makefile >Mk.tmp ; \
36 rm -f Makefile ; mv Mk.tmp Makefile )
37 # add ebtables patch
38 ( cd $(LINUX_DIR) ; patch -p1 -F3 < ../patches/tmp/ebtables.diff )
39 # Re-use config from install dir if one exits else use default config
40 CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p' $(LINUX_DIR)/Makefile); \
41 [ -r $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION ] && \
42 cp $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION $(LINUX_DIR)/.config \
43 || cp $(LINUX_DIR)/arch/xen/defconfig-$(EXTRAVERSION) \
44 $(LINUX_DIR)/.config
45 make -C $(LINUX_DIR) ARCH=xen oldconfig
46 make -C $(LINUX_DIR) ARCH=xen dep
48 clean::
49 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
51 delete:
52 rm -rf tmp-$(OS)-$(LINUX_VER) $(LINUX_DIR)