如何建立 Yocto 的 hello world recipe?

本文介绍了如何在Yocto项目中创建一个Hello World recipe。内容包括将helloworld.bb放置在meta-openeuler的recipes-core目录下,解决Bitbake的“Nothing PROVIDES”错误,设置recipe的DESCRIPTION、LICENSE、SRC_URI、do_compile和do_install函数,并添加到IMAGE_INSTALL中。此外,还提到了在Linux环境下使用source命令执行脚本的细节。
摘要由CSDN通过智能技术生成

如何建立 Yocto 的 hello world recipe?

https://www.wpgdadatong.com/cn/blog/detail?BID=B1699

helloworld.bb 放在了hello里面了
/usr1/openeuler/src/yocto-meta-openeuler/meta-openeuler/recipes-core/hello

cd /usr1/openeuler/src/yocto-meta-openeuler/scripts/helloyocto

Bitbake:“没有提供”错误(Bitbake: “Nothing PROVIDES” error)

https://www.656463.com/wenda/Bitbakemeiyoutigongcuowu_250

16:10
想自由
bitbake-layers show-layers
16:14
想自由
bitbake-layers create-layer …/meta-mylayer

16:18
想自由
recipes-common
想自由
DESCRIPTION = “Prints Hello World”

SRC_URI = “file://helloworld.c”

LICENSE = “MIT”
LIC_FILES_CHKSUM = “file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302”

do_compile() {
CC{LDFLAGS} …/helloworld.c -o helloworld
}

do_install() {
install -d D{bindir}
install -m 0755 helloworl

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值