From patchwork Tue Aug 22 13:00:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 110657 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp5233874obb; Tue, 22 Aug 2017 06:00:39 -0700 (PDT) X-Received: by 10.233.220.130 with SMTP id q124mr793119qkf.284.1503406839633; Tue, 22 Aug 2017 06:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503406839; cv=none; d=google.com; s=arc-20160816; b=SQMq8iCoyQvGnNy8MQF3ioVvPFD2cSRCezpE+jSUpsIhWyyzzD8/IRtJiN3vqCv8ne zO8CGkFLJ2oMoFulJ7jrAN2c06GtgSzolhFtgyYEmhgin/Kx8zIBM0A8jwZsyITurHss sv7+19LwsGD3meZYVJDQIepPfT+V1ZTKUHd7DvBVslt0JVDrp0BulyOcl4Azwi7yhwQu Vb+PMWIZ8m7e7p3pvVrOdAFRtYIzzZ2F5p8NsTnT7H8XZtCMSaASgiq6LyLApX2OGtOR GThf5knCk2Mtv+4sPh0UxsmgN8IK26OkgPAh7mmLtsPyTpJ7PN8/gtchNsiFmFGu9/oh 53+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=TPD8LxttC/DP+1oZQoVQvNTbHaAj0jJ6spwh2Izv8Rg=; b=kZsN+PmODdjLKuwULtJwZfZyUJqVjf3APJn3N5FluH7BjlDNHh781sihkUHth4ieRo TvtQ3EUUgLEoFJrf6L8yG0VixVQArTwIDWZvIYWrANX9L812/yMCusPjl1ZjOJgcN0Pt 1L3bHL7fQn3/luUBLlwSd0eqjk3jbp53yAOOvas4LAammmTSHxhr9H0GJ/vDVVXG6Ae1 l70L6eUfl5UoOjJ8FrKV42zymQaYhJAdU3DHeY7OPdaCHZIkP5gdsJdoUsSYUjuYwNnY CwEA9bFNjvws1UCI3H8gdg5WlJS24eVa8v4stJKonj86Ej9O+fBkDeNGk3e8cFOZ9k4V 33Ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 68si14657129qkw.202.2017.08.22.06.00.38; Tue, 22 Aug 2017 06:00:39 -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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 56B0F64481; Tue, 22 Aug 2017 13:00:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 4308C62D32; Tue, 22 Aug 2017 13:00: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 39BCD62876; Tue, 22 Aug 2017 13:00:20 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id 6B97C60869 for ; Tue, 22 Aug 2017 13:00:17 +0000 (UTC) Received: from mxback7o.mail.yandex.net (mxback7o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::21]) by forward104o.mail.yandex.net (Yandex) with ESMTP id CEFF12C84424 for ; Tue, 22 Aug 2017 16:00:15 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback7o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id sshkTF9Yn1-0F24tYgr; Tue, 22 Aug 2017 16:00:15 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id OnNlicFDKK-0FZiZNf2; Tue, 22 Aug 2017 16:00:15 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 22 Aug 2017 16:00:09 +0300 Message-Id: <1503406809-30626-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503406809-30626-1-git-send-email-odpbot@yandex.ru> References: <1503406809-30626-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 137 Subject: [lng-odp] [PATCH v1 1/1] linux-gen: port fix out of tree build commits X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov Combined fix for 2 commits to fix out of tree build. 1. commit 5dd7d9ed05ee ("linux-gen: makefile: fix out of tree build") Author: Petri Savolainen Date: Mon Jun 19 11:25:19 2017 +0300 linux-gen: makefile: fix out of tree build Generated files need $(top_builddir) instead of $(top_srcdir) Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052 2. b35abec0 (fix out of tree build) Commit: eebd6b0 configure: the version cannot use a script Did generation of version.h which is done in $dest_dir. Includes paths have to be corrected accordingly. Conflicts: example/Makefile.inc helper/Makefile.am platform/Makefile.inc platform/linux-generic/Makefile.am test/Makefile.inc test/platform/linux-generic/Makefile.inc Signed-off-by: Maxim Uvarov --- /** Email created from pull request 137 (muvarov:monarch_lts_fix_out_of_tree_build) ** https://github.com/Linaro/odp/pull/137 ** Patch: https://github.com/Linaro/odp/pull/137.patch ** Base sha: 2dd7893463c2417fec14ff3535e5fe641706cae5 ** Merge commit sha: a6d644416a41c0cd7058e78d96a31f1e9b2cd62e **/ example/Makefile.inc | 4 +++- helper/Makefile.am | 2 ++ platform/Makefile.inc | 4 ++-- platform/linux-generic/Makefile.am | 2 ++ test/Makefile.inc | 7 ++++++- test/platform/linux-generic/Makefile.inc | 11 +++++++++-- 6 files changed, 24 insertions(+), 6 deletions(-) diff --git a/example/Makefile.inc b/example/Makefile.inc index 70ba2c0c..19d39943 100644 --- a/example/Makefile.inc +++ b/example/Makefile.inc @@ -6,6 +6,8 @@ AM_CFLAGS += \ -I$(top_srcdir)/example \ -I$(top_srcdir)/platform/@with_platform@/include \ -I$(top_srcdir)/include/ \ - -I$(top_srcdir)/helper/include + -I$(top_srcdir)/helper/include \ + -I$(top_builddir)/platform/@with_platform@/include \ + -I$(top_builddir)/include AM_LDFLAGS += -L$(LIB) diff --git a/helper/Makefile.am b/helper/Makefile.am index a82a11aa..d09d9008 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -7,6 +7,8 @@ LIB = $(top_builddir)/lib AM_CFLAGS = -I$(srcdir)/include AM_CFLAGS += -I$(top_srcdir)/platform/@with_platform@/include AM_CFLAGS += -I$(top_srcdir)/include +AM_CFLAGS += -I$(top_builddir)/platform/@with_platform@/include +AM_CFLAGS += -I$(top_builddir)/include AM_LDFLAGS += -version-number '$(ODPHELPER_LIBSO_VERSION)' diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 4a0e68b7..ed618a29 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -57,5 +57,5 @@ odpapispecinclude_HEADERS = \ $(top_srcdir)/include/odp/api/spec/ticketlock.h \ $(top_srcdir)/include/odp/api/spec/time.h \ $(top_srcdir)/include/odp/api/spec/timer.h \ - $(top_srcdir)/include/odp/api/spec/traffic_mngr.h \ - $(top_srcdir)/include/odp/api/spec/version.h + $(top_builddir)/include/odp/api/spec/version.h \ + $(top_srcdir)/include/odp/api/spec/traffic_mngr.h diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index c8fd8cbe..000ade5a 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -6,6 +6,8 @@ include $(top_srcdir)/platform/@with_platform@/Makefile.inc AM_CFLAGS += -I$(srcdir)/include AM_CFLAGS += -I$(top_srcdir)/include +AM_CFLAGS += -I$(top_builddir)/include +AM_CFLAGS += -Iinclude include_HEADERS = \ $(top_srcdir)/include/odp.h \ diff --git a/test/Makefile.inc b/test/Makefile.inc index 5def9235..962160d4 100644 --- a/test/Makefile.inc +++ b/test/Makefile.inc @@ -9,7 +9,12 @@ LDADD = $(PRE_LDADD) $(LIB)/libodphelper-linux.la $(LIB)/libodp-linux.la INCFLAGS = -I$(top_srcdir)/test \ -I$(top_srcdir)/platform/@with_platform@/include \ -I$(top_srcdir)/include \ - -I$(top_srcdir)/helper/include + -I$(top_srcdir)/helper/include \ + -I$(top_srcdir)/test \ + -I$(top_srcdir)/test/validation/common \ + -I$(top_builddir)/include + + AM_CFLAGS += $(INCFLAGS) AM_CXXFLAGS = $(INCFLAGS) diff --git a/test/platform/linux-generic/Makefile.inc b/test/platform/linux-generic/Makefile.inc index 80b66ae9..57150d22 100644 --- a/test/platform/linux-generic/Makefile.inc +++ b/test/platform/linux-generic/Makefile.inc @@ -8,9 +8,16 @@ LIBCUNIT_COMMON = $(top_builddir)/test/validation/common/libcunit_common.la LIB = $(top_builddir)/lib LIBODP = $(LIB)/libodphelper-linux.la $(LIB)/libodp-linux.la -INCCUNIT_COMMON = -I$(top_srcdir)/test/validation/common -INCODP = -I$(top_srcdir)/test \ +INCCUNIT_COMMON = -I$(top_srcdir)/test/common_plat/common +INCODP = \ + -I$(top_builddir)/include \ + -I$(top_builddir)/platform/@with_platform@/include \ + -I$(top_srcdir)/helper/include \ + -I$(top_srcdir)/include \ + -I$(top_srcdir)/platform/@with_platform@/arch/$(ARCH_DIR) \ -I$(top_srcdir)/platform/@with_platform@/include \ -I$(top_srcdir)/platform/@with_platform@/arch/$(ARCH_DIR) \ + -I$(top_srcdir)/test \ + -I$(top_srcdir)/test/validation/common \ -I$(top_srcdir)/include \ -I$(top_srcdir)/helper/include