* aarch64 external-toolchain multilib support
@ 2024-02-27 17:51 d.sabato
2024-02-27 21:02 ` [meta-arm] " Denys Dmytriyenko
0 siblings, 1 reply; 2+ messages in thread
From: d.sabato @ 2024-02-27 17:51 UTC (permalink / raw)
To: meta-arm
[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]
Hello,
I use pre-built external ARM toolchain to build iMx8 distro 64 bit.
TCMODE = "external-arm"
EXTERNAL_TOOLCHAIN = "/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu"
I'd like to generate 32bit version of libraries for my sysroot so I add following in my build/local.conf :
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE:virtclass-multilib-lib32 = "armv7athf-neon"
IMAGE_INSTALL:append := " lib32-glibc lib32-libgcc lib32-libstdc++"
Am I doing right ?
Build Configuration:
BB_VERSION = "2.4.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "debian-12"
TARGET_SYS = "aarch64-oe-linux"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta = "master:3c35416a8bff3a857004beadbd053d50eca30ce2"
meta-oe
meta-networking
meta-python
meta-filesystems = "master:39968837196cb48209b71e8852dd04a2f8ccdca8"
meta-freescale = "master:7f0a7f3d19f564da0faf20e279b1b18a7f0068b6"
meta-arm-toolchain
meta-arm = "master:9bcc166bd5bb717aa86bb0464621a36abc51fa19"
Thank you,
Danilo
[-- Attachment #2: Type: text/html, Size: 1936 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [meta-arm] aarch64 external-toolchain multilib support
2024-02-27 17:51 aarch64 external-toolchain multilib support d.sabato
@ 2024-02-27 21:02 ` Denys Dmytriyenko
0 siblings, 0 replies; 2+ messages in thread
From: Denys Dmytriyenko @ 2024-02-27 21:02 UTC (permalink / raw)
To: d.sabato; +Cc: meta-arm
Unlike x86, there are separate compilers for 64bit Arm and 32bit Arm. The
external toolchain you use is aarch64-none-linux-gnu and is for 64bit, while
32bit toolchain is called arm-none-linux-gnueabihf. TCMODE=external-arm does
not support dual toolchains at the same time, hence no multilib.
On Tue, Feb 27, 2024 at 09:51:47AM -0800, d.sabato via lists.yoctoproject.org wrote:
> Hello,
> I use pre-built external ARM toolchain to build iMx8 distro 64 bit.
>
> TCMODE = "external-arm"
> EXTERNAL_TOOLCHAIN = "/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu"
>
> I'd like to generate 32bit version of libraries for my sysroot so I add following in my build/local.conf :
>
> require conf/multilib.conf
> MULTILIBS = "multilib:lib32"
> DEFAULTTUNE:virtclass-multilib-lib32 = "armv7athf-neon"
> IMAGE_INSTALL:append := " lib32-glibc lib32-libgcc lib32-libstdc++"
>
> Am I doing right ?
>
> Build Configuration:
> BB_VERSION = "2.4.0"
> BUILD_SYS = "x86_64-linux"
> NATIVELSBSTRING = "debian-12"
> TARGET_SYS = "aarch64-oe-linux"
> TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
> TARGET_FPU = ""
> meta = "master:3c35416a8bff3a857004beadbd053d50eca30ce2"
> meta-oe
> meta-networking
> meta-python
> meta-filesystems = "master:39968837196cb48209b71e8852dd04a2f8ccdca8"
> meta-freescale = "master:7f0a7f3d19f564da0faf20e279b1b18a7f0068b6"
> meta-arm-toolchain
> meta-arm = "master:9bcc166bd5bb717aa86bb0464621a36abc51fa19"
>
> Thank you,
> Danilo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-27 21:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-27 17:51 aarch64 external-toolchain multilib support d.sabato
2024-02-27 21:02 ` [meta-arm] " Denys Dmytriyenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.