debuggers.hg

view xen/arch/ia64/Makefile @ 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 895695d91ec1
children
line source
1 subdir-y += xen
2 subdir-y += vmx
3 subdir-y += linux
4 subdir-y += linux-xen
6 ALL_OBJS := linux-xen/head.o $(ALL_OBJS)
8 $(TARGET)-syms: $(ALL_OBJS) xen.lds.s
9 $(MAKE) -f $(BASEDIR)/Rules.mk $(BASEDIR)/common/symbols-dummy.o
10 $(LD) $(LDFLAGS) -T xen.lds.s -N -Map $(@D)/.$(@F).0.map $(ALL_OBJS) \
11 $(BASEDIR)/common/symbols-dummy.o -o $(@D)/.$(@F).0
12 $(NM) -n $(@D)/.$(@F).0 | $(BASEDIR)/tools/symbols >$(@D)/.$(@F).0.S
13 $(MAKE) -f $(BASEDIR)/Rules.mk $(@D)/.$(@F).0.o
14 $(LD) $(LDFLAGS) -T xen.lds.s -N -Map $(@D)/.$(@F).1.map $(ALL_OBJS) \
15 $(@D)/.$(@F).0.o -o $(@D)/.$(@F).1
16 $(NM) -n $(@D)/.$(@F).1 | $(BASEDIR)/tools/symbols >$(@D)/.$(@F).1.S
17 $(MAKE) -f $(BASEDIR)/Rules.mk $(@D)/.$(@F).1.o
18 $(LD) $(LDFLAGS) -T xen.lds.s -N -Map $@.map $(ALL_OBJS) \
19 $(@D)/.$(@F).1.o -o $@
20 rm -f $(@D)/.$(@F).[0-9]*
22 $(TARGET): $(TARGET)-syms
23 $(NM) -n $< | grep -v ' [aUw] ' > $(@D)/System.map
24 $(OBJCOPY) -R .note -R .comment -S $< $@
26 # Headers do not depend on auto-generated header, but object files do.
27 $(ALL_OBJS): $(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h
29 asm-offsets.s: asm-offsets.c \
30 $(BASEDIR)/include/asm-ia64/.offsets.h.stamp
31 $(CC) $(CFLAGS) -DGENERATE_ASM_OFFSETS -DIA64_TASK_SIZE=0 -S -o $@ $<
33 asm-xsi-offsets.s: asm-xsi-offsets.c
34 $(CC) $(CFLAGS) -S -o $@ $<
36 $(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h: asm-xsi-offsets.s
37 @(set -e; \
38 echo "/*"; \
39 echo " * DO NOT MODIFY."; \
40 echo " *"; \
41 echo " * This file was auto-generated from $<"; \
42 echo " *"; \
43 echo " */"; \
44 echo ""; \
45 echo "#ifndef __ASM_XSI_OFFSETS_H__"; \
46 echo "#define __ASM_XSI_OFFSETS_H__"; \
47 echo ""; \
48 sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \
49 echo ""; \
50 echo "#endif") <$< >$@
52 $(BASEDIR)/include/asm-ia64/.offsets.h.stamp:
53 # Need such symbol link to make linux headers available
54 [ -e $(BASEDIR)/include/linux ] \
55 || ln -sf $(BASEDIR)/include/xen $(BASEDIR)/include/linux
56 [ -e $(BASEDIR)/include/asm-ia64/xen ] \
57 || ln -sf $(BASEDIR)/include/asm-ia64/linux $(BASEDIR)/include/asm-ia64/xen
58 touch $@
60 # I'm sure a Makefile wizard would know a better way to do this
61 xen.lds.s: xen/xen.lds.S
62 $(CC) -E $(CPPFLAGS) -P -DXEN $(AFLAGS) \
63 -o xen.lds.s xen/xen.lds.S
65 .PHONY: clean
66 clean::
67 rm -f *.o *~ core xen.lds.s $(BASEDIR)/include/asm-ia64/.offsets.h.stamp asm-offsets.s map.out
68 rm -f asm-xsi-offsets.s $(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h
69 rm -f $(BASEDIR)/System.map
70 rm -f $(BASEDIR)/include/linux
71 rm -f $(BASEDIR)/include/asm-ia64/xen