acrn-hypervisor/hypervisor/bsp/uefi/efi
Li Zhijian 4de9e1b4c0 HV Makefile: fix detection of gnu-efi tools location
The previous logic assumes LIBDIR to be /usr/lib64 if it exists.
some x86_64 distros, like ubuntu and debian, the default x86_64 libs(gnu-efi)
are installed into /usr/lib while /usr/lib64 is for i386
~/workspace$ dpkg -L gnu-efi | grep elf_x86_64_efi.lds
/usr/lib/elf_x86_64_efi.lds

~/workspace$ dpkg -S /usr/lib64
libc6-amd64:i386: /usr/lib64

so it failed to compile efi perviously as following errors:
-----------------
ld: cannot open linker script file /usr/lib64/elf_x86_64_efi.lds: No such file or directory
Makefile:102: recipe for target '/home/lizj/workspace/acrn-hypervisor/build/hypervisor/bsp/uefi/efi/boot.so' failed
make[2]: *** [/home/lizj/workspace/acrn-hypervisor/build/hypervisor/bsp/uefi/efi/boot.so] Error 1
make[2]: Leaving directory '/home/lizj/workspace/acrn-hypervisor/hypervisor/bsp/uefi/efi'
Makefile:191: recipe for target 'efi' failed
make[1]: *** [efi] Error 2
-----------------

v3: Keep the LIBDIR determination logic for linking ('-lgnuefi -lefi').
v2: addressed Geoffroy's comments

Acked-by: "VanCutsem, Geoffroy" <geoffroy.vancutsem@intel.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
2018-06-22 17:17:14 +08:00
..
boot.c HV:treewide:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
boot.h hv: Fix typo of trampline with trampoline 2018-06-12 15:54:16 +08:00
efilinux.h efi: clean RuntimeServices code 2018-05-15 17:25:57 +08:00
Makefile HV Makefile: fix detection of gnu-efi tools location 2018-06-22 17:17:14 +08:00
malloc.c hv: add memory allocation functions for trampoline code relocation 2018-06-11 12:15:28 +08:00
multiboot.h HV: treewide: convert hexadecimals used in bitops to unsigned 2018-06-21 13:12:39 +08:00
pe.c initial import 2018-05-11 14:44:28 +08:00
stdlib.h hv: add memory allocation functions for trampoline code relocation 2018-06-11 12:15:28 +08:00