ia64/xen-unstable

view buildconfigs/mk.linux-2.6-common @ 17871:0df3bf8aac1e

[IA64] trivial compilation fix caused by c/s 17847:8a0415fac759.

This patch fixes the following compilation error caused
by c/s 17847:8a0415fac759.

machine_kexec.c: In function 'arch_crash_save_vmcoreinfo':
machine_kexec.c:201: error: 'frametable_pg_dir' undeclared (first use in this function)
machine_kexec.c:201: error: (Each undeclared identifier is reported only once
machine_kexec.c:201: error: for each function it appears in.)

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jun 16 16:35:17 2008 +0100 (2008-06-16)
parents 8bd776540ab3
children 205b837b6138
line source
1 LINUX_SERIES = 2.6
3 # Linux search path, will be searched for tarballs and mercurial
4 # repositories.
5 LINUX_SRC_PATH ?= .:..
7 # The source directory is not automatically updated to avoid blowing
8 # away developer's changes. If you want to automatically pull a new
9 # version of the Linux tree then add `XEN_LINUX_UPDATE=y' to your make
10 # command line.
11 ifeq ($(XEN_LINUX_UPDATE),y)
12 __XEN_LINUX_UPDATE = $(LINUX_SRCDIR)/.force-update
13 else
14 __XEN_LINUX_UPDATE =
15 endif
17 ifeq ($(XEN_LINUX_NONINTERACTIVE_CONFIG),y)
18 __NONINT_CONFIG = yes $$'\n' |
19 else
20 __NONINT_CONFIG =
21 endif
23 LINUX_DIR = build-linux-$(LINUX_VER)$(EXTRAVERSION)_$(XEN_TARGET_ARCH)
25 IMAGE_TARGET ?= vmlinuz
27 LINUX_VER3 := $(LINUX_SERIES).$(word 3, $(subst ., ,$(LINUX_VER)))
29 .PHONY: _build
30 _build: build
32 include buildconfigs/src.$(XEN_LINUX_SOURCE)
34 LINUX_ARCH = $$(sh buildconfigs/select-linux-arch $(LINUX_SRCDIR))
35 IMAGE_PATH = $$(sh buildconfigs/select-linux-image $(LINUX_DIR) $(LINUX_ARCH) $(IMAGE_TARGET))
37 INSTALL_BOOT_PATH := $(DESTDIR)/boot
39 # Default to allowing interface mismatch
40 ifndef XEN_LINUX_ALLOW_INTERFACE_MISMATCH
41 XEN_LINUX_ALLOW_INTERFACE_MISMATCH := y
42 endif
44 KERNELRELEASE = $(shell $(MAKE) -s --no-print-directory -C $(LINUX_DIR) kernelrelease)
46 # The real action starts here!
47 .PHONY: build
48 build: $(LINUX_DIR)/include/linux/autoconf.h
49 ifneq ($(XEN_LINUX_ALLOW_INTERFACE_MISMATCH),y)
50 @if ! diff -urN -X buildconfigs/interface.exclude \
51 $(LINUX_SRCDIR)/include/xen/interface xen/include/public ; then \
52 echo "" 1>&2 ; \
53 echo " *** $(LINUX_SRCDIR)/include/xen/interface is out of date " 1>&2 ; \
54 echo " *** relative to $(XEN_ROOT)/xen/include/public." 1>&2 ; \
55 echo "" 1>&2 ; \
56 exit 1 ; \
57 fi
58 endif
59 if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
60 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) modules || exit 1 ; \
61 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \
62 fi
63 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_PATH=$(DESTDIR) $(IMAGE_TARGET)
64 mkdir -p $(INSTALL_BOOT_PATH)
65 @cp -v $(IMAGE_PATH) $(INSTALL_BOOT_PATH)/vmlinuz-$(KERNELRELEASE)
66 @cp -v $(LINUX_DIR)/.config $(INSTALL_BOOT_PATH)/config-$(KERNELRELEASE)
67 @cp -v $(LINUX_DIR)/System.map $(INSTALL_BOOT_PATH)/System.map-$(KERNELRELEASE)
69 $(LINUX_DIR)/include/linux/autoconf.h: CONFIG_FILE=$(CURDIR)/$(LINUX_DIR)/.config
70 $(LINUX_DIR)/include/linux/autoconf.h: $(LINUX_SRCDIR)/.valid-src
71 rm -rf $(LINUX_DIR)
72 mkdir -p $(LINUX_DIR)
73 # Re-use config from install dir if one exists. Next try to use
74 # buildconfigs/create_config.sh is one is provided by the source
75 # tree. Finally attempt to use make defconfig.
76 set -e ; \
77 CONFIG_VERSION=$$(sed -ne 's/$$(XENGUEST)//; s/^EXTRAVERSION = //p' $(LINUX_SRCDIR)/Makefile); \
78 if [ -r $(DESTDIR)/boot/config-$(LINUX_VER3)$$CONFIG_VERSION$(EXTRAVERSION) ] ; then \
79 cp $(DESTDIR)/boot/config-$(LINUX_VER3)$$CONFIG_VERSION$(EXTRAVERSION) $(CONFIG_FILE) ; \
80 elif [ -e $(LINUX_SRCDIR)/buildconfigs/create_config.sh ] ; then \
81 cd $(LINUX_SRCDIR) && sh buildconfigs/create_config.sh \
82 $(CONFIG_FILE) $(EXTRAVERSION) $(XEN_TARGET_ARCH) $(XEN_SYSTYPE) ; \
83 echo "Configured $(LINUX_DIR) using create_config.sh" ; \
84 elif $(MAKE) -C $(LINUX_SRCDIR) ARCH=$(LINUX_ARCH) defconfig O=$$(/bin/pwd)/$(LINUX_DIR) ; then \
85 echo "Configured $(LINUX_DIR) using defconfig" ; \
86 else \
87 echo "No configuration method found for this kernel" ; \
88 fi
89 ifneq ($(XEN_LINUX_CONFIG_UPDATE),)
90 echo "Updating $(CONFIG_FILE) using $(XEN_LINUX_CONFIG_UPDATE)"
91 sh $(XEN_LINUX_CONFIG_UPDATE) $(CONFIG_FILE)
92 endif
93 ifeq ($(XEN_TARGET_ARCH),x86_32)
94 sed -e 's!^CONFIG_HIGHMEM4G=y$$!\# CONFIG_HIGHMEM4G is not set!;s!^\# CONFIG_HIGHMEM64G is not set$$!CONFIG_HIGHMEM64G=y!' $(CONFIG_FILE) > $(CONFIG_FILE)- && mv $(CONFIG_FILE)- $(CONFIG_FILE)
95 endif
96 ifneq ($(EXTRAVERSION),)
97 echo "$(EXTRAVERSION)" >$(LINUX_DIR)/localversion-xen
98 endif
99 $(__NONINT_CONFIG) $(MAKE) -C $(LINUX_SRCDIR) ARCH=$(LINUX_ARCH) oldconfig O=$$(/bin/pwd)/$(LINUX_DIR)
100 @set -e ; if [ ! -f $(LINUX_DIR)/Makefile ] ; then \
101 echo "***********************************"; \
102 echo "oldconfig did not create a Makefile"; \
103 echo "Generating $(LINUX_DIR)/Makefile "; \
104 echo "***********************************"; \
105 ( echo "# Automatically generated: don't edit"; \
106 echo ""; \
107 echo "VERSION = 2"; \
108 echo "PATCHLEVEL = 6"; \
109 echo ""; \
110 echo "KERNELSRC := $(CURDIR)/$(LINUX_SRCDIR)"; \
111 echo "KERNELOUTPUT := $(CURDIR)/$(LINUX_DIR)"; \
112 echo ""; \
113 echo "MAKEFLAGS += --no-print-directory"; \
114 echo ""; \
115 echo ".PHONY: all \$$(MAKECMDGOALS)"; \
116 echo ""; \
117 echo "all:"; \
118 echo " \$$(MAKE) -C \$$(KERNELSRC) O=\$$(KERNELOUTPUT)"; \
119 echo ""; \
120 echo "Makefile:;"; \
121 echo ""; \
122 echo "\$$(filter-out all Makefile,\$$(MAKECMDGOALS)) %/:"; \
123 echo " \$$(MAKE) -C \$$(KERNELSRC) O=\$$(KERNELOUTPUT) \$$@"; \
124 ) > $(LINUX_DIR)/Makefile ; \
125 fi
126 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) prepare
128 .PHONY: prep
129 prep: $(LINUX_DIR)/include/linux/autoconf.h
131 .PHONY: config
132 config: CONFIGMODE = menuconfig
133 config: $(LINUX_DIR)/include/linux/autoconf.h
134 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) $(CONFIGMODE)
136 .PHONY: clean
137 clean::
138 [ ! -d $(LINUX_DIR) ] || \
139 $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) clean
141 .PHONY: delete
142 delete:
143 rm -rf tmp-linux-$(LINUX_VER) $(LINUX_DIR) $(LINUX_SRCDIR)
145 .PHONY: mrproper
146 mrproper:
147 rm -rf $(LINUX_SRCDIR)
148 rm -f linux-$(LINUX_VER).tar.bz2
150 .PHONY: $(LINUX_SRCDIR)/.force-update
151 $(LINUX_SRCDIR)/.force-update:
152 @ :