support/scripts/gen-bootlin-toolchains: add missing glibc toolchain dependencies
glibc toolchains must be disabled for static only configuration. Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
1be8b22f48
commit
85d15bd200
@@ -233,14 +233,19 @@ class Toolchain:
|
|||||||
f.write("config %s\n" % self.option_name)
|
f.write("config %s\n" % self.option_name)
|
||||||
f.write("\tbool \"%s %s %s %s\"\n" %
|
f.write("\tbool \"%s %s %s %s\"\n" %
|
||||||
(self.arch, self.libc, self.variant, self.version))
|
(self.arch, self.libc, self.variant, self.version))
|
||||||
for c in arches[self.arch]['conditions']:
|
depends = []
|
||||||
f.write("\tdepends on %s\n" % c)
|
|
||||||
selects = []
|
selects = []
|
||||||
|
|
||||||
|
for c in arches[self.arch]['conditions']:
|
||||||
|
depends.append(c)
|
||||||
|
|
||||||
for frag in self.fragment:
|
for frag in self.fragment:
|
||||||
# libc type
|
# libc type
|
||||||
if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC"):
|
if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC"):
|
||||||
selects.append("BR2_TOOLCHAIN_EXTERNAL_UCLIBC")
|
selects.append("BR2_TOOLCHAIN_EXTERNAL_UCLIBC")
|
||||||
elif frag.startswith("BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC"):
|
elif frag.startswith("BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC"):
|
||||||
|
# glibc doesn't support static only configuration
|
||||||
|
depends.append("!BR2_STATIC_LIBS")
|
||||||
selects.append("BR2_TOOLCHAIN_EXTERNAL_GLIBC")
|
selects.append("BR2_TOOLCHAIN_EXTERNAL_GLIBC")
|
||||||
# all glibc toolchains have RPC support
|
# all glibc toolchains have RPC support
|
||||||
selects.append("BR2_TOOLCHAIN_HAS_NATIVE_RPC")
|
selects.append("BR2_TOOLCHAIN_HAS_NATIVE_RPC")
|
||||||
@@ -303,6 +308,9 @@ class Toolchain:
|
|||||||
if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_OPENMP"):
|
if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_OPENMP"):
|
||||||
selects.append("BR2_TOOLCHAIN_HAS_OPENMP")
|
selects.append("BR2_TOOLCHAIN_HAS_OPENMP")
|
||||||
|
|
||||||
|
for depend in depends:
|
||||||
|
f.write("\tdepends on %s\n" % depend)
|
||||||
|
|
||||||
for select in selects:
|
for select in selects:
|
||||||
f.write("\tselect %s\n" % select)
|
f.write("\tselect %s\n" % select)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user