Home/Support/Support Forum/Multiple kernel image compile at a same time in yocto
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Multiple kernel image compile at a same time in yocto

0 votes

Currently, I am working on the Yocto based project.

I have some queries. Below are the detail descriptions:
On the board, we have two processors of the same series. However, we want to have a different kernel configuration and device tree for both processors.

Take an example: 1. Processor X -> defconfig_A and DTB_A 2. Processor X -> defconfig_B and DTB_B

Question: 1) Is it possible to compile both the kernel (defconfig_A, DTB_A, and defconfig_B, DTB_B) using the single machine with a single command? OR 2) Do I need to set up two different sources for the above kernel only?
asked Jun 11, 2020 in Linux by Neel New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
You would need two different workspace projects - one for each configuration. You can share state cache and downloads between two projects. You can start bitbake for both at the same time in different shells, but why would you do that? bitbake is very resource hungry and unless you have a supercomputer with 8+cores and 64Gb of RAM it will take double time. Bitbake first project. The first build will take a lot of time, but it will populate state cache and downloads. Then you can bitbake the second project and it will take less time. Once both projects are built for the first time, it will be quick to rebuild them.
answered Jun 11, 2020 by LeonidM Veteran of the Digi Community (4,115 points)