diff options
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index ebb57bba6b..bb8831bf31 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -47,6 +47,7 @@ SDK_TITLE_task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME', True) or d.getVar( | |||
47 | python copy_buildsystem () { | 47 | python copy_buildsystem () { |
48 | import re | 48 | import re |
49 | import shutil | 49 | import shutil |
50 | import glob | ||
50 | import oe.copy_buildsystem | 51 | import oe.copy_buildsystem |
51 | 52 | ||
52 | oe_init_env_script = d.getVar('OE_INIT_ENV_SCRIPT', True) | 53 | oe_init_env_script = d.getVar('OE_INIT_ENV_SCRIPT', True) |
@@ -224,6 +225,21 @@ python copy_buildsystem () { | |||
224 | if name.endswith("_package.tgz"): | 225 | if name.endswith("_package.tgz"): |
225 | f = os.path.join(root, name) | 226 | f = os.path.join(root, name) |
226 | os.remove(f) | 227 | os.remove(f) |
228 | |||
229 | # Write manifest file | ||
230 | # Note: at the moment we cannot include the env setup script here to keep | ||
231 | # it updated, since it gets modified during SDK installation (see | ||
232 | # sdk_ext_postinst() below) thus the checksum we take here would always | ||
233 | # be different. | ||
234 | manifest_file_list = ['conf/*'] | ||
235 | manifest_file = os.path.join(baseoutpath, 'conf', 'sdk-conf-manifest') | ||
236 | with open(manifest_file, 'w') as f: | ||
237 | for item in manifest_file_list: | ||
238 | for fn in glob.glob(os.path.join(baseoutpath, item)): | ||
239 | if fn == manifest_file: | ||
240 | continue | ||
241 | chksum = bb.utils.sha256_file(fn) | ||
242 | f.write('%s\t%s\n' % (chksum, os.path.relpath(fn, baseoutpath))) | ||
227 | } | 243 | } |
228 | 244 | ||
229 | def extsdk_get_buildtools_filename(d): | 245 | def extsdk_get_buildtools_filename(d): |