From: Ian Campbell Subject: Re: [PATCH v2 1/3] hvmloader: Only compile 32bitbios_support.c when rombios is enabled Date: Fri, 10 Feb 2012 09:03:20 +0000 Message-ID: <1328864600.6133.242.camel@zakaz.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Julian Pidancet Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-02-10 at 01:53 +0000, Julian Pidancet wrote: > 32bitbios_support.c only contains code specific to rombios, and should > not be built-in when building hvmloader for SeaBIOS only (as for > rombios.c). > > Signed-off-by: Julian Pidancet Acked-by: Ian Campbell > --- > tools/firmware/hvmloader/Makefile | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/firmware/hvmloader/Makefile b/tools/firmware/hvmloader/Makefile > index 41a4369..e82146a 100644 > --- a/tools/firmware/hvmloader/Makefile > +++ b/tools/firmware/hvmloader/Makefile > @@ -29,7 +29,7 @@ LOADADDR = 0x100000 > CFLAGS += $(CFLAGS_xeninclude) > > OBJS = hvmloader.o mp_tables.o util.o smbios.o > -OBJS += 32bitbios_support.o smp.o cacheattr.o xenbus.o > +OBJS += smp.o cacheattr.o xenbus.o > OBJS += e820.o pci.o pir.o ctype.o > ifeq ($(debug),y) > OBJS += tests.o > @@ -39,7 +39,7 @@ CIRRUSVGA_DEBUG ?= n > > ROMBIOS_DIR := ../rombios > ifneq ($(ROMBIOS_DIR),) > -OBJS += rombios.o > +OBJS += 32bitbios_support.o rombios.o > CFLAGS += -DENABLE_ROMBIOS > ROMBIOS_ROM := $(ROMBIOS_DIR)/BIOS-bochs-latest > endif