diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-07 00:05:36 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-07 00:05:40 +0100 |
| commit | 2222644c0e736c308d5b432c7051cf8364ea9052 (patch) | |
| tree | 6b94ecd938eebca10117f43a7ffa10f6a91d6eb7 | |
| parent | 2aac4fb39781fb607530fbab43d11a56a9b7e5e0 (diff) | |
| download | poky-2222644c0e736c308d5b432c7051cf8364ea9052.tar.gz | |
populate_sdk_ext: Update to toolcfg.conf
(From OE-Core rev: ccdab1ea0d73e96eb434bccaaba2b6192f42b999)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -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: |
