From 204653a519b341353dc129b1471291bb202460e5 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 1 Jul 2025 20:38:24 +0100 Subject: uninative/utils: Drop workarounds for gcc 4.8/4.9 We require at least gcc 8.0 in sanity.bbclass so drop the 4.8/4.9 special case handling in uninative. (From OE-Core rev: 552e037bf598ac523f35b69d2dafc99e5ba59c5f) Signed-off-by: Richard Purdie --- meta/lib/oe/utils.py | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'meta/lib') diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index a11db5f3cd..0378071b5c 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -444,32 +444,6 @@ def get_host_compiler_version(d, taskcontextonly=False): version = match.group(1) return compiler, version - -def host_gcc_version(d, taskcontextonly=False): - import re, subprocess - - if taskcontextonly and d.getVar('BB_WORKERCONTEXT') != '1': - return - - compiler = d.getVar("BUILD_CC") - # Get rid of ccache since it is not present when parsing. - if compiler.startswith('ccache '): - compiler = compiler[7:] - try: - env = os.environ.copy() - env["PATH"] = d.getVar("PATH") - output = subprocess.check_output("%s --version" % compiler, \ - shell=True, env=env, stderr=subprocess.STDOUT).decode("utf-8") - except subprocess.CalledProcessError as e: - bb.fatal("Error running %s --version: %s" % (compiler, e.output.decode("utf-8"))) - - match = re.match(r".* (\d+\.\d+)\.\d+.*", output.split('\n')[0]) - if not match: - bb.fatal("Can't get compiler version from %s --version output" % compiler) - - version = match.group(1) - return "-%s" % version if version in ("4.8", "4.9") else "" - @bb.parse.vardepsexclude("DEFAULTTUNE_MULTILIB_ORIGINAL", "OVERRIDES") def get_multilib_datastore(variant, d): localdata = bb.data.createCopy(d) -- cgit v1.2.3-54-g00ecf