• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- makefile -*- : Force emacs to use Makefile mode
2
3# The EFI linker script
4#
5LDSCRIPT	= arch/x86/scripts/efi.lds
6
7# Retain relocation information for elf2efi
8#
9LDFLAGS		+= -q -S
10
11# Media types.
12#
13NON_AUTO_MEDIA	+= efi
14NON_AUTO_MEDIA	+= efidrv
15
16# Rules for building EFI files
17#
18$(BIN)/%.efi : $(BIN)/%.efi.tmp $(ELF2EFI)
19	$(QM)$(ECHO) "  [FINISH] $@"
20	$(Q)$(ELF2EFI) --subsystem=10 $< $@
21
22$(BIN)/%.efidrv : $(BIN)/%.efidrv.tmp $(ELF2EFI)
23	$(QM)$(ECHO) "  [FINISH] $@"
24	$(Q)$(ELF2EFI) --subsystem=11 $< $@
25
26$(BIN)/%.efirom : $(BIN)/%.efidrv $(EFIROM)
27	$(QM)$(ECHO) "  [FINISH] $@"
28	$(Q)$(EFIROM) -v $(TGT_PCI_VENDOR) -d $(TGT_PCI_DEVICE) $< $@
29