Phytec中国的wiki
support@phytec.cn
热线:0755-61802110-803
Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
% yoctobitbake-layerlayers create-layer meta-example 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] Would you like to have an example bbappend file created? (y/n) [default: n] New layer created in meta-example. Don't forget to add it to your BBLAYERS (for details see meta-example/README). |
并修改build/conf/bblayers.conf,增加meta-example layer,
然后使用下面这个命令来生成bbappend文件以及补丁:
...
language | bash |
---|---|
theme | Midnight |
NOTE: Starting bitbake server...
Add your new layer with 'bitbake-layers add-layer meta-example' |
并修改build/conf/bblayers.conf,增加meta-example layer,
然后使用下面这个命令检查要对recipe的修改内容,其中各个参数的意思详见devtool update-recipe --help
Code Block | ||||
---|---|---|---|---|
| ||||
% devtool update-recipe --append ../sources/meta-example --dry-run linux-mainline
NOTE: Starting bitbake server...
WARNING: Layer meta-example should set LAYERSERIES_COMPAT_meta-example in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |####################################################################################################################| Time: 0:00:00
Loaded 3204 entries from dependency cache.
Parsing recipes: 100% |##################################################################################################################| Time: 0:00:01
Parsing of 2315 .bb files complete (2314 cached, 1 parsed). 3205 targets, 371 skipped, 0 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_meta-example '^/mnt/rd/home/bob/bsp/BSP-Yocto-AM335x-PD19.1.1/sources/meta-example/'
Summary: There were 2 WARNING messages shown.
NOTE: Handling main branch (devtool)...
NOTE: Writing append file /mnt/rd/home/bob/bsp/BSP-Yocto-AM335x-PD19.1.1/sources/meta-example/recipes-kernel/linux/linux-mainline_4.14.78-phy6.bbappend (dry-run)
NOTE: Copying 0002-fix-display-and-touch.patch to /mnt/rd/home/bob/bsp/BSP-Yocto-AM335x-PD19.1.1/sources/meta-example/recipes-kernel/linux/linux-mainline/0002-fix-display-and-touch.patch (dry-run)
NOTE: Copying 0003-fix-ethernet.patch to /mnt/rd/home/bob/bsp/BSP-Yocto-AM335x-PD19.1.1/sources/meta-example/recipes-kernel/linux/linux-mainline/0003-fix-ethernet.patch (dry-run)
NOTE: Copying debugging.cfg to /mnt/rd/home/bob/bsp/BSP-Yocto-AM335x-PD19.1.1/sources/meta-example/recipes-kernel/linux/linux-mainline/debugging.cfg (dry-run)
NOTE: Copying 0001-add-huagao-s-dt-nicola-did.patch to /mnt/rd/home/bob/bsp/BSP-Yocto-AM335x-PD19.1.1/sources/meta-example/recipes-kernel/linux/linux-mainline/0001-add-huagao-s-dt-nicola-did.patch (dry-run)
NOTE: Handling branch devtool-override-ti33x...
NOTE: No patches or local source files needed updating |
如果确认无误,可以去掉--dry-run,然后将更改添加到recipe中。
...
此时就会在meta-example中自动生成所作的修改。
Code Block | ||||
---|---|---|---|---|
| ||||
bob@Z220 ~/bsp/sources/meta-example/recipes-bsp
% tree
.
└── barebox
├── barebox
│ └── 0001-example.patch
└── barebox_%.bbappend |
注意patch文件一般是有顺序的,而之前介绍的流程并不会自动使用在workspace commit时的顺序,需要在bb文件中再检查一下。
...
% tree 21-06-08 - 14:38:35
.
└── linux
├── linux-mainline
│ ├── 0001-add-xxx-s-dt.patch
│ ├── 0002-fix-display-and-touch.patch
│ ├── 0003-fix-ethernet.patch
│ └── debugging.cfg
└── linux-mainline_4.14.78-phy6.bbappend |
注意patch文件一般是有顺序的,而之前介绍的流程并不会自动使用在workspace commit时的顺序,需要在bb文件中再检查一下。
...
Overview
Content Tools
Activity
Tasks