From patchwork Wed Apr 8 18:22: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: 46886 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5B09221416 for ; Wed, 8 Apr 2015 18:23:00 +0000 (UTC) Received: by lbbrr5 with SMTP id rr5sf19188440lbb.3 for ; Wed, 08 Apr 2015 11:22:58 -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=k+doqQo+qLKw0CDLVMP7zwbHOborScfW/1uxtFZhPzE=; b=ZFzRBtRwpzvsKJ5RvRvVcRfi7fFTGxn+cUrdjgzm29oBPTP0udgCOJ6ExSQ0bSD8Nl lMZoJ9YKPyUhXiOqJdGbe7ww9fCBa8tXDDj7H9Q+iIkFwWgvUYfHno/P7UKAP2gdoIXt ciNj2eWWPMhZPpFgtAiZSXBYwdEuIb62C3/n1fSNlUOKOFUHwz0tz9jGn7+wzpL+LmJe T9qePgmylR3OJZRicRriHkPu+CHi1a93ZrqF696l8RP6YjVPFaBN1247/RbWeVPJbWLm tMCVR3B+7Z9hdgR2P4NK26Ms/LwRHxIqhgkG/ut/ysCBjnLlYDHy59Adys6GZAXewR4T TDJw== X-Gm-Message-State: ALoCoQlVAm7zF53okX1fla4SykXYbwHWwhQYU6zSkzSU/lgdtBPpVbxv4wc8CeleXqcHluZ0JrhZ X-Received: by 10.180.107.33 with SMTP id gz1mr1615509wib.3.1428517378635; Wed, 08 Apr 2015 11:22:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.227 with SMTP id t3ls224871laj.72.gmail; Wed, 08 Apr 2015 11:22:58 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr10228970lbc.73.1428517378461; Wed, 08 Apr 2015 11:22:58 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id yt20si9473796lbb.89.2015.04.08.11.22.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Apr 2015 11:22:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbuc2 with SMTP id uc2so70126575lbb.2 for ; Wed, 08 Apr 2015 11:22:58 -0700 (PDT) X-Received: by 10.112.204.6 with SMTP id ku6mr10228966lbc.73.1428517378347; Wed, 08 Apr 2015 11:22:58 -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 l1csp17175lbt; Wed, 8 Apr 2015 11:22:57 -0700 (PDT) X-Received: by 10.140.83.202 with SMTP id j68mr30603923qgd.18.1428517377012; Wed, 08 Apr 2015 11:22:57 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z82si11719228qhd.91.2015.04.08.11.22.53; Wed, 08 Apr 2015 11:22:56 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 922F464FCD; Wed, 8 Apr 2015 18:22:53 +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 76C3164FBF; Wed, 8 Apr 2015 18:22:28 +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 E35E264FBA; Wed, 8 Apr 2015 18:22:25 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 275FF64FAC for ; Wed, 8 Apr 2015 18:22:25 +0000 (UTC) Received: by lagv1 with SMTP id v1so72468828lag.3 for ; Wed, 08 Apr 2015 11:22:24 -0700 (PDT) X-Received: by 10.112.157.100 with SMTP id wl4mr24671391lbb.108.1428517344039; Wed, 08 Apr 2015 11:22:24 -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 o8sm2664845lal.2.2015.04.08.11.22.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Apr 2015 11:22:23 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 8 Apr 2015 21:22:12 +0300 Message-Id: <1428517336-29626-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428517336-29626-1-git-send-email-maxim.uvarov@linaro.org> References: <1428517336-29626-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv13 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.217.178 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 c92f5fd..91083b9 100644 --- a/configure.ac +++ b/configure.ac @@ -63,11 +63,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).]),