Re: On managing debug and production builds
Vinayak Menon
On Tue, Mar 1, 2022 at 12:34 PM tomzy <tomasz.zyjewski@...> wrote:
Thanks Tomasz. I will check kas. Yes, for selecting some of the packages I have created prod and debug image recipes. But this did not work for the kernel as the kernel recipe is picked as part of PROVIDER in machine conf. SoI had to use 2 conf to have the IMAGE_FEATURES (or any other var) set differently for prod and debug. This is for building the kernel recipie differently for prod and debug. Setting the IMAGE_FEATURES in the image recipe (and not in conf) causes 2 problems. One is that kernel and other bootloaders recipes are picked early via PROVIDER in conf and not as packages included in image recipe. Secondly, setting the var in the image recipe breaks this command for e.g. "bitbake base-image-prod.bb base-image-debug.bb". Since the command parses the recipes only once for both image creation.
-- vinayak |
|