Skip to contentSkip to conversation

Build with Multi-arch in Linaro toolchain

DISCUSSION [email protected] 2 participants 3 messages Feb 19, 2014

lore
Share & tools
lore
#0 lore raw

Dear all,

I'm trying to used Linaro toolchain to build Aarch64 images, but this toolchain require all libraries must be deployed under /lib/<arch-linux-gnu>, /usr/lib/<arch-linux-gnu>.

I already made external-linaro-toolchain.bb to install all toolchain's libraries in corrected location(meant under /lib/<arch-linux-gnu> and /usr/lib/<arch-linux-gnu>, but other libraries generated by Yocto right now will install to default location is /lib and /usr/lib.

Do we have any way to ask Yocto generate libraries to /usr/lib/<arch-linux-gnu> ?

Thanks,

--
Uy Van

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and contains information
that is confidential and proprietary to Applied Micro Circuits Corporation or its subsidiaries. It is to be used solely for the purpose of furthering the parties' business relationship. All unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

#1 lore raw
Quoted 6 lines · On Wed, 2014-02-19 at 15:35 +0700, [email protected] wrote:

Dear all,

I’m trying to used Linaro toolchain to build Aarch64 images, but this toolchain require all libraries must be deployed
under /lib/<arch-linux-gnu>, /usr/lib/<arch-linux-gnu>.

Quoted 7 lines

I already made external-linaro-toolchain.bb to install all toolchain’s libraries in corrected location(meant under /lib/<arch-linux-gnu> and /usr/lib/<arch-linux-gnu>, but other libraries generated by Yocto right now will install to default location is /lib and /usr/lib.

Do we have any way to ask Yocto generate libraries to /usr/lib/<arch-linux-gnu> ?

Change the values of libdir and base_libdir?

That isn't tested or supported but in theory should work. Reality is you may run into some issues you may need to fix but there shouldn't be too many of them as we so test changing libdir to /usr/lib64 and so on.

Cheers,

Richard

#2 lore raw

Thanks for the answers,
Yes, I tried to change lib_dir and base_libdir, and as you said it ran into some issue.
i'm fixing and ask for if there is any other way.

Thank you very much.
Uy Van

Quoted 29 lines · Richard Purdie
Quoted 6 lines · On Wed, 2014-02-19 at 15:35 +0700, [email protected] wrote:

Dear all,

I'm trying to used Linaro toolchain to build Aarch64 images, but this toolchain require all libraries must be deployed
under /lib/<arch-linux-gnu>, /usr/lib/<arch-linux-gnu>.

Quoted 7 lines

I already made external-linaro-toolchain.bb to install all toolchain's libraries in corrected location(meant under /lib/<arch-linux-gnu> and /usr/lib/<arch-linux-gnu>, but other libraries generated by Yocto right now will install to default location is /lib and /usr/lib.

Do we have any way to ask Yocto generate libraries to /usr/lib/<arch-linux-gnu> ?

Change the values of libdir and base_libdir?

That isn't tested or supported but in theory should work. Reality is you may run into some issues you may need to fix but there shouldn't be too many of them as we so test changing libdir to /usr/lib64 and so on.

Cheers,

Richard

Signature · 9 lines
Uy Van

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, 
is for the sole use of the intended recipient(s) and contains information
that is confidential and proprietary to Applied Micro Circuits Corporation or its subsidiaries. 
It is to be used solely for the purpose of furthering the parties' business relationship. 
All unauthorized review, use, disclosure or distribution is prohibited. 
If you are not the intended recipient, please contact the sender by reply e-mail 
and destroy all copies of the original message.