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 587B

12345678910111213141516171819202122232425
  1. # -*- makefile -*- : Force emacs to use Makefile mode
  2. # The EFI linker script
  3. #
  4. LDSCRIPT = arch/i386/scripts/efi.lds
  5. # Use a relocatable link; we perform final relocations in the efilink utility.
  6. #
  7. LDFLAGS += -r -d -S
  8. # Media types.
  9. #
  10. NON_AUTO_MEDIA += efi
  11. # Rule for building EFI files
  12. #
  13. $(BIN)/%.efi.tmp-reloc : $(BIN)/%.efi.tmp $(EFILINK)
  14. $(QM)$(ECHO) " [EFILINK] $@"
  15. $(Q)# Check for unresolved symbols
  16. $(Q)$(LD) -e 0 --no-warn-mismatch -o /dev/null $<
  17. $(Q)$(EFILINK) $< $@
  18. $(BIN)/%.efi : $(BIN)/%.efi.tmp-reloc
  19. $(QM)$(ECHO) " [FINISH] $@"
  20. $(Q)$(OBJCOPY) -Obinary $< $@