Skip to contentSkip to conversation

Does any version of Yocto currently support LLVM/CLANG/and OpenCL ?

DISCUSSION Monsees, Steven C (US) 2 participants 2 messages Aug 6, 2020 – Aug 7, 2020

lore
Share & tools
lore
#0 lore raw

Hello:

I am currently working with rocko 2.4.1... building for X86_64 platforms.

I am looking to add support for LLVM/CLANG/and OpenCL, but thought it might be easier to move to a more recent version of Yocto if support was already in place for these components.

Is there a more recent version of the Yocto Project which possibly includes support for these components ?, and if not, has anyone ever attempted to build an SDK to add support these components to their platform ?

My first pass attempt finds the "nativesdk-cmake" functional, but the LLVM/CLANG build under the SDK appears to have some issues. Knowing my current rocko platform is a bit dated, I thought it best to check in and see if porting to a more recent platform might be beneficial.

Thanks,
Steve

#1 lore raw

Hi Steve

Quoted 11 lines · Steven C (US) via lists.yoctoproject.org

Hello:

I am currently working with rocko 2.4.1… building for X86_64 platforms.

I am looking to add support for LLVM/CLANG/and OpenCL, but thought it might be easier to move to a more recent version of Yocto if support was already in place for these components.

clang support is provided via its own layer ( meta-clang ) see
http://layers.openembedded.org/layerindex/branch/master/layer/meta-clang/
you can add it to your layer mix and it will add needed bits, please go through README and see what options you need.

Quoted 4 lines

Is there a more recent version of the Yocto Project which possibly includes support for these components ?, and if not, has anyone ever attempted to build an SDK to add support these components to their platform ?

There is rocko branch of meta-clang which should work for your release however rocko is no longer supported for meta-clang, for best results, I would suggest to move to latest release ( dunfell ) as of now, this branch is actively supported as well

Quoted 15 lines

My first pass attempt finds the “nativesdk-cmake” functional, but the LLVM/CLANG build under the SDK appears to have some issues.

Knowing my current rocko platform is a bit dated, I thought it best to check in and see if porting to a more recent platform might be beneficial.

Thanks,

Steve