MUSL C 库不适用于 yocto 项目

MUSL C library does not work yocto project

我正在使用 yocto 项目 为我的 sama5d27 som1 板 构建 linux 内核。我正在尝试减小已发布内核的大小,因此我将 sysVinit 替换为 busybox init,现在我正在尝试将 gClibrary 替换为 musl C library.

在我的 Poky 目录下,我使用以下方法克隆了 meta-musl 层:

git 克隆 git://github.com/kraj/meta-musl.git

我将图层添加到 bblayers.conf 并将 TCLIBC = "musl" 添加到 local.conf 我初始化环境然后运行bitbake core-image-minimal

我遇到了这些错误:

ERROR: systemd-1_237-r0 do_compile: Function failed: do_compile (log file is located at /home/gaston/linux4sam/poky/build-microchip/tmp/work/cortexa5t2hf-neon-poky-linux-musleabi/systemd/1_237-r0/temp/log.do_compile.6846)

ERROR: Logfile of failure stored in: /home/gaston/linux4sam/poky/build-microchip/tmp/work/cortexa5t2hf-neon-poky-linux-musleabi/systemd/1_237-r0/temp/log.do_compile.6846

ERROR: Task (/home/gaston/linux4sam/poky/meta/recipes-core/systemd/systemd_237.bb:do_compile) failed with exit code '1'

你能帮帮我吗?

我可能错了,但看起来 meta-musl 是在 musl 集成到项目之前为 Yocto 制作的东西。

可以看到meta-layer已经4年没更新了。只需将 TCLIBC = "musl" 添加到项目的配置中,然后使用 Yocto 中可用的内容即可。