简体   繁体   English

是否可以在不构建整个核心的情况下进行层烤制?

[英]Is it possible to bitbake a layer without without building entire core?

Suppose I create a new layer meta-example with a recipe whose provider is example that has no dependencies with core (layer meta ). 假设我用配方创建了一个新的层元示例 ,该配方的提供者是example ,并且与核心没有任何依赖关系(层meta )。 Suppose the do_build task is just an echo. 假设do_build任务只是一个回显。 You can replicate this scenario issuing these commands: 您可以通过发出以下命令来复制此方案:

bitbake-layers create-layer meta-examaple
bitbake-layers add-layer meta-example

Is there a way to execute bitbake example without having to build the entire core? 有没有一种方法可以执行bitbake示例,而不必构建整个内核?

I tried to set LAYERDEPENDS_meta-example = "" (previously it was set to core) but in vain. 我试图设置LAYERDEPENDS_meta-example =“”(以前它被设置为核心),但是没有用。 I would have expected the echo command to be executed without the entire core build process. 我曾希望echo命令能够在没有整个核心构建过程的情况下执行。

I cannot manage to find where Yocto is programmed to build the core before any other layer. 我无法找到Yocto在何处编程以在其他任何层之前构建内核。 Where can I find this piece of code? 我在哪里可以找到这段代码?

Thanks. 谢谢。

At no point is "the entire core" built unless you bitbake world or universe . 除非您烘烤worlduniverse否则绝不会建立“整个核心”。 Building a recipe will build gcc, binutils, glibc and so on, but that's not all of oe-core. 构建配方将构建gcc,binutils,glibc等,但这并不是oe-core的全部。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM