ia64/xen-unstable

view extras/mini-os/Config.mk @ 18811:390ef36eb596

Remove Xen-private definitions from kexec public header.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Nov 19 13:13:39 2008 +0000 (2008-11-19)
parents 03f685b6356a
children
line source
1 # Set mini-os root path, used in mini-os.mk.
2 MINI-OS_ROOT=$(XEN_ROOT)/extras/mini-os
3 export MINI-OS_ROOT
5 libc = $(stubdom)
7 XEN_INTERFACE_VERSION := 0x00030205
8 export XEN_INTERFACE_VERSION
10 # Try to find out the architecture family TARGET_ARCH_FAM.
11 # First check whether x86_... is contained (for x86_32, x86_32y, x86_64).
12 # If not x86 then use $(XEN_TARGET_ARCH) -> for ia64, ...
13 ifeq ($(findstring x86_,$(XEN_TARGET_ARCH)),x86_)
14 TARGET_ARCH_FAM = x86
15 else
16 TARGET_ARCH_FAM = $(XEN_TARGET_ARCH)
17 endif
19 # The architecture family directory below mini-os.
20 TARGET_ARCH_DIR := arch/$(TARGET_ARCH_FAM)
22 # Export these variables for possible use in architecture dependent makefiles.
23 export TARGET_ARCH_DIR
24 export TARGET_ARCH_FAM
26 # This is used for architecture specific links.
27 # This can be overwritten from arch specific rules.
28 ARCH_LINKS =
30 # The path pointing to the architecture specific header files.
31 ARCH_INC := $(TARGET_ARCH_FAM)
33 # For possible special header directories.
34 # This can be overwritten from arch specific rules.
35 EXTRA_INC = $(ARCH_INC)
37 # Include the architecture family's special makerules.
38 # This must be before include minios.mk!
39 include $(MINI-OS_ROOT)/$(TARGET_ARCH_DIR)/arch.mk
41 extra_incl := $(foreach dir,$(EXTRA_INC),-isystem $(CURDIR)/$(MINI-OS_ROOT)/include/$(dir))
43 DEF_CPPFLAGS += -isystem $(CURDIR)/$(MINI-OS_ROOT)/include
44 DEF_CPPFLAGS += -D__MINIOS__
46 ifeq ($(libc),y)
47 DEF_CPPFLAGS += -DHAVE_LIBC
48 DEF_CPPFLAGS += -isystem $(CURDIR)/$(MINI-OS_ROOT)/include/posix
49 DEF_CPPFLAGS += -isystem $(CURDIR)/$(XEN_ROOT)/tools/xenstore
50 endif
52 ifneq ($(LWIPDIR),)
53 lwip=y
54 DEF_CPPFLAGS += -DHAVE_LWIP
55 DEF_CPPFLAGS += -isystem $(LWIPDIR)/src/include
56 DEF_CPPFLAGS += -isystem $(LWIPDIR)/src/include/ipv4
57 endif