|
@@ -793,16 +793,18 @@ CLEANUP += $(ZBIN)
|
793
|
793
|
#
|
794
|
794
|
# The EFI image converter
|
795
|
795
|
#
|
|
796
|
+ELF2EFI_CFLAGS := -I$(BINUTILS_DIR)/include -I$(BFD_DIR)/include \
|
|
797
|
+ -idirafter include -L$(BINUTILS_DIR)/lib -L$(BFD_DIR)/lib \
|
|
798
|
+ -lbfd -liberty -lz
|
|
799
|
+
|
796
|
800
|
$(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS)
|
797
|
801
|
$(QM)$(ECHO) " [HOSTCC] $@"
|
798
|
|
- $(Q)$(HOST_CC) -DMDE_CPU_IA32 -idirafter include -O2 \
|
799
|
|
- -o $@ $< -lbfd -liberty
|
|
802
|
+ $(Q)$(HOST_CC) $(ELF2EFI_CFLAGS) -DMDE_CPU_IA32 -O2 -o $@ $<
|
800
|
803
|
CLEANUP += $(ELF2EFI32)
|
801
|
804
|
|
802
|
805
|
$(ELF2EFI64) : util/elf2efi.c $(MAKEDEPS)
|
803
|
806
|
$(QM)$(ECHO) " [HOSTCC] $@"
|
804
|
|
- $(Q)$(HOST_CC) -DMDE_CPU_X64 -idirafter include -O2 \
|
805
|
|
- -o $@ $< -lbfd -liberty
|
|
807
|
+ $(Q)$(HOST_CC) $(ELF2EFI_CFLAGS) -DMDE_CPU_X64 -O2 -o $@ $<
|
806
|
808
|
CLEANUP += $(ELF2EFI64)
|
807
|
809
|
|
808
|
810
|
$(EFIROM) : util/efirom.c $(MAKEDEPS)
|