This is an archive of the discontinued LLVM Phabricator instance.

[libc] Support poky system
ClosedPublic

Authored by mikhail.ramalho on Aug 8 2023, 8:22 AM.

Details

Summary

This patch adds support for yocto images, which are custom Linux-base
systems created by yocto.

$CMAKE_HOST_SYSTEM_NAME returns "poky" as the system name, but it is a
linux image, so we just replace the name with "linux", so libc can use
the correct path.

Diff Detail

Event Timeline

mikhail.ramalho created this revision.Aug 8 2023, 8:22 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 8 2023, 8:22 AM
mikhail.ramalho requested review of this revision.Aug 8 2023, 8:22 AM
michaelrj accepted this revision.Aug 8 2023, 12:05 PM

LGTM with nit

libc/cmake/modules/LLVMLibCArchitectures.cmake
167

Nit: there should be a comment explaining what poky is and why it's equivalent to linux here.

This revision is now accepted and ready to land.Aug 8 2023, 12:05 PM
This revision was automatically updated to reflect the committed changes.