yocto环境学习--新建层

本文深入探讨了在Yocto环境中如何创建新的层,详细讲解了相关步骤和注意事项,帮助读者理解Yocto build系统及layer recipes的重要性。
摘要由CSDN通过智能技术生成
1.新建层使用命令 yocto-layer create layer_name
yangzhiwen@yzw-kingsee:yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp$ cd sources/
yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp/sources$ ls
base  meta-browser  meta-daiane  meta-fsl-arm  meta-fsl-arm-extra  meta-fsl-bsp-release  meta-fsl-demos  meta-openembedded  meta-qt5  poky
yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp/sources$ yocto-layer create elmo
Please enter the layer priority you'd like to use for the layer: [default: 6]                         #优先级
Would you like to have an example recipe created? (y/n) [default: n] y                                #是否包含一个样例
Please enter the name you'd like to use for your example recipe: [default: example] elmo-example    #样例名字
Would you like to have an example bbappend file created? (y/n) [default: n] y                        #是否创建样例的bbappend文件
Please enter the name you'd like to use for your bbappend file: [default: example] elmo-example        #样例的bbappend名字
Please enter the version number you'd like to use for your bbappend file (this should match the recipe you're appending to): [default: 0.1]    #版本号

New layer created in meta-elmo.

Don't forget to add it to your BBLAYERS (for details see meta-elmo\README).
yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp/sources$


2.到此为止,已经建好层了,并且已经有个Demo,先睹为快
yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp/sources$ ls
base  meta-browser  meta-daiane  meta-elmo  meta-fsl-arm  meta-fsl-arm-extra  meta-fsl-bsp-release  meta-fsl-demos  meta-openembedded  meta-qt5  poky
yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp/sources$ cd meta-elmo/
yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp/sources/meta-elmo$ ls
conf  COPYING.MIT  README  recipes-example  recipes-example-bbappend
yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp/sources/meta-elmo$ cd recipes-example/example/
yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp/sources/meta-elmo/recipes-example/example$ ls
elmo-example-0.1  elmo-example_0.1.bb
yangzhiwen@yzw-kingsee:/home/work/workspace/fsl-release-bsp/sources/meta-elmo/recipes-example/example$ ls elmo-example-0.1/
example.patch  helloworld.c
yangzhiwen@yzw-kingsee:/home/work/workspace/fs
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值