find_archs() and find_tasks() were implemented when converting from sstate-cache-management.sh; neither have ever been used, so drop them.
Signed-off-by: Alex Kiernan <[email protected]> --- scripts/sstate-cache-management.py | 44 ------------------------------ 1 file changed, 44 deletions(-) diff --git a/scripts/sstate-cache-management.py b/scripts/sstate-cache-management.py index c361c3d5a07f..e77f0b0efb60 100755 --- a/scripts/sstate-cache-management.py +++ b/scripts/sstate-cache-management.py @@ -63,50 +63,6 @@ class SstateEntry: return self.match.group(name) -# this is what's in the original script; as far as I can tell, it's an -# implementation artefact which we don't need? -def find_archs(): - # all_archs - builder_arch = os.uname().machine - - # FIXME - layer_paths = [Path("../..")] - - tune_archs = set() - re_tune = re.compile(r'AVAILTUNES .*=.*"(.*)"') - for path in layer_paths: - for tunefile in [ - p for p in path.glob("meta*/conf/machine/include/**/*") if p.is_file() - ]: - with open(tunefile) as f: - for line in f: - m = re_tune.match(line) - if m: - tune_archs.update(m.group(1).split()) - - # all_machines - machine_archs = set() - for path in layer_paths: - for machine_file in path.glob("meta*/conf/machine/*.conf"): - machine_archs.add(machine_file.parts[-1][:-5]) - - extra_archs = set() - all_archs = ( - set( - arch.replace("-", "_") - for arch in machine_archs | tune_archs | set(["allarch", builder_arch]) - ) - | extra_archs - ) - - print(all_archs) - - -# again, not needed? -def find_tasks(): - print(set([p.bb_task for p in paths])) - - def collect_sstate_paths(args): def scandir(path, paths): # Assume everything is a directory; by not checking we avoid needing an
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#247219): https://lists.openembedded.org/g/openembedded-core/message/247219 Mute This Topic: https://lists.openembedded.org/mt/121587346/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
