From patchwork Wed Jun 3 16:44:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 49490 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1425324612 for ; Wed, 3 Jun 2015 16:50:03 +0000 (UTC) Received: by lbbti3 with SMTP id ti3sf4185683lbb.1 for ; Wed, 03 Jun 2015 09:50:02 -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:cc: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=81fRU2GY26jq2cAb5LkUpeRYnURdT76PyP/IU6D0K9w=; b=I0vnukud9jN+0cDPRFGeztKDgdfL68F2tG7ws+JoEart6J2YLbuOFu6XUl3BMilVYQ CKTbJWQdPfzMuaGS4id/S4O2H5BnycQh4denOcg6/neOIwTjkl2/NqTuqJmr8bvXGm1p 4+zjg8xaFVkxKFSASTYv4N9EMltXDYSwY4ETNru1X2OL/+y9mBx+Qf+wPmyLDiP9Bkgo iipiQaeC7QJYHDQy4ENlqlzIR2ebf7hfDpoS95qS0dwDoPRt9v6pOxzGl+M4Om9+aR0F LAAu8ThJfub5ccEYcdJoLd4Eu85rdItFTRU3bSjE1UbzIldm6J05kHJv01v6tFMn7VrH bJGg== X-Gm-Message-State: ALoCoQmxGynUjkoU3t1YyX0Da4ZOmdtqB9Izba99D2BRh9RgpfJofNa9gRK3St6WBBIc3sKLSKy/ X-Received: by 10.112.29.39 with SMTP id g7mr31584698lbh.1.1433350202090; Wed, 03 Jun 2015 09:50:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.101 with SMTP id p5ls95889laj.53.gmail; Wed, 03 Jun 2015 09:50:01 -0700 (PDT) X-Received: by 10.152.6.39 with SMTP id x7mr32749477lax.18.1433350201885; Wed, 03 Jun 2015 09:50:01 -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 et1si18492061lac.11.2015.06.03.09.50.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2015 09:50:01 -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 lbbqq2 with SMTP id qq2so11064719lbb.3 for ; Wed, 03 Jun 2015 09:50:01 -0700 (PDT) X-Received: by 10.152.29.161 with SMTP id l1mr32721726lah.76.1433350201771; Wed, 03 Jun 2015 09:50:01 -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.108.230 with SMTP id hn6csp4002710lbb; Wed, 3 Jun 2015 09:50:00 -0700 (PDT) X-Received: by 10.140.100.162 with SMTP id s31mr4083161qge.36.1433350199947; Wed, 03 Jun 2015 09:49:59 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g32si1131333qgg.124.2015.06.03.09.49.29; Wed, 03 Jun 2015 09:49:59 -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 B492561F95; Wed, 3 Jun 2015 16:49:29 +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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled 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 C310A61FAB; Wed, 3 Jun 2015 16:46:27 +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 04A4C61D0F; Wed, 3 Jun 2015 16:46:13 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id 6C1DC61F95 for ; Wed, 3 Jun 2015 16:45:16 +0000 (UTC) Received: by lbcue7 with SMTP id ue7so11053424lbc.0 for ; Wed, 03 Jun 2015 09:45:15 -0700 (PDT) X-Received: by 10.152.3.33 with SMTP id 1mr33073984laz.109.1433349915313; Wed, 03 Jun 2015 09:45:15 -0700 (PDT) Received: from erachmi-VirtualBox.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by mx.google.com with ESMTPSA id yq5sm5950159lab.32.2015.06.03.09.45.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jun 2015 09:45:14 -0700 (PDT) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, stuart.haslam@linaro.org, maxim.uvarov@linaro.org Date: Wed, 3 Jun 2015 18:44:49 +0200 Message-Id: <1433349890-2903-7-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433349890-2903-1-git-send-email-christophe.milard@linaro.org> References: <1433349890-2903-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCHv2 6/7] validation: changing build order 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: christophe.milard@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 When tests will be ran from the platform side, they will use platform agnostic tests from the validation side: i.e. -the validation side must be build before the platform test side. And the platform agnostic tests uses ODP. The building order must therefore be as follows: 1) (i.e. ODP) 2) validation (i.e. common tests) 3) /test (i.e. the platform specific test setup and tests) Saddly, writting SUBDIRS=platform/@with_platform@ does not work with autotools, which leads to a bit of clutter in configure.ac. Hopefully changed if things move around in the future... Signed-off-by: Christophe Milard --- Makefile.am | 8 +++++++- configure.ac | 3 ++- platform/Makefile.am | 1 - platform/linux-generic/Makefile.am | 2 -- 4 files changed, 9 insertions(+), 5 deletions(-) delete mode 100644 platform/Makefile.am diff --git a/Makefile.am b/Makefile.am index cff83f7..1692b88 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,13 @@ ACLOCAL_AMFLAGS=-I m4 AUTOMAKE_OPTIONS = foreign -SUBDIRS = doc platform example test helper +#@with_platform@ works alone in subdir but not as part of a path??? +SUBDIRS = @platform_with_platform@ \ + test \ + @platform_with_platform_test@ \ + helper \ + doc \ + example include $(top_srcdir)/aminclude.am diff --git a/configure.ac b/configure.ac index 95eceae..38667be 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,8 @@ AC_ARG_WITH([platform], ]) AC_SUBST([with_platform]) +AC_SUBST([platform_with_platform], ["platform/${with_platform}"]) +AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"]) if test "${with_platform}" == "linux-generic"; then @@ -294,7 +296,6 @@ AC_CONFIG_FILES([Makefile helper/Makefile helper/test/Makefile pkgconfig/libodp.pc - platform/Makefile platform/linux-generic/Makefile test/Makefile test/api_test/Makefile diff --git a/platform/Makefile.am b/platform/Makefile.am deleted file mode 100644 index e618747..0000000 --- a/platform/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = @with_platform@ diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 66f0474..b8f93c7 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -5,8 +5,6 @@ AM_CFLAGS += -I$(srcdir)/include AM_CFLAGS += -I$(top_srcdir)/include AM_CFLAGS += -I$(top_srcdir)/helper/include -SUBDIRS = test - include_HEADERS = \ $(top_srcdir)/include/odp.h