[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools: hvmloader: refactor Makefile to move ROM filenames into variables.
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1302611996 -3600 # Node ID 739f7f80273e41b439aa68be69da813f6de8a6cc # Parent a09d5a85609e01fee0a3618349af86dbf91bdb90 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> Acked-by: Keir Fraser <keir@xxxxxxx> --- diff -r a09d5a85609e -r 739f7f80273e tools/firmware/hvmloader/Makefile --- a/tools/firmware/hvmloader/Makefile Tue Apr 12 13:39:22 2011 +0100 +++ b/tools/firmware/hvmloader/Makefile Tue Apr 12 13:39:56 2011 +0100 @@ -36,6 +36,17 @@ 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 @@ $(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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |