aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/efi
diff options
context:
space:
mode:
authorCharles Arnold <carnold@suse.com>2012-12-11 13:49:39 +0100
committerCharles Arnold <carnold@suse.com>2012-12-11 13:49:39 +0100
commitc1510eb871a5c7f6e4cf29b50f8365408131869b (patch)
tree1754a863b12bb56b37162355f0af409afea614df /xen/arch/x86/efi
parent23dbeb5aceb9709f06481884d205095e348793e2 (diff)
downloadxen-c1510eb871a5c7f6e4cf29b50f8365408131869b.tar.gz
xen-c1510eb871a5c7f6e4cf29b50f8365408131869b.tar.bz2
xen-c1510eb871a5c7f6e4cf29b50f8365408131869b.zip
x86/EFI: work around CFLAGS being passed in through environment
Short of a solution to the problem described in http://lists.xen.org/archives/html/xen-devel/2012-12/msg00648.html, deal with the bad effect this together with c/s 25751:02b4d5fedb7b has on the EFI build by filtering out the problematic command line items. Signed-off-by: Charles Arnold <carnold@suse.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> Committed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/arch/x86/efi')
-rw-r--r--xen/arch/x86/efi/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/efi/Makefile b/xen/arch/x86/efi/Makefile
index 9ce68fb4ed..514dba0871 100644
--- a/xen/arch/x86/efi/Makefile
+++ b/xen/arch/x86/efi/Makefile
@@ -5,7 +5,7 @@ obj-y += stub.o
create = test -e $(1) || touch -t 199901010000 $(1)
efi := $(filter y,$(x86_64)$(shell rm -f disabled))
-efi := $(if $(efi),$(shell $(CC) $(filter-out $(CFLAGS-y),$(CFLAGS)) -c check.c 2>disabled && echo y))
+efi := $(if $(efi),$(shell $(CC) $(filter-out $(CFLAGS-y) .%.d,$(CFLAGS)) -c check.c 2>disabled && echo y))
efi := $(if $(efi),$(shell $(LD) -mi386pep --subsystem=10 -o check.efi check.o 2>disabled && echo y))
efi := $(if $(efi),$(shell rm disabled)y,$(shell $(call create,boot.init.o); $(call create,runtime.o)))