mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 12:32:13 +02:00
classes/populate_sdk_ext: support auto.conf
If auto.conf exists in the user's configuration we need to also run it through the same filter and write the result into the ext SDK, or we risk missing configuration applied on an autobuilder. Fixes [YOCTO #8904]. (From OE-Core rev: fb0a34a00f3eb10935a3fca4d0af74ae4de4f9a5) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
91877aa60e
commit
39f6472605
@@ -169,6 +169,19 @@ python copy_buildsystem () {
|
||||
|
||||
f.write('require conf/locked-sigs.inc\n')
|
||||
|
||||
if os.path.exists(builddir + '/conf/auto.conf'):
|
||||
with open(builddir + '/conf/auto.conf', 'r') as f:
|
||||
oldlines = f.readlines()
|
||||
(updated, newlines) = bb.utils.edit_metadata(oldlines, varlist, handle_var)
|
||||
with open(baseoutpath + '/conf/auto.conf', 'w') as f:
|
||||
f.write('# WARNING: this configuration has been automatically generated and in\n')
|
||||
f.write('# most cases should not be edited. If you need more flexibility than\n')
|
||||
f.write('# this configuration provides, it is strongly suggested that you set\n')
|
||||
f.write('# up a proper instance of the full build system and use that instead.\n\n')
|
||||
for line in newlines:
|
||||
if line.strip() and not line.startswith('#'):
|
||||
f.write(line)
|
||||
|
||||
sigfile = d.getVar('WORKDIR', True) + '/locked-sigs.inc'
|
||||
oe.copy_buildsystem.generate_locked_sigs(sigfile, d)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user