hvmloader: don't build with __XEN_TOOLS__ defined
authorJan Beulich <jbeulich@suse.com>
Thu, 23 Jul 2015 12:03:20 +0000 (14:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 Jul 2015 12:03:20 +0000 (14:03 +0200)
This being an in-guest component, it shouldn't get to see (and even
less so use) tools-only public interfaces.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/firmware/hvmloader/Makefile

index e4830ca5b5cbf0ebad8dba8d2fecbd9c1a081523..76773b83dbdf1c84944793aa44e34f9e55bae75b 100644 (file)
@@ -31,6 +31,9 @@ SMBIOS_REL_DATE ?= $(shell date +%m/%d/%Y)
 
 CFLAGS += $(CFLAGS_xeninclude)
 
+# We mustn't use tools-only public interfaces.
+CFLAGS += -U__XEN_TOOLS__ -D__XEN_INTERFACE_VERSION__=__XEN_LATEST_INTERFACE_VERSION__
+
 OBJS  = hvmloader.o mp_tables.o util.o smbios.o 
 OBJS += smp.o cacheattr.o xenbus.o vnuma.o
 OBJS += e820.o pci.o pir.o ctype.o