TEMPLATECONF needs to be set only when you execute oe-init-build-env to initialize the build. You don't need to permanently export it to the environment, and can simply put it as a prefix to the command:
TEMPLATECONF=/path/to/config/template/in/some/meta-layer/ . /path/to/oe-init-build-env /path/to/build-folder This is awkward and not user friendly, so oe-setup-build was developed. But it's not in kirkstone. A command to save the active configuration to a template in a layer is not in kirkstone either. You need to copy the files in conf/ by hand, or you can create them yourself from nothing. Altogether, you'll get better support for this in newer yocto versions. We're still working on standardizing everything and closing all the gaps. I would recommend that you set up a scarthgap build (with just plain poky, no other layers), and play with the tools available there to understand better how the pieces fit together. Alex On Wed, 5 Jun 2024 at 12:21, Saswati Nayak <saswatinayak2...@gmail.com> wrote: > > Hello Alexander, > > Can you help me with the example? > As I am using the Kirkstone version of yocto, I am not able to get a proper > idea how to set. > Do we need to export the TEMPLATECONF? > > > Thanks & Regards > Saswati > > On Tue, Jun 4, 2024 at 3:54 PM Alexander Kanavin <alex.kana...@gmail.com> > wrote: >> >> If your yocto version is recent enough, use >> >> 'bitbake-layers save-build-conf' to save build/conf/ as a template. In >> older versions you need to do what it does by hand. >> >> To set up a build from template, use oe-setup-build (from scarthgap >> onwards) or TEMPLATECONF= . oe-init-build-env in older versions. >> >> Alex >> >> On Tue, 4 Jun 2024 at 12:17, Saswati Nayak via lists.yoctoproject.org >> <saswatinayak2010=gmail....@lists.yoctoproject.org> wrote: >> > >> > Hello All, >> > >> > I want to add a custom templateconf in my build directory. >> > Can anyone help me how to create Templateconf from our local source so >> > that it will point in the build/conf/templateconf.cfg . >> > >> > Thanks & Regards >> > Saswati >> > >> > >> >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63284): https://lists.yoctoproject.org/g/yocto/message/63284 Mute This Topic: https://lists.yoctoproject.org/mt/106479728/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-