From patchwork Tue Apr 7 11:53:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 46825 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F253214BA for ; Tue, 7 Apr 2015 11:53:48 +0000 (UTC) Received: by lamp14 with SMTP id p14sf12413055lam.3 for ; Tue, 07 Apr 2015 04:53:47 -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: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=SraBRkraTB1N6eSxiaPPOLNf0/xUac3ODflQ7grL9PmPhgfgpQPxiiuiOOi4KmofdE sglwl5ZYalo3QiMDTOSeDNgJPLyrUS84ESBoJkdcHL27SOJmh3tPgz8SQs6K7LowfON8 paFI1AISsh9pMLYZpVqIlvWu3sc+3vDqSSP7xd6vqu6+hIty5tWYtdBvlfHqewJiFmLF RiA5zT04b2g6wOfNTLdrULW5BnaTKOsDNgSY41f24KuUFujESwgJBXe4+0iIPregCTWH XsLzg2v9Qm8Z6pIKt4w++FCL7l+yxBCPvbDGI1aXqGmWhObsclk4xG4twNbk8/XVd/P/ hhVw== X-Gm-Message-State: ALoCoQm+isx8nusB3/M9MH01AqaJJ4DAxU0fAFYDZlxy0JU5EjxoEf4FRb6/TOlRPxwJ5YS+Pvs0 X-Received: by 10.112.235.70 with SMTP id uk6mr3955032lbc.24.1428407627569; Tue, 07 Apr 2015 04:53:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.194 with SMTP id v2ls37037lag.59.gmail; Tue, 07 Apr 2015 04:53:47 -0700 (PDT) X-Received: by 10.152.239.135 with SMTP id vs7mr17833860lac.104.1428407627322; Tue, 07 Apr 2015 04:53:47 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id be17si5836220lab.77.2015.04.07.04.53.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2015 04:53:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbbzk7 with SMTP id zk7so40519150lbb.0 for ; Tue, 07 Apr 2015 04:53:47 -0700 (PDT) X-Received: by 10.152.23.70 with SMTP id k6mr17423558laf.76.1428407627237; Tue, 07 Apr 2015 04:53:47 -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 l1csp374067lbt; Tue, 7 Apr 2015 04:53:46 -0700 (PDT) X-Received: by 10.55.16.87 with SMTP id a84mr36961778qkh.86.1428407625938; Tue, 07 Apr 2015 04:53:45 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 15si7044270qga.22.2015.04.07.04.53.44; Tue, 07 Apr 2015 04:53:45 -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 B4DCE64F02; Tue, 7 Apr 2015 11:53:44 +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 BC80F64DF9; Tue, 7 Apr 2015 11:53:42 +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 C911864EA7; Tue, 7 Apr 2015 11:53:40 +0000 (UTC) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by lists.linaro.org (Postfix) with ESMTPS id 6C37D64DF9 for ; Tue, 7 Apr 2015 11:53:39 +0000 (UTC) Received: by lagv1 with SMTP id v1so40027639lag.3 for ; Tue, 07 Apr 2015 04:53:38 -0700 (PDT) X-Received: by 10.112.26.209 with SMTP id n17mr17688435lbg.84.1428407617997; Tue, 07 Apr 2015 04:53:37 -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 k12sm1716421lbg.42.2015.04.07.04.53.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Apr 2015 04:53:37 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 7 Apr 2015 14:53:04 +0300 Message-Id: <1428407584-8365-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] 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.182 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).]),