1 # -*- makefile -*- : Force emacs to use Makefile mode
3 # The EFI linker script
5 LDSCRIPT = arch/x86/scripts/efi.lds
7 # Retain relocation information for elf2efi
14 NON_AUTO_MEDIA += efidrv
16 # Rules for building EFI files
18 $(BIN)/%.efi : $(BIN)/%.efi.tmp $(ELF2EFI)
19 $(QM)$(ECHO) " [FINISH] $@"
20 $(Q)$(ELF2EFI) --subsystem=10 $< $@
22 $(BIN)/%.efidrv : $(BIN)/%.efidrv.tmp $(ELF2EFI)
23 $(QM)$(ECHO) " [FINISH] $@"
24 $(Q)$(ELF2EFI) --subsystem=11 $< $@
26 $(BIN)/%.efirom : $(BIN)/%.efidrv $(EFIROM)
27 $(QM)$(ECHO) " [FINISH] $@"
28 $(Q)$(EFIROM) -v $(TGT_PCI_VENDOR) -d $(TGT_PCI_DEVICE) $< $@