support/scripts/gen-bootlin-toolchains: generate BR2_ARCH_NEEDS_GCC_AT_LEAST_X guard
Previously, gen-bootlin-toolchains did not add a `depends` guard to limit the available toolchains based on the minimum required GCC version for the user selected CPU tuning. Now, the proper BR2_ARCH_NEEDS_GCC_AT_LEAST_X guard will be added based on the version of GCC provided by the toolchain. Signed-off-by: Vincent Fazio <vfazio@gmail.com> [yann.morin.1998@free.fr: regenerate the toolchain list] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
eed1670d8a
commit
a0d2a5cfec
@ -338,6 +338,8 @@ class Toolchain:
|
|||||||
m = re.match("^BR2_TOOLCHAIN_EXTERNAL_GCC_([0-9_]*)=y$", frag)
|
m = re.match("^BR2_TOOLCHAIN_EXTERNAL_GCC_([0-9_]*)=y$", frag)
|
||||||
assert m, "Cannot get gcc version for toolchain %s" % self.fname_prefix
|
assert m, "Cannot get gcc version for toolchain %s" % self.fname_prefix
|
||||||
selects.append("BR2_TOOLCHAIN_GCC_AT_LEAST_%s" % m[1])
|
selects.append("BR2_TOOLCHAIN_GCC_AT_LEAST_%s" % m[1])
|
||||||
|
# respect the GCC requirement for the selected CPU/arch tuning
|
||||||
|
depends.append("!BR2_ARCH_NEEDS_GCC_AT_LEAST_%s" % str(int(m[1]) + 1))
|
||||||
|
|
||||||
# kernel headers version
|
# kernel headers version
|
||||||
if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_HEADERS_"):
|
if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_HEADERS_"):
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user