This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
2008-10-12 02:55:55 +02:00
|
|
|
# -*- makefile -*- : Force emacs to use Makefile mode
|
|
|
|
|
|
|
|
# The EFI linker script
|
|
|
|
#
|
|
|
|
LDSCRIPT = arch/i386/scripts/efi.lds
|
|
|
|
|
|
|
|
# Use a relocatable link; we perform final relocations in the efilink utility.
|
|
|
|
#
|
|
|
|
LDFLAGS += -r -d -S
|
|
|
|
|
|
|
|
# Media types.
|
|
|
|
#
|
|
|
|
NON_AUTO_MEDIA += efi
|
|
|
|
|
|
|
|
# Rule for building EFI files
|
|
|
|
#
|
|
|
|
$(BIN)/%.efi.tmp-reloc : $(BIN)/%.efi.tmp $(EFILINK)
|
|
|
|
$(QM)$(ECHO) " [EFILINK] $@"
|
2009-01-05 21:54:40 +01:00
|
|
|
$(Q)# Check for unresolved symbols
|
|
|
|
$(Q)$(LD) -e 0 --no-warn-mismatch -o /dev/null $<
|
2008-10-12 02:55:55 +02:00
|
|
|
$(Q)$(EFILINK) $< $@
|
|
|
|
|
|
|
|
$(BIN)/%.efi : $(BIN)/%.efi.tmp-reloc
|
|
|
|
$(QM)$(ECHO) " [FINISH] $@"
|
|
|
|
$(Q)$(OBJCOPY) -Obinary $< $@
|