toolchain: introduce BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 30 May 2011 21:56:57 +0000 (23:56 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 12 Jun 2011 19:50:20 +0000 (21:50 +0200)
Unfortunately, the official Blackfin toolchains are built without the
shadow password support, so our default Busybox configuration fails to
build.

Therefore, we introduce a new hidden knob
BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS, which is set to yes for Buildroot
internal toolchain, for toolchains generated by the Crosstool-NG
backend, for Glibc external toolchains and for Uclibc custom external
toolchains. It is left unset by the Blackfin toolchain profile.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/Config.in
toolchain/toolchain-common.in
toolchain/toolchain-external/Config.in

index 8baa0c14ca558b130f46f057dcad9d27ab916ee4..5ff2a91523b5c4a43d55fe6141ab7bf58833b281 100644 (file)
@@ -10,6 +10,7 @@ choice
 
 config BR2_TOOLCHAIN_BUILDROOT
        bool "Buildroot toolchain"
+       select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
 
 config BR2_TOOLCHAIN_EXTERNAL
        bool "External toolchain"
@@ -20,6 +21,7 @@ config BR2_TOOLCHAIN_EXTERNAL
 
 config BR2_TOOLCHAIN_CTNG
        bool "Crosstool-NG toolchain"
+       select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
        help
          Say 'y' if you want to generate the toolchain with crosstool-NG
          ( http://ymorin.is-a-geek.org/projects/crosstool )
index a641785e64f63899d7732a37714dcec2de8b7ef1..4a2f3795b1fff3108569e485d96da4ecb8579b52 100644 (file)
@@ -29,6 +29,9 @@ config BR2_INSTALL_LIBSTDCPP
 config BR2_TOOLCHAIN_HAS_THREADS
        bool
 
+config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
+       bool
+
 config BR2_ENABLE_LOCALE_PURGE
        bool "Purge unwanted locales"
        help
index 1d8f561edd99a93e5628594629a33a4e856e7c9e..04bd20745b4a7c2d474065dbbfee2fe7b2d77ec1 100644 (file)
@@ -220,6 +220,7 @@ config BR2_TOOLCHAIN_EXTERNAL_GLIBC
        select BR2_ENABLE_LOCALE
        select BR2_PROGRAM_INVOCATION
        select BR2_TOOLCHAIN_HAS_THREADS
+       select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
 
 config BR2_TOOLCHAIN_EXTERNAL_UCLIBC
        bool
@@ -233,6 +234,9 @@ choice
 config BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC
        bool "uClibc"
        select BR2_TOOLCHAIN_EXTERNAL_UCLIBC
+       # For the time being, we assume that all custom external
+       # toolchains have shadow password support.
+       select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS
 
 config BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC
        bool "glibc"