package/c-libraries: need linux-headers
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 29 Dec 2015 23:10:38 +0000 (00:10 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 30 Dec 2015 08:54:33 +0000 (09:54 +0100)
Now that we check that a target package in the _DEPENDENCIES of another
package has to be enabled in config, all target packages must have a
kconfig symbol.

Add a Kconfig symbol for linux-headers, and select it from the packages
that depends on it (C libraries).

Also remove the now-misleading comments "for legal-info" from the C
libraries.

Fixes:
    http://autobuild.buildroot.org/results/2a9/2a9e5d27b34357819b44f573a834da1ba5079030/
    ... and numerous similar failures ...

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

index 72fd3dfff1dee559a281e39a48ca2baaf1047506..aeb236c597260a72f4ecc3755c42f99ffed272df 100644 (file)
@@ -1,9 +1,9 @@
 if BR2_TOOLCHAIN_BUILDROOT_EGLIBC
 
-# For legal-info
 config BR2_PACKAGE_EGLIBC
        bool
        default y
+       select BR2_PACKAGE_LINUX_HEADERS
 
 choice
        prompt "eglibc version"
@@ -25,10 +25,10 @@ endif
 
 if BR2_TOOLCHAIN_BUILDROOT_GLIBC
 
-# For legal-info
 config BR2_PACKAGE_GLIBC
        bool
        default y
+       select BR2_PACKAGE_LINUX_HEADERS
 
 choice
        prompt "glibc version"
diff --git a/package/linux-headers/Config.in b/package/linux-headers/Config.in
new file mode 100644 (file)
index 0000000..0ea9516
--- /dev/null
@@ -0,0 +1,2 @@
+config BR2_PACKAGE_LINUX_HEADERS
+       bool
index 0aa353706cbec2536a10d88b83aa444d88d898f7..4f6cc51b681fb59170ef1210e7a1d75293f94607 100644 (file)
@@ -1,5 +1,5 @@
-# For legal-info
 config BR2_PACKAGE_MUSL
        bool
        depends on BR2_TOOLCHAIN_USES_MUSL
        default y
+       select BR2_PACKAGE_LINUX_HEADERS
index bd95041d1e68cb4e496902c0fa666634865de896..9ebec704be61a4aa42dbc30aac1e2e6844681b2b 100644 (file)
@@ -1,9 +1,9 @@
 if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
 
-# For legal-info
 config BR2_PACKAGE_UCLIBC
        bool
        default y
+       select BR2_PACKAGE_LINUX_HEADERS
 
 comment "uClibc Options"
 
index cee2578dd528f753f0a740ce797f00fd9c8f2eba..cbeb0305b2ac3600e12d93e14e7a0e06163140a0 100644 (file)
@@ -110,6 +110,7 @@ config BR2_TOOLCHAIN_BUILDROOT_LIBC
        default "glibc"  if BR2_TOOLCHAIN_BUILDROOT_GLIBC
        default "musl"   if BR2_TOOLCHAIN_BUILDROOT_MUSL
 
+source "package/linux-headers/Config.in"
 source "package/uclibc/Config.in"
 source "package/glibc/Config.in"
 source "package/binutils/Config.in.host"