From patchwork Mon Nov 23 11:29:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 57146 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1377555lbb; Mon, 23 Nov 2015 03:35:52 -0800 (PST) X-Received: by 10.140.31.194 with SMTP id f60mr26965074qgf.60.1448278552827; Mon, 23 Nov 2015 03:35:52 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x47si10816782qgx.59.2015.11.23.03.35.52; Mon, 23 Nov 2015 03:35:52 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 69107618F0; Mon, 23 Nov 2015 11:35:52 +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=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED 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 A284461B17; Mon, 23 Nov 2015 11:30:16 +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 BAA1361915; Mon, 23 Nov 2015 11:30:02 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by lists.linaro.org (Postfix) with ESMTPS id E7168618F0 for ; Mon, 23 Nov 2015 11:29:13 +0000 (UTC) Received: by lbbcs9 with SMTP id cs9so93711992lbb.1 for ; Mon, 23 Nov 2015 03:29:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=durmvVm/MA7rUrZJH7ZM+5QN5rOy/dozdIp0uVu0wUI=; b=onfi33eZNhssPS9vn9yZYFXBoFHSf/DQ4sR4e5/z0hlMBI7El4+jcsVK0xGtWIJDO0 h4jx2BbvfgsXO5gLgkcnYyPRoieIXOd1otgH0ofHCv85LIz+Cjhg68tYCjvmt9KHwl8b AEI9qRMsjc26Z3C8Bf0Y53lT0FLIIvFYTLqrKkt5kQwM+oXEmoNVO2lgfYbX1RMVLr0M my9yJOUutDBKfL5MtrBGJKXN6jUE9ln+FmNf7bhfuguij1u8ZNTUIBtMdCw2Ogk3FroQ cw6lrxsSNrQRNfj8GXQoR3wRET5XZ23vmp/mu7X8p6YFex8fhT8qGC1qb2wrE/RlNAWi Mj0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=durmvVm/MA7rUrZJH7ZM+5QN5rOy/dozdIp0uVu0wUI=; b=jbyJzWK1VeEFT2LEect8PDjHUDmI8l/DSB+a+1v5zT/V+Xl3sQvXIR0ELfsKZkyp1E 9xhnhoekLL+XpSvm6uU+zqruDpzqioNtaZsv+83gviCq33SGTZP9BcieEDjwsr/Dkvj2 5j+5aFI+xhVW5zyAMlms/yJsTH5KCgWXlU1gGBn2F3gLqNPYeXSxqy4XZISx5niK/Iuq J6eOf9o/ehW3BFVvaBeO6SoFFmiqET549qAmQm9xwLRHc9d9AZO0E/QJC2MlE6YGf6wp kpJ4szqyuU+koDxB7C2Pm9PWAW+WGS7aQStRjklEYs2p4YKcvjizUUs2B8WgEIbOapQf egew== X-Gm-Message-State: ALoCoQlnOTfC1ltwFDthH6hA9SJiYyJGrMQnthACaj6IWrfRfxS0d9J1XMtA/M0BS0LHWZEVdlrs X-Received: by 10.112.198.69 with SMTP id ja5mr11129839lbc.106.1448278152800; Mon, 23 Nov 2015 03:29:12 -0800 (PST) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id 70sm1817754lfw.2.2015.11.23.03.29.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Nov 2015 03:29:12 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 23 Nov 2015 14:29:01 +0300 Message-Id: <1448278144-31994-8-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448278144-31994-1-git-send-email-maxim.uvarov@linaro.org> References: <1448278144-31994-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv16 07/10] helper: move odp pause to installed helper 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" ipc pktio depends on ring which depends on pause. Move pause to installed helpers to support out of tree builds. Signed-off-by: Maxim Uvarov --- helper/Makefile.am | 4 ++-- helper/{odph_pause.h => include/odp/helper/pause.h} | 0 helper/ring.c | 2 +- helper/test/pause.c | 2 +- platform/linux-generic/Makefile.am | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) rename helper/{odph_pause.h => include/odp/helper/pause.h} (100%) diff --git a/helper/Makefile.am b/helper/Makefile.am index e72507e..f045393 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -18,11 +18,11 @@ helperinclude_HEADERS = \ $(srcdir)/include/odp/helper/ipsec.h\ $(srcdir)/include/odp/helper/tcp.h\ $(srcdir)/include/odp/helper/table.h\ - $(srcdir)/include/odp/helper/udp.h + $(srcdir)/include/odp/helper/udp.h \ + $(srcdir)/include/odp/helper/pause.h noinst_HEADERS = \ $(srcdir)/odph_debug.h \ - $(srcdir)/odph_pause.h \ $(srcdir)/odph_hashtable.h \ $(srcdir)/odph_lineartable.h \ $(srcdir)/odph_list_internal.h diff --git a/helper/odph_pause.h b/helper/include/odp/helper/pause.h similarity index 100% rename from helper/odph_pause.h rename to helper/include/odp/helper/pause.h diff --git a/helper/ring.c b/helper/ring.c index e113606..e37d33e 100644 --- a/helper/ring.c +++ b/helper/ring.c @@ -71,13 +71,13 @@ #include #include -#include "odph_pause.h" #include #include #include #include #include "odph_debug.h" #include +#include #include static TAILQ_HEAD(, odph_ring) odp_ring_list; diff --git a/helper/test/pause.c b/helper/test/pause.c index f5f5da3..c5a5f1a 100644 --- a/helper/test/pause.c +++ b/helper/test/pause.c @@ -5,7 +5,7 @@ */ #include -#include "../odph_pause.h" +#include int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED) { diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 610e04d..d847d6a 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -6,6 +6,7 @@ include $(top_srcdir)/platform/Makefile.inc AM_CFLAGS += -I$(srcdir)/include AM_CFLAGS += -I$(top_srcdir)/include AM_CFLAGS += -I$(top_srcdir)/helper/include +AM_CFLAGS += -I$(top_srcdir)/helper include_HEADERS = \ $(top_srcdir)/include/odp.h