AnsweredAssumed Answered

How do you conditionally include a package in an image recipe?

Question asked by Doug Bailey on Jun 12, 2018
Latest reply on Jun 25, 2018 by gusarambula

I am building a code image using the iMX6 BSP based on the Morty yocto release.


When I build my image, I usually include the serial console for debug purposes. When I build my release version of the image, I want to turn off the serial console. I want to specify the exclusion of the serial conoel by passing an environment variable into the build process. 


In the old systemV init, this variable would cause an edit to be made on inittab in an install script.


In the new SystemD world, the most expedient thing is to exclude the systemd-serialgetty package.


When specifying the image build, how do you conditionally include/exclude packages in the image recipe?



Doug Bailey