ia64/xen-unstable

view tools/firmware/hvmloader/Makefile @ 19709:011948e1b5a7

hvmloader: Scan for gpxe-capable NICs until one is found.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jun 03 16:12:34 2009 +0100 (2009-06-03)
parents bd78714b8594
children
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 ifeq ($(debug),y)
34 SRCS += tests.c
35 endif
36 OBJS = $(patsubst %.c,%.o,$(SRCS))
38 .PHONY: all
39 all: subdirs-all
40 $(MAKE) hvmloader
42 hvmloader.o: roms.h
43 smbios.o: CFLAGS += -D__SMBIOS_DATE__="\"$(shell date +%m/%d/%Y)\""
45 hvmloader: $(OBJS) acpi/acpi.a
46 $(LD) $(LDFLAGS_DIRECT) -N -Ttext $(LOADADDR) -o hvmloader.tmp $^
47 $(OBJCOPY) hvmloader.tmp hvmloader
48 rm -f hvmloader.tmp
50 roms.h: ../rombios/BIOS-bochs-latest ../vgabios/VGABIOS-lgpl-latest.bin \
51 ../vgabios/VGABIOS-lgpl-latest.cirrus.bin ../etherboot/eb-roms.h
52 sh ./mkhex rombios ../rombios/BIOS-bochs-latest > roms.h
53 sh ./mkhex vgabios_stdvga ../vgabios/VGABIOS-lgpl-latest.bin >> roms.h
54 sh ./mkhex vgabios_cirrusvga \
55 ../vgabios/VGABIOS-lgpl-latest.cirrus.bin >> roms.h
56 cat ../etherboot/eb-roms.h >> roms.h
58 .PHONY: clean
59 clean: subdirs-clean
60 rm -f roms.h acpi.h
61 rm -f hvmloader hvmloader.tmp *.o $(DEPS)
63 -include $(DEPS)