debuggers.hg

view tools/firmware/hvmloader/Makefile @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children 5c0bf00e371d
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/firmware/Rules.mk
24 SUBDIRS := acpi
26 # The HVM loader is started in 32-bit mode at the address below:
27 LOADADDR = 0x100000
29 CFLAGS += $(CFLAGS_include) -I.
31 SRCS = hvmloader.c mp_tables.c util.c smbios.c
32 SRCS += 32bitbios_support.c smp.c cacheattr.c
33 OBJS = $(patsubst %.c,%.o,$(SRCS))
35 .PHONY: all
36 all: hvmloader
38 hvmloader.o: roms.h
39 smbios.o: CFLAGS += -D__SMBIOS_DATE__="\"$(shell date +%m/%d/%Y)\""
41 hvmloader: subdirs-all $(OBJS)
42 $(LD) $(LDFLAGS_DIRECT) -N -Ttext $(LOADADDR) \
43 -o hvmloader.tmp $(OBJS) acpi/acpi.a
44 $(OBJCOPY) hvmloader.tmp hvmloader
45 rm -f hvmloader.tmp
47 roms.h: ../rombios/BIOS-bochs-latest ../vgabios/VGABIOS-lgpl-latest.bin \
48 ../vgabios/VGABIOS-lgpl-latest.cirrus.bin ../etherboot/eb-roms.h \
49 ../extboot/extboot.bin
50 sh ./mkhex rombios ../rombios/BIOS-bochs-latest > roms.h
51 sh ./mkhex vgabios_stdvga ../vgabios/VGABIOS-lgpl-latest.bin >> roms.h
52 sh ./mkhex vgabios_cirrusvga \
53 ../vgabios/VGABIOS-lgpl-latest.cirrus.bin >> roms.h
54 cat ../etherboot/eb-roms.h >> roms.h
55 sh ./mkhex extboot ../extboot/extboot.bin >> roms.h
57 .PHONY: clean
58 clean: subdirs-clean
59 rm -f roms.h acpi.h
60 rm -f hvmloader hvmloader.tmp *.o