recipes中声明 DEPENDS += “virtual/kernel“ 的效果

recipes中​​声明 DEPENDS += “virtual/kernel” 的效果:​​

​​依赖链触发重建​​:
当 virtual/kernel 的任意输出文件(包括内核镜像、模块、设备树.dtb等)发生变化时
Yocto 的签名机制(SIGGEN_LOCKEDSIGS)会自动检测到依赖项的变更
​​所有明确声明依赖 virtual/kernel 的 recipe 会被标记为 "out of date"​​
下次执行 bitbake your-recipe 时会自动重新执行全流程(包括解压、配置、编译、安装、打包)
​​实际操作验证​​:

1. 修改dts文件后,仅重新编译内核

bitbake -c compile -f virtual/kernel

2. 直接构建您的recipe(无需指定clean或-f参数)

bitbake your-recipe

Yocto将自动:

- 检测内核变更

- 重新运行您recipe的do_install/do_package等任务

<

你可能感兴趣的:(嵌入式硬件,linux,软件构建)