From patchwork Wed Sep 19 03:42:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Holsgrove X-Patchwork-Id: 184925 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 947F42C0086 for ; Wed, 19 Sep 2012 13:43:46 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sourceware.org; s=default; x=1348631026; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Content-Type:MIME-Version:Content-Transfer-Encoding: Subject:Message-Id:In-Reply-To:References:User-Agent:Date:From: To:Cc:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Subscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=dJOXKsUnlWuL0e9YQ5tgrgZk4Sc=; b=nPuX0GZUoLXBWa1 0UoEt+whF0tNyEK/ik0um1OaaLpJ+ToLq2TVKT2EyNhzIiZjw3+zu+fuyewyHPM8 to8J4IRjKIpbRIkwZ2+aGtsNF9c/qnIMhTM1rzjPIKdo3px0YRbJOAFuNq6PbTVf ZwFtnKX0CbKDCgkHuOoyWRCEMAaM= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=sourceware.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Google-DKIM-Signature:Received:Received:Content-Type:MIME-Version:Content-Transfer-Encoding:Subject:X-Mercurial-Node:Message-Id:In-Reply-To:References:User-Agent:Date:From:To:Cc:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=NvNE67E56DkS4TcGdt5kQGq94QHY3Rbi+NTxSdR/WrDOMCH5/NTfHs+eBdig6f 074HEgEQRTF2leXUiTGH9RtAYqmWU9XoQSmkxD53u5+SQyskL6CTecljA6eaCtX9 nrEhcCkwZ8939S3W5sLKTKl67/KQA9wvOXKpHsKoW1Eqo=; Received: (qmail 26126 invoked by alias); 19 Sep 2012 03:43:37 -0000 Received: (qmail 26038 invoked by uid 22791); 19 Sep 2012 03:43:36 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Sep 2012 03:43:24 +0000 Received: by iaby26 with SMTP id y26so342453iab.0 for ; Tue, 18 Sep 2012 20:43:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:content-type:mime-version:content-transfer-encoding:subject :x-mercurial-node:message-id:in-reply-to:references:user-agent:date :from:to:cc:x-gm-message-state; bh=bXgfFNpqYcGalgVPuTsE/4ujer2lVSqj5rcDZsUYS4I=; b=Is1t1BmFpNY8ekaTxyEzPM1B2oWU/1i6Bru52fJuvweUJ8Gjgx/ddKvD1eHdiirEai u2hoMZKHZelmt0ZO0BzN66ZYNpDTY6bijNi/nhKwMVj3S5ijDSnb+KvbL/8oHnuC1tGB NpUmq3VJzjQ2zwejEzDpZC6lTARd4vEl82haH4tkL093f/Lpq734UYSYDFyMqs4MpDDE nr11Hg4RZ31J282mwBtGk+Lw/2UlXd9v/pqLF947IGJmbC/J7KQdVOxNT2WaHE+CLR22 nWNvx9h8h6senxPXj1K9NJ8IN3NyfC2YFOaoYlSPXr3/Zp/ONjcFpH6TP1Q2jZIRLPGW Ky4g== Received: by 10.50.104.230 with SMTP id gh6mr1795720igb.50.1348026203569; Tue, 18 Sep 2012 20:43:23 -0700 (PDT) Received: from localhost ([124.148.20.9]) by mx.google.com with ESMTPS id aa4sm12254445igc.15.2012.09.18.20.43.21 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Sep 2012 20:43:23 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 2 of 2] config/target.in+scripts/glibc-eglibc.sh-common: Allow building multilib gcc without full c library X-Mercurial-Node: 24e33e3717f8a740f7c65a0d05a1bed51535c690 Message-Id: <24e33e3717f8a740f7c6.1348026169@localhost.localdomain> In-Reply-To: <95abeed3a485c4d5b02e.1348026168@localhost.localdomain> References: <95abeed3a485c4d5b02e.1348026168@localhost.localdomain> User-Agent: Mercurial-patchbomb/unknown Date: Wed, 19 Sep 2012 13:42:49 +1000 From: David Holsgrove To: "Yann E. Morin" Cc: crossgcc@sourceware.org X-Gm-Message-State: ALoCoQkKzk8cSneARLHYCby6KWaF3iYKVs4f4k/iquW06HZ82WAqagRIow7nRJGYndNccl0wHPYi X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org # HG changeset patch # User David Holsgrove # Date 1348016531 -36000 # Node ID 24e33e3717f8a740f7c65a0d05a1bed51535c690 # Parent 95abeed3a485c4d5b02e4860fc554d6841e1cc41 config/target.in+scripts/glibc-eglibc.sh-common: Allow building multilib gcc without full c library Add option to enable building a multilib aware gcc, without building out all the multilib combos for the c library --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 95abeed3a485 -r 24e33e3717f8 config/target.in --- a/config/target.in Wed Sep 19 11:03:59 2012 +1000 +++ b/config/target.in Wed Sep 19 11:02:11 2012 +1000 @@ -60,6 +60,20 @@ in gcc, so it is not possible to say what variants to support, only whether hard-coded variants should be supported or not. +if MULTILIB + +config MULTILIB_GCC_ONLY + bool + prompt "Disable building multilib combos of c-library" + depends on EXPERIMENTAL + depends on MULTILIB + default n + help + If you say 'y' here, then gcc will be built with multi-lib support, + but the eglibc/glibc multilib combos won't + +endif # MULTILIB + #-------------------------------------- config ARCH_SUPPORTS_BOTH_MMU bool diff -r 95abeed3a485 -r 24e33e3717f8 scripts/build/libc/glibc-eglibc.sh-common --- a/scripts/build/libc/glibc-eglibc.sh-common Wed Sep 19 11:03:59 2012 +1000 +++ b/scripts/build/libc/glibc-eglibc.sh-common Wed Sep 19 11:02:11 2012 +1000 @@ -103,7 +103,13 @@ # If gcc is not configured for multilib, it still prints # a single line for the default settings - multilibs=( $("${CT_TARGET}-gcc" -print-multi-lib 2>/dev/null) ) + if [ "${CT_MULTILIB_GCC_ONLY}" = "y" ]; then + CT_DoLog EXTRA "Building of multilib C library Disabled" + multilibs=".;" + else + multilibs=( $("${CT_TARGET}-gcc" -print-multi-lib 2>/dev/null) ) + fi + for multilib in "${multilibs[@]}"; do multi_dir="${multilib%%;*}" if [ "${multi_dir}" != "." ]; then