Bug 6053

Summary: gnu-efi: LIBDIR is incorrect
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: VERIFIED FIXED QA Contact: Andra Necula <andrax.g.necula>
Severity: normal    
Priority: Medium+ CC: andrax.g.necula, dvhart, meta.mr.watcher, meta.watcher, sgw
Version: 1.6   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2014-03-27 06:00:21 UTC
Its LIBDIR in Makefile is:

LIBDIR = $(PREFIX)/lib

This is incorrect for 64 bit bsp, thus will cause build failures on gummiboot:

x86_64-wrs-linux-ld: cannot open linker script file /home/build/lyang1/testre/bitbake_build/tmp/sysroots/qemux86-64/usr/lib64/elf_x86_64_efi.lds: No such file or directory
Comment 1 Darren Hart 2014-03-27 15:14:13 UTC
This builds for me on a 64b BSP... are you doing something else unique here?
Comment 2 Darren Hart 2014-03-27 15:14:55 UTC
multilib?
Comment 3 Robert Yang 2014-03-28 02:27:50 UTC
(In reply to comment #2)
> multilib?

It works well if the ${libdir} of 64bit is /usr/lib, but it doesn't work if it is /usr/lib64.

Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e69f3081e9877352e11b862bf145e7bd21efe219
Comment 4 Andra Necula 2014-09-08 08:57:22 UTC
Hello,

I just checked building gummiboot and it succeeded for x64. I will mark this call as verified.

Andra