我正在使用yocto项目为我的sama5d27 som1板构建linux内核。我试图缩小已发布内核的大小,因此我将sysVinit替换为busybox init,现在我试图用musl库替换gClibrary。
在我的Poky目录下,我使用以下方法克隆了musl层:
git://github.com/kraj/meta-musl.git git克隆
我将该层添加到bblayers.conf
中,并将TCLIBC = "musl"
添加到local.conf中,我初始化了环境,然后运行了bitbake core-image-minimal
。
我发现了这些错误:
/home/gaston/linux4sam/poky/build-microchip/tmp/work/cortexa5t2hf-neon-poky-linux-musleabi/systemd/1_237-r0/temp/log.do_compile.6846)错误: systemd-1_237-r0 do_compile:功能失败: do_compile (日志文件位于 错误:存储在: /home/gaston/linux4sam/poky/build-microchip/tmp/work/cortexa5t2hf-neon-poky-linux-musleabi/systemd/1_237-r0/temp/log.do_compile.6846中的失败的日志文件 (/home/gaston/linux4sam/poky/meta/recipes-core/systemd/systemd_237.bb:do_compile) 错误:退出代码'1‘的任务失败
你能帮帮我吗?
发布于 2019-05-25 08:04:23
我可能错了,但看起来meta-musl
是在musl
集成到项目之前为Yocto开发的。
您可以看到,元层已经4年没有更新。只需将TCLIBC = "musl"
添加到项目的配置中,并使用Yocto现在可用的内容。
https://stackoverflow.com/questions/56306046
复制