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.

Makefile.efi 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # -*- makefile -*- : Force emacs to use Makefile mode
  2. # The EFI linker script
  3. #
  4. LDSCRIPT = 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. # Include SNP driver in the all-drivers build
  15. #
  16. DRIVERS_net += snp
  17. # Rules for building EFI files
  18. #
  19. $(BIN)/%.efi : $(BIN)/%.efi.tmp $(ELF2EFI)
  20. $(QM)$(ECHO) " [FINISH] $@"
  21. $(Q)$(ELF2EFI) --subsystem=10 $< $@
  22. $(BIN)/%.efidrv : $(BIN)/%.efidrv.tmp $(ELF2EFI)
  23. $(QM)$(ECHO) " [FINISH] $@"
  24. $(Q)$(ELF2EFI) --subsystem=11 $< $@
  25. $(BIN)/%.drv.efi : $(BIN)/%.efidrv
  26. $(QM)$(ECHO) " [FINISH] $@"
  27. $(Q)$(CP) $< $@
  28. $(BIN)/%.efirom : $(BIN)/%.efidrv $(EFIROM)
  29. $(QM)$(ECHO) " [FINISH] $@"
  30. $(Q)$(EFIROM) -v $(TGT_PCI_VENDOR) -d $(TGT_PCI_DEVICE) $< $@
  31. $(BIN)/efidrv.cab : $(BIN)/alldrv.efis # $(ALL_drv.efi) is not yet defined
  32. $(QM)$(ECHO) " [CAB] $@"
  33. $(Q)$(LCAB) -n -q $(ALL_drv.efi) $@
  34. $(BIN)/%.usb : $(BIN)/%.efi
  35. $(QM)$(ECHO) " [GENEFIDSK] $@"
  36. $(Q)bash util/genefidsk -o $@ -b $(EFI_BOOT_FILE) $<