summaryrefslogtreecommitdiff
path: root/xen/arch/x86/efi/Makefile
blob: 3edff1cf24cd96ce39e4a18568ec683ac6224450 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CFLAGS += -fshort-wchar

efi := y$(shell rm -f disabled)
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)

%.o: %.ihex
	$(OBJCOPY) -I ihex -O binary $< $@

boot.init.o: buildid.o

obj-y := stub.o
obj-$(efi) := boot.init.o compat.o relocs-dummy.o runtime.o
extra-$(efi) += buildid.o
nogcov-$(efi) += stub.o