Browse Source

efi_loader: do not use symbolic links

Symbolic links are not supported on all file systems, e.g. not on FAT. So
it is not wise to use them in our source tree.

Use a qualified path to refer to lib/efi_loader/efi_freestanding.c in
scripts/Makefile.lib instead.

Reported-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
[agraf: Fix build with O=]
Signed-off-by: Alexander Graf <agraf@suse.de>
Heinrich Schuchardt 5 years ago
parent
commit
6c75db07f4
2 changed files with 1 additions and 2 deletions
  1. 0 1
      lib/efi_selftest/efi_freestanding.c
  2. 1 1
      scripts/Makefile.lib

+ 0 - 1
lib/efi_selftest/efi_freestanding.c

@@ -1 +0,0 @@
-../efi_loader/efi_freestanding.c

+ 1 - 1
scripts/Makefile.lib

@@ -389,7 +389,7 @@ $(obj)/efi_reloc.o: $(srctree)/arch/$(ARCH)/lib/$(EFI_RELOC:.o=.c) $(recordmcoun
 	$(call cmd,force_checksrc)
 	$(call if_changed_rule,cc_o_c)
 
-$(obj)/%_efi.so: $(obj)/%.o $(obj)/efi_crt0.o $(obj)/efi_reloc.o $(obj)/efi_freestanding.o
+$(obj)/%_efi.so: $(obj)/%.o $(obj)/efi_crt0.o $(obj)/efi_reloc.o $(obj)/../efi_loader/efi_freestanding.o
 	$(call cmd,efi_ld)
 
 # ACPI