direct-io.hg

view Config.mk @ 11356:af7c87d42bc6

[XEN][POWERPC] Fix PHDR issues with large .data.percpu sections

This patch tells the link to only create one PHDR and place all sections
in it, also removing an unrequired mapping for the .data.percpu section.

This avoids the "Not enough room for program headers (allocated 2, need 3)"

Booted on a JS20.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Thu Aug 17 07:10:57 2006 -0400 (2006-08-17)
parents ed20a5addce4
children 4a3d9fa6ba24 db3d58d30e9d
line source
1 # -*- mode: Makefile; -*-
3 # A debug build of Xen and tools?
4 debug ?= n
6 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
7 -e s/ppc/powerpc/)
8 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
9 XEN_TARGET_X86_PAE ?= n
11 # Tools to run on system hosting the build
12 HOSTCC = gcc
13 HOSTCFLAGS = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
15 AS = $(CROSS_COMPILE)as
16 LD = $(CROSS_COMPILE)ld
17 CC = $(CROSS_COMPILE)gcc
18 CPP = $(CROSS_COMPILE)gcc -E
19 AR = $(CROSS_COMPILE)ar
20 RANLIB = $(CROSS_COMPILE)ranlib
21 NM = $(CROSS_COMPILE)nm
22 STRIP = $(CROSS_COMPILE)strip
23 OBJCOPY = $(CROSS_COMPILE)objcopy
24 OBJDUMP = $(CROSS_COMPILE)objdump
26 DISTDIR ?= $(XEN_ROOT)/dist
27 DESTDIR ?= /
29 INSTALL = install
30 INSTALL_DIR = $(INSTALL) -d -m0755
31 INSTALL_DATA = $(INSTALL) -m0644
32 INSTALL_PROG = $(INSTALL) -m0755
34 ifneq ($(debug),y)
35 # Optimisation flags are overridable
36 CFLAGS ?= -O2 -fomit-frame-pointer
37 CFLAGS += -DNDEBUG
38 else
39 # Less than -O1 produces bad code and large stack frames
40 CFLAGS ?= -O1 -fno-omit-frame-pointer
41 CFLAGS += -g
42 endif
44 include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk
46 ifneq ($(EXTRA_PREFIX),)
47 EXTRA_INCLUDES += $(EXTRA_PREFIX)/include
48 EXTRA_LIB += $(EXTRA_PREFIX)/$(LIBDIR)
49 endif
51 test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
53 CFLAGS += -Wall -Wstrict-prototypes
55 HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
56 CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)
58 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
59 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
61 # Choose the best mirror to download linux kernel
62 KERNEL_REPO = http://www.kernel.org
64 # If ACM_SECURITY = y, then the access control module is compiled
65 # into Xen and the policy type can be set by the boot policy file
66 # y - Build the Xen ACM framework
67 # n - Do not build the Xen ACM framework
68 ACM_SECURITY ?= n
70 # If ACM_SECURITY = y and no boot policy file is installed,
71 # then the ACM defaults to the security policy set by
72 # ACM_DEFAULT_SECURITY_POLICY
73 # Supported models are:
74 # ACM_NULL_POLICY
75 # ACM_CHINESE_WALL_POLICY
76 # ACM_SIMPLE_TYPE_ENFORCEMENT_POLICY
77 # ACM_CHINESE_WALL_AND_SIMPLE_TYPE_ENFORCEMENT_POLICY
78 ACM_DEFAULT_SECURITY_POLICY ?= ACM_NULL_POLICY
80 # Optional components
81 XENSTAT_XENTOP ?= y
83 VTPM_TOOLS ?= n
85 -include $(XEN_ROOT)/.config