diff options
| -rw-r--r-- | meta/classes-recipe/populate_sdk_ext.bbclass | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/meta/classes-recipe/populate_sdk_ext.bbclass b/meta/classes-recipe/populate_sdk_ext.bbclass index 36a3e9c836..2859320ddf 100644 --- a/meta/classes-recipe/populate_sdk_ext.bbclass +++ b/meta/classes-recipe/populate_sdk_ext.bbclass | |||
| @@ -317,15 +317,10 @@ def write_local_conf(d, baseoutpath, derivative, core_meta_subdir, uninative_che | |||
| 317 | return origvalue, op, 0, True | 317 | return origvalue, op, 0, True |
| 318 | varlist = ['[^#=+ ]*'] | 318 | varlist = ['[^#=+ ]*'] |
| 319 | oldlines = [] | 319 | oldlines = [] |
| 320 | if os.path.exists(builddir + '/conf/site.conf'): | 320 | for conffile in ['site.conf', 'auto.conf', 'toolcfg.conf', 'local.conf']: |
| 321 | with open(builddir + '/conf/site.conf', 'r') as f: | 321 | if os.path.exists(builddir + '/conf/' + conffile): |
| 322 | oldlines += f.readlines() | 322 | with open(builddir + '/conf/' + conffile, 'r') as f: |
| 323 | if os.path.exists(builddir + '/conf/auto.conf'): | 323 | oldlines += f.readlines() |
| 324 | with open(builddir + '/conf/auto.conf', 'r') as f: | ||
| 325 | oldlines += f.readlines() | ||
| 326 | if os.path.exists(builddir + '/conf/local.conf'): | ||
| 327 | with open(builddir + '/conf/local.conf', 'r') as f: | ||
| 328 | oldlines += f.readlines() | ||
| 329 | (updated, newlines) = bb.utils.edit_metadata(oldlines, varlist, handle_var) | 324 | (updated, newlines) = bb.utils.edit_metadata(oldlines, varlist, handle_var) |
| 330 | 325 | ||
| 331 | with open(baseoutpath + '/conf/local.conf', 'w') as f: | 326 | with open(baseoutpath + '/conf/local.conf', 'w') as f: |
