yocto.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* On managing debug and production builds
@ 2022-03-01  5:06 Vinayak Menon
  2022-03-01  7:04 ` tomzy
  0 siblings, 1 reply; 8+ messages in thread
From: Vinayak Menon @ 2022-03-01  5:06 UTC (permalink / raw)
  To: yocto

I have a requirement to create production and release builds for the
same machine. Debug build would use most of the production recipes,
except few images like Linux kernel that will have debug configs
enabled and a separate debug image is created.  Also debug images will
have few extra debug packages and image features like debug-tweaks
enabled. What is the standard way of managing this ?
One other requirement is that for e.g. I do not want both debug and
production linux images to be created in one build. That increases the
build time. i.e. just adding debug variant recipes alone does not
suffice.
Also the debug and production variants are not specific to a machine,
i.e. tomorrow if I add another machine, I should be able to generate
both variants for that machine too without any machine conf changes.

What I have tried right now is to create 2 local.conf, one in
meta/conf and other in meta/conf/debug. The debug conf has an
IMAGE_FEATURE indicating that it is a debug variant. I am using the
debug-tweaks image feature as of now. And then I switch the confs with
TEMPLATECONF. Now, for recipes, I have not created separate debug
recipes. For e.g. in the linux recipe I am just looking for the
debug-tweaks feature to pick the right config fragments.

Thanks,
Vinayak


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-03-02  6:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01  5:06 On managing debug and production builds Vinayak Menon
2022-03-01  7:04 ` tomzy
2022-03-01  8:52   ` [yocto] " Vinayak Menon
2022-03-01  8:58     ` Alexander Kanavin
2022-03-01  9:26     ` tomzy
2022-03-02  3:22       ` [yocto] " Karthik Poduval
2022-03-02  6:50         ` Josef Holzmayr
     [not found]       ` <CAH9dsRgmBt-Y-P0P+1o1u6RC2WqFXH03nURMnaDpZJjNH_nE0Q@mail.gmail.com>
2022-03-02  6:29         ` Vinayak Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).