]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
scripts/oe-setup-builddir: do not read TEMPLATECONF from templateconf.cfg
authorAlexander Kanavin <alex@linutronix.de>
Wed, 28 Sep 2022 08:56:35 +0000 (10:56 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Sep 2022 20:13:36 +0000 (21:13 +0100)
commitbcfaeb8ed503ce1a5add3ec882f0e0c3bccfd3d2
treefe0987e96d16995115be907cc561cdf42b718c61
parent95fc819fca11115623d0f1f7f0c11e9c46195b21
scripts/oe-setup-builddir: do not read TEMPLATECONF from templateconf.cfg

Also, write to it only if it does not already exist.

As discussed here[1], reading from templateconf.cfg serves no purpose:
it exists only if the build directory has already been initialized, and so
the scripts will not change anything in the build directory anyway.

My adjustment is to keep the file however; it is useful as a pointer
to the original template, which can be utilized by config management
tools in the future.

[1] https://lists.openembedded.org/g/openembedded-architecture/topic/template_handling_in_oe_core/93968540

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-setup-builddir