Lines Matching +full:sstate +full:- +full:cache
1 # Development tool - sdk-update command plugin
3 # Copyright (C) 2015-2016 Intel Corporation
5 # SPDX-License-Identifier: GPL-2.0-only
47 """Return a list containing sstate objects which are to be installed"""
60 logger.error("More than one matching sstate object found for %s" % hashval)
72 """Install sstate objects into destination SDK"""
73 sstate_dir = os.path.join(dest_sdk, 'sstate-cache')
75 …logger.error("Missing sstate-cache directory in %s, it might not be an extensible SDK." % dest_sdk)
100 """Entry point for devtool sdk-update command"""
106 # Make sure we are using sdk-update from within SDK
108 old_locked_sig_file_path = os.path.join(basepath, 'conf/locked-sigs.inc')
110 …ger.error("Not using devtool's sdk-update command from within an extensible SDK. Please specify co…
111 return -1
113 logger.debug("Found conf/locked-sigs.inc in %s" % basepath)
117 return -1
134 new_locked_sig_file_path = os.path.join(tmpsdk_dir, 'conf', 'locked-sigs.inc')
136 tmpmanifest = os.path.join(tmpsdk_dir, 'conf', 'sdk-conf-manifest')
137 …ret = subprocess.call("wget -q -O %s %s/conf/sdk-conf-manifest" % (tmpmanifest, updateserver), she…
143 logger.info("Already up-to-date")
149 out = subprocess.check_output("git status --porcelain", shell=True, cwd=layers_dir)
151 … ret = subprocess.call("git fetch --all; git reset --hard @{u}", shell=True, cwd=layers_dir)
155 return -1
157 ret = -1
165 …ret = subprocess.call("wget -q -O %s %s/%s" % (changedfile, updateserver, changedfile), shell=True…
188 …uninative_file = os.path.join('downloads', 'uninative', chksum, '%s-nativesdk-libc.tar.bz2' % buil…
190 …ret = subprocess.call("wget -q -O %s %s/%s" % (uninative_file, updateserver, uninative_file), shel…
192 # Ok, all is well at this point - move everything over
201 os.remove(os.path.join(conf_dir, 'sdk-conf-manifest'))
210 … f.write('SSTATE_MIRRORS:append = " file://.* %s/sstate-cache/PATH"\n' % updateserver)
227 …exec_build_env_command(config.init_path, basepath, 'bitbake --setscene-only %s' % ' '.join(sdk_upd…
228 …output, _ = exec_build_env_command(config.init_path, basepath, 'bitbake -n %s' % ' '.join(sdk_upda…
235 return -1
238 return -1
242 """Entry point for the devtool sdk-install command"""
282 if recipe.endswith('-native') and 'package' in task:
287 options += ' --setscene-only'
297 raise DevtoolError('Failed to install %s - unavailable' % recipe)
303 exec_build_env_command(config.init_path, basepath, 'bitbake build-sysroots', watch=True)
305 raise DevtoolError('Failed to bitbake build-sysroots:\n%s' % (str(e)))
311 parser_sdk = subparsers.add_parser('sdk-update',
320 …parser_sdk.add_argument('--skip-prepare', action="store_true", help='Skip re-preparing the build s…
323 parser_sdk_install = subparsers.add_parser('sdk-install',
328 …parser_sdk_install.add_argument('-s', '--allow-build', help='Allow building requested item(s) from…