toolchain: include C libraries in legal-info
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 25 Jul 2014 20:06:27 +0000 (22:06 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 26 Jul 2014 07:01:40 +0000 (09:01 +0200)
So far, the legal-info infrastructure was not exporting the legal
info for the C libraries. This is because the legal-info only acts
on packages defined in $(TARGETS).

But the C libraries are never added to $(TARGETS), since there is no
corresponding BR2_PACKAGE_<C-LIBRARY>.

This patch adds such symbols for the 4 C libraries we support in our
internal backend: uClibc, glibc, eglibc and musl.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/glibc/Config.in
package/musl/Config.in [new file with mode: 0644]
package/uclibc/Config.in

index c2d62318471e5a1e67883ce333a357d3d40e7d44..df1e27305b0267833c9c1745f6321d3488198b95 100644 (file)
@@ -1,5 +1,10 @@
 if BR2_TOOLCHAIN_BUILDROOT_EGLIBC
 
+# For legal-info
+config BR2_PACKAGE_EGLIBC
+       bool
+       default y
+
 choice
        prompt "eglibc version"
        default BR2_EGLIBC_VERSION_2_18
@@ -18,6 +23,11 @@ endif
 
 if BR2_TOOLCHAIN_BUILDROOT_GLIBC
 
+# For legal-info
+config BR2_PACKAGE_GLIBC
+       bool
+       default y
+
 choice
        prompt "glibc version"
        default BR2_GLIBC_VERSION_2_18
diff --git a/package/musl/Config.in b/package/musl/Config.in
new file mode 100644 (file)
index 0000000..0aa3537
--- /dev/null
@@ -0,0 +1,5 @@
+# For legal-info
+config BR2_PACKAGE_MUSL
+       bool
+       depends on BR2_TOOLCHAIN_USES_MUSL
+       default y
index 0838b6cb820036c97880664c6fb68c1ab7c986e2..851ad1e91f0ec14bc8c07f7a805f9070906e28f5 100644 (file)
@@ -1,5 +1,10 @@
 if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
 
+# For legal-info
+config BR2_PACKAGE_UCLIBC
+       bool
+       default y
+
 comment "uClibc Options"
 
 choice