mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 03:32:12 +02:00
classes/populate_sdk_ext.bbclass: handle if local.conf doesn't end with a newline
If there is no newline at the end of local.conf, appending INHERIT = "uninative" won't work, it will corrupt the line and the installed eSDK will build things, making the "Preparing build system..." step take an age. Fixes [YOCTO #8897]. (From OE-Core rev: 1e641f09e8cf0ba716c3d2aade0845abecc27827) 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
764c9279ea
commit
91877aa60e
@@ -142,6 +142,8 @@ python copy_buildsystem () {
|
||||
for line in newlines:
|
||||
if line.strip() and not line.startswith('#'):
|
||||
f.write(line)
|
||||
# Write a newline just in case there's none at the end of the original
|
||||
f.write('\n')
|
||||
|
||||
f.write('INHERIT += "%s"\n\n' % 'uninative')
|
||||
f.write('CONF_VERSION = "%s"\n\n' % d.getVar('CONF_VERSION', False))
|
||||
|
||||
Reference in New Issue
Block a user