From patchwork Fri Dec 8 10:00:14 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: 121139 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp454176qgn; Fri, 8 Dec 2017 02:02:34 -0800 (PST) X-Google-Smtp-Source: AGs4zMYzj9uQLYAicGPtbA9kvv0N9NCvoS2RscwrI77nXo50/Kpp1QYDiuUEBBA/IL7IqeFU4W/8 X-Received: by 10.200.50.176 with SMTP id z45mr14296320qta.167.1512727354061; Fri, 08 Dec 2017 02:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512727354; cv=none; d=google.com; s=arc-20160816; b=YDvk4XhRTymjfppgMvIrEy5/EDaB4709CZhsMrG8TisyprPXK+ZPP4rkGih5dbZBA7 auUTadGyXyuvI6pHPygeOncV9w/1RHkMflMexRbwaQ5+TEXRthmDk5q8cuq2C77M3T4M ncBj9QZMdFsQXQ4IQNThlaVNlJYxnIyExWEHgHpoe7nQ0FbKryXWApIn13KilKJvoElg 6oRijkef7VnwWc5lfwutDiBQu3IMLBHvLS/t9sCz4R822VzWN41eYhsFuxz/psPMSPGr NStnKO2v1F9QaKFoXo7jBrYu51p8Darjp7KQNOhnL1+soT3AVv8J2F4Os+1eaT/hgMDN GIOg== 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=YsHxD9zBeHn+bqUIsPBwXynROVMmfJoEDKlRhqN1OTo=; b=D6qjpfCFkc8oIoZIXAjzjHFPzNMny36v5s9irpPGwdssb+pFAkYp98pBr3YXzvECp6 Zn5or/HhCWQC8mTD0QaUaVPtS4cUFKrEz63zk6kMx6uxLm/eUvU2rg15hN7aTvqGO1Oo 3qeyx4Qy2q702Z+Ctzjy6dvg1EoNVyifDnaYkKmQbRp3zLu9+GRslV2R5LtZWm6pGh4r gdQYaE0mN3uEnJiylGrCuFhVIDYdI47xto9g0HPzSPQAs5NGxhAvJheXjwVIGekgLhEt zCrynhFDkTYUwOxZD+kuVVZ0zax4bnjyE1a6CVn6JXe6Bu4iOdAGJCeDci/UPGGR2hgU ADWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id c124si1025786qkd.318.2017.12.08.02.02.33; Fri, 08 Dec 2017 02:02:34 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 AD6F7609E3; Fri, 8 Dec 2017 10:02:33 +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.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 8FC926095B; Fri, 8 Dec 2017 10:01:01 +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 E279760953; Fri, 8 Dec 2017 10:00:52 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 9F8FA60959 for ; Fri, 8 Dec 2017 10:00:22 +0000 (UTC) Received: from mxback13j.mail.yandex.net (mxback13j.mail.yandex.net [IPv6:2a02:6b8:0:1619::88]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 270DD183BD4 for ; Fri, 8 Dec 2017 13:00:21 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback13j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id bbeNKihTmn-0Lt05Pds; Fri, 08 Dec 2017 13:00:21 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id p6iuZvqqGi-0Kd4AqcN; Fri, 08 Dec 2017 13:00:20 +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: Fri, 8 Dec 2017 13:00:14 +0300 Message-Id: <1512727218-7712-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512727218-7712-1-git-send-email-odpbot@yandex.ru> References: <1512727218-7712-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 321 Subject: [lng-odp] [PATCH v4 2/6] linux-gen: apply -msse4.2 only in x86 case 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: Dmitry Eremin-Solenikov Flag -msse4.2 should be used only for i?86/x86_64 targets, it does not make sense for any other target. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 321 (lumag:dpdk-system-master) ** https://github.com/Linaro/odp/pull/321 ** Patch: https://github.com/Linaro/odp/pull/321.patch ** Base sha: c15a810b7a47f2e07200f83aa534163ca06e2b16 ** Merge commit sha: 540836da19aed3d8c900429f089415c51b77529f **/ platform/linux-generic/Makefile.am | 6 ++++++ platform/linux-generic/m4/odp_dpdk.m4 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 9cb501cf3..bbe6a21c2 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -14,6 +14,12 @@ AM_CPPFLAGS += $(OPENSSL_CPPFLAGS) AM_CPPFLAGS += $(DPDK_CPPFLAGS) AM_CPPFLAGS += $(NETMAP_CPPFLAGS) +if PKTIO_DPDK +if ARCH_IS_X86 +AM_CFLAGS += -msse4.2 +endif +endif + odpincludedir= $(includedir)/odp odpinclude_HEADERS = \ include/odp/visibility_begin.h \ diff --git a/platform/linux-generic/m4/odp_dpdk.m4 b/platform/linux-generic/m4/odp_dpdk.m4 index ba0fdc935..91f76e2de 100644 --- a/platform/linux-generic/m4/odp_dpdk.m4 +++ b/platform/linux-generic/m4/odp_dpdk.m4 @@ -5,7 +5,7 @@ pktio_dpdk_support=no AC_ARG_WITH([dpdk-path], [AS_HELP_STRING([--with-dpdk-path=DIR], [path to dpdk build directory])], [DPDK_PATH="$withval" - DPDK_CPPFLAGS="-msse4.2 -isystem $DPDK_PATH/include" + DPDK_CPPFLAGS="-isystem $DPDK_PATH/include" DPDK_LDFLAGS="-L$DPDK_PATH/lib" pktio_dpdk_support=yes],[])