|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 07 of 19] tools: hvmloader: refactor Makefile to move
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1302600838 -3600
# Node ID 70bf20a0b5462f3a1fa4213592bae076ec1a81ba
# Parent 170ca1c6603ce0cc1893125103c4666dfa303364
tools: hvmloader: refactor Makefile to move ROM filenames into variables.
Add an option to use debug Cirrus video BIOS, simply as a convenience.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 170ca1c6603c -r 70bf20a0b546 tools/firmware/hvmloader/Makefile
--- a/tools/firmware/hvmloader/Makefile Tue Apr 12 10:22:47 2011 +0100
+++ b/tools/firmware/hvmloader/Makefile Tue Apr 12 10:33:58 2011 +0100
@@ -36,6 +36,17 @@ SRCS += tests.c
endif
OBJS = $(patsubst %.c,%.o,$(SRCS))
+CIRRUSVGA_DEBUG ?= n
+
+ROMBIOS_ROM := ../rombios/BIOS-bochs-latest
+
+STDVGA_ROM := ../vgabios/VGABIOS-lgpl-latest.bin
+ifeq ($(CIRRUSVGA_DEBUG),y)
+CIRRUSVGA_ROM := ../vgabios/VGABIOS-lgpl-latest.cirrus.debug.bin
+else
+CIRRUSVGA_ROM := ../vgabios/VGABIOS-lgpl-latest.cirrus.bin
+endif
+
.PHONY: all
all: subdirs-all
$(MAKE) hvmloader
@@ -48,12 +59,17 @@ hvmloader: $(OBJS) acpi/acpi.a
$(OBJCOPY) hvmloader.tmp hvmloader
rm -f hvmloader.tmp
-roms.h: ../rombios/BIOS-bochs-latest ../vgabios/VGABIOS-lgpl-latest.bin \
- ../vgabios/VGABIOS-lgpl-latest.cirrus.bin ../etherboot/eb-roms.h
- sh ./mkhex rombios ../rombios/BIOS-bochs-latest > roms.h
- sh ./mkhex vgabios_stdvga ../vgabios/VGABIOS-lgpl-latest.bin >> roms.h
- sh ./mkhex vgabios_cirrusvga \
- ../vgabios/VGABIOS-lgpl-latest.cirrus.bin >> roms.h
+roms.h: $(ROMBIOS_ROM) $(STDVGA_ROM) $(CIRRUSVGA_ROM) ../etherboot/eb-roms.h
+ifneq ($(ROMBIOS_ROM),)
+ sh ./mkhex rombios $(ROMBIOS_ROM) > roms.h
+endif
+ifneq ($(STDVGA_ROM),)
+ sh ./mkhex vgabios_stdvga $(STDVGA_ROM) >> roms.h
+endif
+ifneq ($(CIRRUSVGA_ROM),)
+ sh ./mkhex vgabios_cirrusvga $(CIRRUSVGA_ROM) >> roms.h
+endif
+
cat ../etherboot/eb-roms.h >> roms.h
.PHONY: clean
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 19] tools: SeaBIOS integration, Ian Campbell
- [Xen-devel] [PATCH 01 of 19] tools: hvmloader: move ROMBIOS configuration into tools/firmware/rombios/, Ian Campbell
- [Xen-devel] [PATCH 04 of 19] tools: hvmloader: pass SMBIOS location as a runtime parameter, Ian Campbell
- [Xen-devel] [PATCH 06 of 19] tools: hvmloader: split scratch and hypercall addressing from ROMBIOS low heap, Ian Campbell
- [Xen-devel] [PATCH 03 of 19] tools: hvmloader: pass ACPI_PHYSICAL_ADDRESS as a runtime parameter, Ian Campbell
- [Xen-devel] [PATCH 05 of 19] tools: hvmloader: pass option ROM end address around as a parameter, Ian Campbell
- [Xen-devel] [PATCH 02 of 19] tools: hvmloader: split e820 support into its own code module, Ian Campbell
- [Xen-devel] [PATCH 08 of 19] tools: hvmloader: remove rombios_sz, just use sizeof(rombios), Ian Campbell
- [Xen-devel] [PATCH 09 of 19] tools: hvmloader: rename roms.h to roms.inc, Ian Campbell
- [Xen-devel] [PATCH 07 of 19] tools: hvmloader: refactor Makefile to move ROM filenames into variables,
Ian Campbell <=
- [Xen-devel] [PATCH 10 of 19] tools: hvmloader: Define $(OBJS) directly instead of via $(SRCS), Ian Campbell
- [Xen-devel] [PATCH 11 of 19] tools: hvmloader: add bios_config data structure, Ian Campbell
- [Xen-devel] [PATCH 12 of 19] tools: hvmloader: Refactor APIC, PCI and SMP setup into struct bios_config, Ian Campbell
- [Xen-devel] [PATCH 13 of 19] tools: hvmloader: refactor highbios and bios_info setup into struct bios_config, Ian Campbell
- [Xen-devel] [PATCH 14 of 19] tools: hvmloader: Refactor VM86 and E820 setup into struct bios_config, Ian Campbell
- [Xen-devel] [PATCH 16 of 19] tools: hvmloader: Refactor MP table setup into struct bios_config, Ian Campbell
- [Xen-devel] [PATCH 18 of 19] tools: hvmloader: select BIOS through xenstore, Ian Campbell
- [Xen-devel] [PATCH 17 of 19] tools: libxl: hide selection of device-model, hvmloader and BIOS by default, Ian Campbell
|
|
|
|
|