From patchwork Fri Jul 12 08:39:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mischa Jonker X-Patchwork-Id: 258723 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id CF9822C033C for ; Fri, 12 Jul 2013 18:40:03 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 014CD9FD1A; Fri, 12 Jul 2013 08:40:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tMqHMHKb7BUX; Fri, 12 Jul 2013 08:40:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D6EA99F5BB; Fri, 12 Jul 2013 08:39:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 63D2C1BFA54 for ; Fri, 12 Jul 2013 08:40:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0B42D8D43D for ; Fri, 12 Jul 2013 08:39:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q5VazyT9J-kG for ; Fri, 12 Jul 2013 08:39:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from kiruna.synopsys.com (us01smtp2.synopsys.com [198.182.44.80]) by whitealder.osuosl.org (Postfix) with ESMTP id 9FF808C7DA for ; Fri, 12 Jul 2013 08:39:57 +0000 (UTC) Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by kiruna.synopsys.com (Postfix) with ESMTP id 40658F51C for ; Fri, 12 Jul 2013 01:39:57 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 2B688ABD; Fri, 12 Jul 2013 01:39:57 -0700 (PDT) Received: from mischa-VirtualBox.internal.synopsys.com (mischa-virtualbox.internal.synopsys.com [10.100.24.26]) by mailhost.synopsys.com (Postfix) with ESMTP id 4F88EAB8; Fri, 12 Jul 2013 01:39:56 -0700 (PDT) From: Mischa Jonker To: buildroot@busybox.net Date: Fri, 12 Jul 2013 10:39:50 +0200 Message-Id: <1373618390-7548-1-git-send-email-mjonker@synopsys.com> X-Mailer: git-send-email 1.7.9.5 Cc: Mischa Jonker Subject: [Buildroot] [PATCH] toolchain: Add BR2_TOOLCHAIN_HAS_THREADS_NATIVE X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This can be used to check dependencies for packages that need NPTL; furthermore it can be used to determine the number of stages required for building the toolchain. Signed-off-by: Mischa Jonker --- package/uclibc/Config.in | 1 + toolchain/Config.in | 1 + toolchain/toolchain-common.in | 3 +++ toolchain/toolchain-crosstool-ng/Config.in | 1 + toolchain/toolchain-external/Config.in | 11 +++++++++++ 5 files changed, 17 insertions(+) diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in index f309243..d810495 100644 --- a/package/uclibc/Config.in +++ b/package/uclibc/Config.in @@ -114,6 +114,7 @@ choice config BR2_PTHREADS_NATIVE bool "Native POSIX Threading (NPTL)" select BR2_TOOLCHAIN_HAS_THREADS + select BR2_TOOLCHAIN_HAS_THREADS_NATIVE depends on !BR2_ARM_OABI depends on !BR2_x86_i386 depends on !BR2_avr32 diff --git a/toolchain/Config.in b/toolchain/Config.in index 53d2573..b66cdcb 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -9,6 +9,7 @@ config BR2_TOOLCHAIN_USES_GLIBC select BR2_ENABLE_LOCALE select BR2_TOOLCHAIN_HAS_THREADS select BR2_TOOLCHAIN_HAS_THREADS_DEBUG + select BR2_TOOLCHAIN_HAS_THREADS_NATIVE select BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS config BR2_TOOLCHAIN_USES_UCLIBC diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in index 7c9b842..59bdad9 100644 --- a/toolchain/toolchain-common.in +++ b/toolchain/toolchain-common.in @@ -29,6 +29,9 @@ config BR2_TOOLCHAIN_HAS_THREADS config BR2_TOOLCHAIN_HAS_THREADS_DEBUG bool +config BR2_TOOLCHAIN_HAS_THREADS_NATIVE + bool + config BR2_TOOLCHAIN_HAS_SHADOW_PASSWORDS bool diff --git a/toolchain/toolchain-crosstool-ng/Config.in b/toolchain/toolchain-crosstool-ng/Config.in index 7cfd8c2..d057178 100644 --- a/toolchain/toolchain-crosstool-ng/Config.in +++ b/toolchain/toolchain-crosstool-ng/Config.in @@ -128,6 +128,7 @@ choice bool "Native POSIX Threading (NPTL)" select BR2_TOOLCHAIN_HAS_THREADS select BR2_TOOLCHAIN_HAS_THREADS_DEBUG + select BR2_TOOLCHAIN_HAS_THREADS_NATIVE endchoice endif # BR2_TOOLCHAIN_CTNG diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in index 130b705..71cbff1 100644 --- a/toolchain/toolchain-external/Config.in +++ b/toolchain/toolchain-external/Config.in @@ -899,6 +899,17 @@ config BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG debugging support. If you don't know, leave the default value, Buildroot will tell you if it's correct or not. +config BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_NATIVE + bool "Toolchain has NPTL support?" + depends on BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS + select BR2_TOOLCHAIN_HAS_THREADS_NATIVE + default y + help + Select this option if your external toolchain has native + POSIX thread library (NPTL) support. If you don't know, + leave the default value, Buildroot will tell you if it's + correct or not. + endif # BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC config BR2_TOOLCHAIN_EXTERNAL_INET_RPC