debuggers.hg

view config/SunOS.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)gas
2 LD = $(CROSS_COMPILE)gld
3 CC = $(CROSS_COMPILE)gcc
4 CPP = $(CROSS_COMPILE)gcc -E
5 AR = $(CROSS_COMPILE)gar
6 RANLIB = $(CROSS_COMPILE)granlib
7 NM = $(CROSS_COMPILE)gnm
8 STRIP = $(CROSS_COMPILE)gstrip
9 OBJCOPY = $(CROSS_COMPILE)gobjcopy
10 OBJDUMP = $(CROSS_COMPILE)gobjdump
11 SIZEUTIL = $(CROSS_COMPILE)gsize
13 MSGFMT = gmsgfmt
15 SHELL = bash
17 INSTALL = ginstall
18 INSTALL_DIR = $(INSTALL) -d -m0755 -p
19 INSTALL_DATA = $(INSTALL) -m0644 -p
20 INSTALL_PROG = $(INSTALL) -m0755 -p
22 PREFIX ?= /usr
23 BINDIR = $(PREFIX)/bin
24 INCLUDEDIR = $(PREFIX)/include
25 LIBLEAFDIR = lib
26 LIBLEAFDIR_x86_64 = lib/amd64
27 LIBDIR = $(PREFIX)/$(LIBLEAFDIR)
28 LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64)
29 MANDIR = $(PREFIX)/share/man
30 MAN1DIR = $(MANDIR)/man1
31 MAN8DIR = $(MANDIR)/man8
32 SBINDIR = $(PREFIX)/sbin
33 XENFIRMWAREDIR = $(LIBDIR)/xen/boot
35 PRIVATE_PREFIX = $(LIBDIR)/xen
36 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
38 ifeq ($(PREFIX),/usr)
39 CONFIG_DIR = /etc
40 else
41 CONFIG_DIR = $(PREFIX)/etc
42 endif
43 XEN_CONFIG_DIR = $(CONFIG_DIR)/xen
44 XEN_SCRIPT_DIR = $(PRIVATE_PREFIX)/scripts
46 SunOS_LIBDIR = /usr/sfw/lib
47 SunOS_LIBDIR_x86_64 = /usr/sfw/lib/amd64
49 SOCKET_LIBS = -lsocket
50 CURSES_LIBS = -lcurses
51 PTHREAD_LIBS = -lpthread
52 UTIL_LIBS =
53 DLOPEN_LIBS = -ldl
55 SONAME_LDFLAG = -h
56 SHLIB_LDFLAGS = -R $(SunOS_LIBDIR) -shared
58 ifneq ($(debug),y)
59 CFLAGS += -O2 -fno-omit-frame-pointer
60 else
61 # Less than -O1 produces bad code and large stack frames
62 CFLAGS += -O1 -fno-omit-frame-pointer
63 endif
65 CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__