You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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