debuggers.hg

view config/StdGNU.mk @ 22855:1d1eec7e1fb4

xl: Perform minimal validation of virtual disk file while parsing config file

This patch performs some very basic validation on the virtual disk
file passed through the config file. This validation ensures that we
don't go too far with the initialization like spawn qemu and more
while there could be some potentially fundamental issues.

[ Patch fixed up to work with PHYSTYPE_EMPTY 22808:6ec61438713a -iwj ]

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Kamala Narasimhan <kamala.narasimhan@gmail.com>
date Tue Jan 25 18:09:49 2011 +0000 (2011-01-25)
parents 5d78193d67d1
children
line source
1 AS = $(CROSS_COMPILE)as
2 LD = $(CROSS_COMPILE)ld
3 CC = $(CROSS_COMPILE)gcc
4 CPP = $(CC) -E
5 AR = $(CROSS_COMPILE)ar
6 RANLIB = $(CROSS_COMPILE)ranlib
7 NM = $(CROSS_COMPILE)nm
8 STRIP = $(CROSS_COMPILE)strip
9 OBJCOPY = $(CROSS_COMPILE)objcopy
10 OBJDUMP = $(CROSS_COMPILE)objdump
11 SIZEUTIL = $(CROSS_COMPILE)size
13 MSGFMT = msgfmt
14 MSGMERGE = msgmerge
16 # Allow git to be wrappered in the environment
17 GIT ?= git
19 WGET ?= wget -c
21 INSTALL = install
22 INSTALL_DIR = $(INSTALL) -d -m0755 -p
23 INSTALL_DATA = $(INSTALL) -m0644 -p
24 INSTALL_PROG = $(INSTALL) -m0755 -p
26 PREFIX ?= /usr
27 BINDIR = $(PREFIX)/bin
28 INCLUDEDIR = $(PREFIX)/include
29 LIBLEAFDIR = lib
30 LIBLEAFDIR_x86_32 = lib
31 LIBLEAFDIR_x86_64 ?= lib64
32 LIBDIR = $(PREFIX)/$(LIBLEAFDIR)
33 LIBDIR_x86_32 = $(PREFIX)/$(LIBLEAFDIR_x86_32)
34 LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64)
35 LIBEXEC = $(LIBDIR_x86_32)/xen/bin
36 SHAREDIR = $(PREFIX)/share
37 MANDIR = $(SHAREDIR)/man
38 MAN1DIR = $(MANDIR)/man1
39 MAN8DIR = $(MANDIR)/man8
40 SBINDIR = $(PREFIX)/sbin
41 XENFIRMWAREDIR = $(LIBDIR_x86_32)/xen/boot
43 PRIVATE_PREFIX = $(LIBDIR)/xen
44 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
46 ifeq ($(PREFIX),/usr)
47 CONFIG_DIR = /etc
48 XEN_LOCK_DIR = /var/lock
49 else
50 CONFIG_DIR = $(PREFIX)/etc
51 XEN_LOCK_DIR = $(PREFIX)/var/lock
52 endif
54 SYSCONFIG_DIR = $(CONFIG_DIR)/$(CONFIG_LEAF_DIR)
56 XEN_CONFIG_DIR = $(CONFIG_DIR)/xen
57 XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts
59 SOCKET_LIBS =
60 CURSES_LIBS = -lncurses
61 PTHREAD_LIBS = -lpthread
62 UTIL_LIBS = -lutil
63 DLOPEN_LIBS = -ldl
65 SONAME_LDFLAG = -soname
66 SHLIB_LDFLAGS = -shared
68 ifneq ($(debug),y)
69 CFLAGS += -O2 -fomit-frame-pointer
70 else
71 # Less than -O1 produces bad code and large stack frames
72 CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
73 endif