From patchwork Wed Nov 20 09:37:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhenqiang Chen X-Patchwork-Id: 292703 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 0B71A2C00AB for ; Wed, 20 Nov 2013 20:37:46 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :cc:content-type; q=dns; s=default; b=o24X9SjctwIu3QbPOKVq4fweBP kqelGcxOXIOphLhOmpsKy9CUBAZKKkEsMdsU0nt0VnaDflL+8ACZiyLSJsSmNYIV iZxVOLlHCB2KtSlmfx6fTFz+G7ebJmBOBp3c0zHJXXsUTE5uA/Jla5XDO9tfeoBu 9G62QjIxI6MLL78Mc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :cc:content-type; s=default; bh=4ElC055DM95ayxsawe5XTtKBeRo=; b= KWoFubyD/LI/knxMV4U5rHyHGelYlxs5DXSBoQ1NS3i8o9z8M4YwqbF1m2WfC5Mp FfQgXen2W4ur0vFYZj04vwp8tHU45lNKhDg1Dx8VdVoWswBQC/gwEcSdbcIQPIez CnU+WmKgSsiqpkGn8TfBU5C1gH7HCDu5TdiBeOtU5Jo= Received: (qmail 21442 invoked by alias); 20 Nov 2013 09:37:34 -0000 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 Received: (qmail 21425 invoked by uid 89); 20 Nov 2013 09:37:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL, BAYES_50, RDNS_NONE, SPF_PASS, URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-la0-f51.google.com Received: from Unknown (HELO mail-la0-f51.google.com) (209.85.215.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 20 Nov 2013 09:37:32 +0000 Received: by mail-la0-f51.google.com with SMTP id ec20so7173160lab.10 for ; Wed, 20 Nov 2013 01:37:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=OlTIcy4vbtPsPRNtj9J1jCsJrV/bj/6ayb/3sw0qLgk=; b=Vscjo6Dq7JlzDwC8aMJKQeKhDnsLhW1bkbpfToP6cct5wVxR2LeG7i3fKZuvkWg+Kt ed66Sd5UdVak47gBkxeJWXAPN5IWTamaXYtPGis2zqiUxgitp0BtVv7mJObZEOTqdVne q8pQ7BqjYu0epHpvpWGGtPoCV9SYdxjNQ3R8Pj2EMqEW7PCKXwblWfsxgs0fnZ59DDNQ oZfeFrPylVjwHBfoMa/dB/FZbKHGRpLkFF48hQYqDzHU9KrptwYnwQcsHebLzH3f65tD ROL8kWfQDteQbhrfaukaVswaujZhE21PK75rz07aUqZ/Th5DvWmSn7Th4tVRxprybbhn rezA== X-Gm-Message-State: ALoCoQmAG+B4blqPa+hDRRubIjkjsftcBzwoBAs5AhJoLUOkeLbc0ehuDSBocTkW7EhINQhNyJXX MIME-Version: 1.0 X-Received: by 10.152.216.167 with SMTP id or7mr22820807lac.10.1384940242625; Wed, 20 Nov 2013 01:37:22 -0800 (PST) Received: by 10.112.204.131 with HTTP; Wed, 20 Nov 2013 01:37:22 -0800 (PST) Date: Wed, 20 Nov 2013 17:37:22 +0800 Message-ID: Subject: [PATCH] cc/gcc: Add Fortran support for Baremetal build From: Zhenqiang Chen To: "Yann E. MORIN" Cc: "crossgcc@sourceware.org" X-IsSubscribed: yes # HG changeset patch # User Zhenqiang Chen # Date 1384843442 -28800 # Node ID 3ba918b278a4b1553a49819d5b2feecdea822697 # Parent 7e569a9cb5fd3ab591bb307328b947a5b7312cba cc/gcc: Add Fortran support for Baremetal build Signed-off-by: Zhenqiang Chen bool : no # build_staticlinked : build statically linked or not : bool : no # build_manuals : whether to build manuals or not : bool : no # cflags : cflags to use : string : (empty) @@ -173,6 +174,7 @@ local mode local build_libgcc=no local build_libstdcxx=no + local build_libgfortran=no local build_staticlinked=no local build_manuals=no local host @@ -457,6 +459,12 @@ core_targets+=( target-libstdc++-v3 ) fi + if [ "${build_libgfortran}" = "yes" \ + -a "${CT_CC_LANG_FORTRAN}" = "y" \ + ]; then + core_targets+=( target-libgfortran ) + fi + CT_DoLog EXTRA "Building gcc" CT_DoExecLog ALL make ${JOBSFLAGS} "${core_targets[@]/#/all-}" @@ -521,6 +529,7 @@ build_final_opts+=( "mode=baremetal" ) build_final_opts+=( "build_libgcc=yes" ) build_final_opts+=( "build_libstdcxx=yes" ) + build_final_opts+=( "build_libgfortran=yes" ) if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then build_final_opts+=( "build_staticlinked=yes" ) fi @@ -557,6 +566,7 @@ final_opts+=( "mode=baremetal" ) final_opts+=( "build_libgcc=yes" ) final_opts+=( "build_libstdcxx=yes" ) + final_opts+=( "build_libgfortran=yes" ) if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then final_opts+=( "build_staticlinked=yes" ) fi --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 7e569a9cb5fd -r 3ba918b278a4 config/cc.in --- a/config/cc.in Sat Nov 16 18:14:45 2013 +0100 +++ b/config/cc.in Tue Nov 19 14:44:02 2013 +0800 @@ -46,8 +46,6 @@ Only select this if you know that your specific version of the compiler supports this language. -if ! BARE_METAL - config CC_LANG_FORTRAN bool prompt "Fortran" @@ -58,6 +56,8 @@ Only select this if you know that your specific version of the compiler supports this language. +if ! BARE_METAL + config CC_LANG_JAVA bool prompt "Java" diff -r 7e569a9cb5fd -r 3ba918b278a4 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Sat Nov 16 18:14:45 2013 +0100 +++ b/scripts/build/cc/gcc.sh Tue Nov 19 14:44:02 2013 +0800 @@ -164,6 +164,7 @@ # lang_list : the list of languages to build : string : (empty) # build_libgcc : build libgcc or not : bool : no # build_libstdcxx : build libstdc++ or not : bool : no +# build_libgfortran : build libgfortran or not :