From patchwork Mon Apr 13 08:52:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 47097 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 5DC9720553 for ; Mon, 13 Apr 2015 08:53:12 +0000 (UTC) Received: by lbdc7 with SMTP id c7sf13978639lbd.2 for ; Mon, 13 Apr 2015 01:53:11 -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=wRoUI7wBT/sgHvTswnB6t19OinPknSSuHSxn8DrYTps=; b=RP16sdB4qtSWNRZhZ74EFvZf/NsYByavSECzVplPOT8J73fhltevjCsP1vyLCdVvdu SL6qDQ3glFN61FrlfxwE56Q9TOfrC5s4rjzrYdXZIU9rwJCZrqPSsHb60YRxLYkxI88l waH4GLVRMpNyXa/mU5QxZ3ZelFhmw/WD4KMXQszEJFjB2pgLOPVuv0ysYohz8ujzvaob VuqrjETBTZdkuFez3KCCpb3vUbsESq/NKGhV1/wmNN2OkQNwe2qABfiToSHASEmlZTl+ S+hB42v4Jchvf7W0pND0KynC70/Ju26C25+TWj16KOn8lKaU2hL5bYyoDDqXsn/gdBqB yl9w== X-Gm-Message-State: ALoCoQkR5GYbmB9whOdvFbx6CpMgK8t5ssQ92LuoNUfvscj4/dPsRuIBwI8zb81LWQ0Sq5eHATh4 X-Received: by 10.152.19.67 with SMTP id c3mr2029675lae.7.1428915191080; Mon, 13 Apr 2015 01:53:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.3 with SMTP id bc3ls395504lab.22.gmail; Mon, 13 Apr 2015 01:53:10 -0700 (PDT) X-Received: by 10.112.27.163 with SMTP id u3mr12099995lbg.75.1428915190872; Mon, 13 Apr 2015 01:53:10 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id o1si7897545lbc.8.2015.04.13.01.53.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Apr 2015 01:53:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lagv1 with SMTP id v1so51962130lag.3 for ; Mon, 13 Apr 2015 01:53:10 -0700 (PDT) X-Received: by 10.152.234.169 with SMTP id uf9mr12382355lac.88.1428915190771; Mon, 13 Apr 2015 01:53:10 -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 l1csp1077038lbt; Mon, 13 Apr 2015 01:53:10 -0700 (PDT) X-Received: by 10.55.27.200 with SMTP id m69mr26676935qkh.11.1428915189273; Mon, 13 Apr 2015 01:53:09 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n21si10235190qha.111.2015.04.13.01.53.08; Mon, 13 Apr 2015 01:53:09 -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 971AB61CD3; Mon, 13 Apr 2015 08:53:08 +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_H2, URIBL_BLOCKED autolearn=ham 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 AF7AC61CD4; Mon, 13 Apr 2015 08:52:46 +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 2577F61CBE; Mon, 13 Apr 2015 08:52:42 +0000 (UTC) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by lists.linaro.org (Postfix) with ESMTPS id BB81B61CBB for ; Mon, 13 Apr 2015 08:52:40 +0000 (UTC) Received: by lbbuc2 with SMTP id uc2so53289647lbb.2 for ; Mon, 13 Apr 2015 01:52:39 -0700 (PDT) X-Received: by 10.152.6.34 with SMTP id x2mr11897319lax.47.1428915159623; Mon, 13 Apr 2015 01:52:39 -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 lf12sm1495061lac.38.2015.04.13.01.52.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Apr 2015 01:52:38 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 13 Apr 2015 11:52:23 +0300 Message-Id: <1428915147-14871-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1428915147-14871-1-git-send-email-maxim.uvarov@linaro.org> References: <1428915147-14871-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv14 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.50 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 Reviewed-by: Anders Roxell Reviewed-by: Mike Holmes Reviewed-by: Ciprian Barbu --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c92f5fd..3eab18e 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).]),