All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] support/scripts/gen-bootlin-toolchains: add missing glibc toolchain dependencies
@ 2020-09-27 14:37 Romain Naour
  2020-09-27 14:37 ` [Buildroot] [PATCH 2/3] " Romain Naour
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Romain Naour @ 2020-09-27 14:37 UTC (permalink / raw)
  To: buildroot

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>
---
 support/scripts/gen-bootlin-toolchains | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/support/scripts/gen-bootlin-toolchains b/support/scripts/gen-bootlin-toolchains
index ac1a19b3c0..bfc7237d48 100755
--- a/support/scripts/gen-bootlin-toolchains
+++ b/support/scripts/gen-bootlin-toolchains
@@ -233,14 +233,19 @@ class Toolchain:
         f.write("config %s\n" % self.option_name)
         f.write("\tbool \"%s %s %s %s\"\n" %
                 (self.arch, self.libc, self.variant, self.version))
-        for c in arches[self.arch]['conditions']:
-            f.write("\tdepends on %s\n" % c)
+        depends = []
         selects = []
+
+        for c in arches[self.arch]['conditions']:
+            depends.append(c)
+
         for frag in self.fragment:
             # libc type
             if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC"):
                 selects.append("BR2_TOOLCHAIN_EXTERNAL_UCLIBC")
             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")
                 # all glibc toolchains have RPC support
                 selects.append("BR2_TOOLCHAIN_HAS_NATIVE_RPC")
@@ -303,6 +308,9 @@ class Toolchain:
             if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_OPENMP"):
                 selects.append("BR2_TOOLCHAIN_HAS_OPENMP")
 
+        for depend in depends:
+            f.write("\tdepends on %s\n" % depend)
+
         for select in selects:
             f.write("\tselect %s\n" % select)
 
-- 
2.25.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-14 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-27 14:37 [Buildroot] [PATCH 1/3] support/scripts/gen-bootlin-toolchains: add missing glibc toolchain dependencies Romain Naour
2020-09-27 14:37 ` [Buildroot] [PATCH 2/3] " Romain Naour
2020-09-28 20:23   ` Thomas Petazzoni
2020-09-30 20:03     ` Romain Naour
2020-09-27 14:37 ` [Buildroot] [PATCH 3/3] toolchain/toolchain-external/toolchain-external-bootlin: update auto-generated files Romain Naour
2020-10-14 22:09 ` [Buildroot] [PATCH 1/3] support/scripts/gen-bootlin-toolchains: add missing glibc toolchain dependencies Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.