From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] crypto/aesni_mb: fix compile Date: Thu, 17 Jan 2019 23:26:41 +0100 Message-ID: <1988021.QFEkKv4KUp@xps> References: <20190116132114.65674-1-roy.fan.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, akhil.goyal@nxp.com, pablo.de.lara.guarch@intel.com To: Fan Zhang Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id EB4C92A6A for ; Thu, 17 Jan 2019 23:26:44 +0100 (CET) In-Reply-To: <20190116132114.65674-1-roy.fan.zhang@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 16/01/2019 14:21, Fan Zhang: > This patch fixes the inflexible compile issue AESNI-MB PMD. > Originally the compile of the PMD will fail if IPSec_MB is > not installed in default location. > > Fixes: c68d7aa354f6 ("crypto/aesni_mb: use architecture independent macros") > > Signed-off-by: Fan Zhang > --- > -IMB_HDR = /usr/include/intel-ipsec-mb.h > +IMB_HDR = $(shell echo "\#include " | \ What is the backslash? Looks like a typo. > + $(CC) -E $(EXTRA_CFLAGS) - | grep 'intel-ipsec-mb.h' | \ > + head -1 | cut -d'"' -f2) I think the most standard invocation of head is "head -n1". You can also use "sed 1q".