blob: e3772803d3a042abd800f87e650f68190de36758 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#
# xen/Makefile
#
# This file is included by the global makefile so that you can add your own
# architecture-specific flags and dependencies. Remember to do have actions
# for "archclean" cleaning up for this architecture.
#
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 2004 by Christian Limpach
#
override EXTRAVERSION:=$(subst linux-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL),,$(shell basename $(TOPDIR)))$(EXTRAVERSION)
XENARCH := $(subst ",,$(CONFIG_XENARCH))
# pick up headers from include/asm-xen/asm in preference over include/asm
NOSTDINC_FLAGS = -nostdinc -iwithprefix include/asm-xen -Iinclude/asm-xen -iwithprefix include
# make uname return the processor arch
UTS_MACHINE := $(XENARCH)
core-y += arch/xen/kernel/
include/.asm-ignore:
@rm -f include/.asm-ignore
@mv include/asm include/.asm-ignore
@echo ' SYMLINK include/asm -> include/asm-$(XENARCH)'
$(Q)if [ ! -d include ]; then mkdir -p include; fi;
@ln -fsn asm-$(XENARCH) include/asm
include/asm-xen/asm:
@echo ' SYMLINK $@ -> include/asm-xen/asm-$(XENARCH)'
@ln -fsn asm-$(XENARCH) $@
include/asm-xen/asm-$(XENARCH)/hypervisor-ifs:
@echo ' SYMLINK $@ -> include/asm-xen/hypervisor-ifs'
@ln -fsn ../hypervisor-ifs $@
arch/xen/arch:
@rm -f $@
@ln -fsn $(XENARCH) $@
prepare: include/.asm-ignore include/asm-xen/asm \
include/asm-xen/asm-$(XENARCH)/hypervisor-ifs \
arch/xen/arch ;
all: vmlinuz
vmlinuz: vmlinux
$(Q)$(MAKE) $(build)=arch/xen/boot vmlinuz
XINSTALL_NAME ?= $(KERNELRELEASE)
install: vmlinuz
mkdir -p $(INSTALL_PATH)/boot
install -m0644 vmlinuz $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
install -m0664 .config $(INSTALL_PATH)/boot/config-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
dist:
$(MAKE) INSTALL_PATH=../install install
archclean:
@if [ -e arch/xen/arch ]; then $(MAKE) $(clean)=arch/xen/arch; fi;
@rm -f arch/xen/arch include/.asm-ignore include/asm-xen/asm
define archhelp
echo '* vmlinuz - Compressed kernel image'
echo ' install - Install kernel image and config file'
endef
ifneq ($(XENARCH),)
include $(srctree)/arch/xen/$(XENARCH)/Makefile
endif
|