diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-12-19 23:35:02 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-08 20:14:44 +0000 |
commit | a4e7bb534610707de4f995fd1e66ec3dbd258199 (patch) | |
tree | 7f6902d5ff55e9018a53bcb3cd78f09b77f4f215 /meta | |
parent | c9bffece78263a9be9657ca6566e431988c303d8 (diff) | |
download | poky-a4e7bb534610707de4f995fd1e66ec3dbd258199.tar.gz |
populate_sdk_ext.bbclass: Include site.conf in parsing for contents for local.conf
Some distros use site.conf to emit certain variables which are important
for eSDK e.g. DISTRO with out which eSDK will not be able to ger right
metadata when it tries to build
(From OE-Core rev: 95659bed3f6f3216b346f70cfc9ffae9788c0fc1)
(From OE-Core rev: d2f802b656dea7f9c227bd86db35e02c33f69021)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index e30c49296d..40b0375e0b 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -280,6 +280,8 @@ python copy_buildsystem () { | |||
280 | 280 | ||
281 | # Create local.conf | 281 | # Create local.conf |
282 | builddir = d.getVar('TOPDIR') | 282 | builddir = d.getVar('TOPDIR') |
283 | if derivative and os.path.exists(builddir + '/conf/site.conf'): | ||
284 | shutil.copyfile(builddir + '/conf/site.conf', baseoutpath + '/conf/site.conf') | ||
283 | if derivative and os.path.exists(builddir + '/conf/auto.conf'): | 285 | if derivative and os.path.exists(builddir + '/conf/auto.conf'): |
284 | shutil.copyfile(builddir + '/conf/auto.conf', baseoutpath + '/conf/auto.conf') | 286 | shutil.copyfile(builddir + '/conf/auto.conf', baseoutpath + '/conf/auto.conf') |
285 | if derivative: | 287 | if derivative: |
@@ -297,6 +299,9 @@ python copy_buildsystem () { | |||
297 | return origvalue, op, 0, True | 299 | return origvalue, op, 0, True |
298 | varlist = ['[^#=+ ]*'] | 300 | varlist = ['[^#=+ ]*'] |
299 | oldlines = [] | 301 | oldlines = [] |
302 | if os.path.exists(builddir + '/conf/site.conf'): | ||
303 | with open(builddir + '/conf/site.conf', 'r') as f: | ||
304 | oldlines += f.readlines() | ||
300 | if os.path.exists(builddir + '/conf/auto.conf'): | 305 | if os.path.exists(builddir + '/conf/auto.conf'): |
301 | with open(builddir + '/conf/auto.conf', 'r') as f: | 306 | with open(builddir + '/conf/auto.conf', 'r') as f: |
302 | oldlines += f.readlines() | 307 | oldlines += f.readlines() |