From 6c75db07f4115904a460540c8956db2087cceb1f Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Mon, 21 Jan 2019 19:30:42 +0100 Subject: [PATCH] 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 Signed-off-by: Heinrich Schuchardt [agraf: Fix build with O=] Signed-off-by: Alexander Graf --- lib/efi_selftest/efi_freestanding.c | 1 - scripts/Makefile.lib | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 120000 lib/efi_selftest/efi_freestanding.c diff --git a/lib/efi_selftest/efi_freestanding.c b/lib/efi_selftest/efi_freestanding.c deleted file mode 120000 index 4b7edd52bd..0000000000 --- a/lib/efi_selftest/efi_freestanding.c +++ /dev/null @@ -1 +0,0 @@ -../efi_loader/efi_freestanding.c \ No newline at end of file diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 4facb76ace..66e5015d8d 100644 --- a/scripts/Makefile.lib +++ b/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 -- 2.39.5