From patchwork Wed Apr 8 12:00:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 46872 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2A35021416 for ; Wed, 8 Apr 2015 12:01:35 +0000 (UTC) Received: by wgin8 with SMTP id n8sf9012846wgi.0 for ; Wed, 08 Apr 2015 05:01:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=9Qy50PSvvk/1PZJ1fyXz5Mu/7gzQguR0ZzDj/9DoTJY=; b=XPDqNpdnb4MPzlcxEeGdRQq0qquSSLf9BvQ7y6iQ+8JpDKGxosCjzJ900SvhhmVLbX Saz3FhA+0pQOUxlUJJo4l5rLrmGk79DvufehEBek4u2Yc29iVeiJn5RSzWybzxiu+TJB pSLtSCtK2BE8+AWbD15L3j+LQSTBM6P6Jx0J2/4XvHRTMqdxtN/ltBdWpgDMdhq2MBHK CpEvQLBuv1TWFS9yUERLwHFMMHTEEw30uyoQKbgiBRAMDJFOxXBZzTCTRHpi3ZVLfVCZ Z6gG6FThi9bNyoLMJvXtYu4+PtT0Dy8SMaoRK9qeZuhnMAK4l0dm6fsyy6DFU1nONJKS iZmg== X-Gm-Message-State: ALoCoQnpuTK5PcO7/+uaMmiOa6LRXACws7aj509rLyUbtdgduLAHXXcucq+wVhUJe8r6WvX9sJWQ X-Received: by 10.112.93.203 with SMTP id cw11mr4910821lbb.0.1428494494460; Wed, 08 Apr 2015 05:01:34 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.162 with SMTP id g2ls16593lae.80.gmail; Wed, 08 Apr 2015 05:01:34 -0700 (PDT) X-Received: by 10.152.22.229 with SMTP id h5mr22919407laf.21.1428494494190; Wed, 08 Apr 2015 05:01:34 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id bh7si8583296lbc.116.2015.04.08.05.01.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Apr 2015 05:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by laat2 with SMTP id t2so57007263laa.1 for ; Wed, 08 Apr 2015 05:01:33 -0700 (PDT) X-Received: by 10.112.16.196 with SMTP id i4mr12004519lbd.72.1428494493910; Wed, 08 Apr 2015 05:01:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp1010754lbt; Wed, 8 Apr 2015 05:01:33 -0700 (PDT) X-Received: by 10.55.21.87 with SMTP id f84mr43867881qkh.50.1428494492568; Wed, 08 Apr 2015 05:01:32 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 145si1719237qhx.10.2015.04.08.05.01.31; Wed, 08 Apr 2015 05:01:32 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id C926164EAA; Wed, 8 Apr 2015 12:01:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 89B7F64DB7; Wed, 8 Apr 2015 12:00:51 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D8E3664EAA; Wed, 8 Apr 2015 12:00:42 +0000 (UTC) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by lists.linaro.org (Postfix) with ESMTPS id 0B76764E5F for ; Wed, 8 Apr 2015 12:00:25 +0000 (UTC) Received: by lbcga7 with SMTP id ga7so15325469lbc.1 for ; Wed, 08 Apr 2015 05:00:24 -0700 (PDT) X-Received: by 10.152.170.136 with SMTP id am8mr18115944lac.102.1428494423949; Wed, 08 Apr 2015 05:00:23 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-169-66.pppoe.mtu-net.ru. [91.76.169.66]) by mx.google.com with ESMTPSA id a7sm2440272lbc.48.2015.04.08.05.00.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Apr 2015 05:00:22 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 8 Apr 2015 15:00:12 +0300 Message-Id: <1428494416-20152-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428494416-20152-1-git-send-email-maxim.uvarov@linaro.org> References: <1428494416-20152-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv12 1/5] configure.ac: include configure.m4 if platform explicitly selected X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 configure script selects linux-generic as default platform and includes platfrom specific configure scripts: ./platform/linux-generic/m4/configure.m4 In case if --with-platfrom=linux-generic was provided to configure platform specific file is not included and that branch of code does not run. This change has to be done for each platform since we have there pktio_env scripts but m4_include macro does not recognize bash variables. So that there is if check. Signed-off-by: Maxim Uvarov --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 57054c5..7db2186 100644 --- a/configure.ac +++ b/configure.ac @@ -58,11 +58,18 @@ AC_ARG_WITH([platform], [select platform to be used, default linux-generic])], [], [with_platform=linux-generic - m4_include([./platform/linux-generic/m4/configure.m4]) ]) AC_SUBST([with_platform]) +if test "${with_platform}" == "linux-generic"; +then + m4_include([./platform/linux-generic/m4/configure.m4]) +else + echo "UNSUPPORTED PLATFORM: ${with_platform}" + exit 1 +fi + AC_ARG_WITH([sdk-install-path], AC_HELP_STRING([--with-sdk-install-path=DIR path to external libs and headers], [(or in the default path if not specified).]),