mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-04 06:54:36 +02:00
tcmode: prefer a matching gcc version for target recipes
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
@@ -155,4 +155,16 @@ def populate_toolchain_links(d):
|
||||
|
||||
require conf/distro/include/csl-versions.inc
|
||||
|
||||
def get_gcc_version_prefix(d):
|
||||
ver = d.getVar('CSL_VER_GCC', True)
|
||||
if ver:
|
||||
components = ver.split('.')
|
||||
if len(components) > 1:
|
||||
return '.'.join(components[:2])
|
||||
else:
|
||||
return '4.7%'
|
||||
|
||||
# Prefer a matching gcc version
|
||||
GCCVERSION ?= "${@get_gcc_version_prefix(d)}%"
|
||||
|
||||
BUILDCFG_VARS += "CSL_VER_MAIN EXTERNAL_TOOLCHAIN"
|
||||
|
||||
Reference in New Issue
Block a user