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
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