direct-io.hg

view tools/firmware/vmxassist/Makefile @ 7477:5a7baecb1c70

Fix an issue for passing arguement from control panel to deivce model
for some arguemnt like 'localtime', 'isa', device model need an argument
"-localtime", instead of "-localtime 1"
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Sun Oct 23 16:51:47 2005 +0100 (2005-10-23)
parents e398a9797c4c
children 121ff5042eb3
line source
1 #
2 # Makefile
3 #
4 # Leendert van Doorn, leendert@watson.ibm.com
5 # Copyright (c) 2005, International Business Machines Corporation.
6 #
7 # This program is free software; you can redistribute it and/or modify it
8 # under the terms and conditions of the GNU General Public License,
9 # version 2, as published by the Free Software Foundation.
10 #
11 # This program is distributed in the hope it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 # more details.
15 #
16 # You should have received a copy of the GNU General Public License along with
17 # this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18 # Place - Suite 330, Boston, MA 02111-1307 USA.
19 #
21 XEN_ROOT = ../../..
22 include $(XEN_ROOT)/tools/Rules.mk
24 # The emulator code lives in ROM space
25 TEXTADDR=0x000D0000
27 DEFINES=-DDEBUG -D_ACPI_ -DTEXTADDR=$(TEXTADDR)
28 XENINC=-I$(XEN_ROOT)/tools/libxc
30 LD = ld
31 CC = gcc
32 CPP = cpp -P
33 OBJCOPY = objcopy -p -O binary -R .note -R .comment -R .bss -S --gap-fill=0
34 CFLAGS = $(DEFINES) -I. $(XENINC) -Wall -fno-builtin -O2 -msoft-float
35 CFLAGS += -m32 -march=i686
36 LDFLAGS = -m elf_i386
38 OBJECTS = head.o trap.o vm86.o setup.o util.o
40 all: vmxloader
42 vmxloader: roms.h vmxloader.c acpi.h acpi_madt.c
43 $(CC) $(CFLAGS) $(DEFINES) -c vmxloader.c -c acpi_madt.c
44 $(CC) -o vmxloader.tmp -m32 -nostdlib -Wl,-N -Wl,-Ttext -Wl,0x100000 vmxloader.o acpi_madt.o
45 objcopy vmxloader.tmp vmxloader
46 rm -f vmxloader.tmp
48 vmxassist.bin: vmxassist.ld $(OBJECTS)
49 $(CPP) $(DEFINES) vmxassist.ld > vmxassist.tmp
50 $(LD) -o vmxassist $(LDFLAGS) -nostdlib --fatal-warnings -N -T vmxassist.tmp $(OBJECTS)
51 nm -n vmxassist > vmxassist.sym
52 $(OBJCOPY) vmxassist vmxassist.tmp
53 dd if=vmxassist.tmp of=vmxassist.bin ibs=512 conv=sync
54 rm -f vmxassist.tmp
56 head.o: machine.h head.S
57 $(CC) $(CFLAGS) -D__ASSEMBLY__ $(DEFINES) -c head.S
59 trap.o: machine.h offsets.h trap.S
60 $(CC) $(CFLAGS) -D__ASSEMBLY__ $(DEFINES) -c trap.S
62 vm86.o: machine.h vm86.c
63 $(CC) $(CFLAGS) -c vm86.c
65 setup.o: machine.h setup.c
66 $(CC) $(CFLAGS) -c setup.c
68 util.o: machine.h util.c
69 $(CC) $(CFLAGS) -c util.c
71 roms.h: ../rombios/BIOS-bochs-latest ../vgabios/VGABIOS-lgpl-latest.bin ../vgabios/VGABIOS-lgpl-latest.cirrus.bin vmxassist.bin
72 ./mkhex rombios ../rombios/BIOS-bochs-latest > roms.h
73 ./mkhex vgabios_stdvga ../vgabios/VGABIOS-lgpl-latest.bin >> roms.h
74 ./mkhex vgabios_cirrusvga ../vgabios/VGABIOS-lgpl-latest.cirrus.bin >> roms.h
75 ./mkhex vmxassist vmxassist.bin >> roms.h
77 acpi.h: ../acpi/acpi.bin
78 ./mkhex acpi ../acpi/acpi.bin > acpi.h
80 offsets.h: gen
81 ./gen > offsets.h
83 gen: gen.c
84 $(HOSTCC) $(HOSTCFLAGS) -I. $(XENINC) -o gen gen.c
86 clean:
87 rm -f vmxassist vmxassist.tmp vmxassist.bin vmxassist.run vmxassist.sym head.s roms.h acpi.h
88 rm -f vmxloader vmxloader.tmp vmxloader.o $(OBJECTS)
89 rm -f gen gen.o offsets.h