From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B7548A0350; Mon, 11 May 2020 15:32:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BDF801C0C7; Mon, 11 May 2020 15:32:35 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id C9D0F1C06A for ; Mon, 11 May 2020 15:32:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589203954; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yMXyn9cTv+MyJC321V4UtculdQUlKj8nr/K1BW4jxTs=; b=U1//AmBO6VM1q9J/nf4QA9Gn3/iX2HC8mNoFhzOndzetvHNRTSHRLRJZ7IEmzh7KWATzRC gtl6OdFrfRn31qB4GTytaoXefZruEtjdW7OCFuW0eMFGtcPc2A1O2We1Lvmk0IzDlhCkcA E+Yk7Z+2w0ypCDiXp6iwVryKRuX7VTw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-471-j11ssKn4MmSqabwmwDyo2g-1; Mon, 11 May 2020 09:32:32 -0400 X-MC-Unique: j11ssKn4MmSqabwmwDyo2g-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6679118FE879; Mon, 11 May 2020 13:32:31 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.236]) by smtp.corp.redhat.com (Postfix) with ESMTP id 654242E187; Mon, 11 May 2020 13:32:28 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Kevin Laatz , Ciara Power , Bruce Richardson , Keith Wiles Date: Mon, 11 May 2020 15:32:12 +0200 Message-Id: <20200511133212.21444-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] telemetry: fix build for armv7 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" telemetry can not depend on EAL anymore but it still wants to get arch headers. We directly point at the right source directories by using the same logic than EAL. However the special case of armv7 has been missed. Fix this by defaulting ARCH_DIR to RTE_ARCH. Caught on OBS: [ 162s] SYMLINK-FILE include/rte_telemetry.h [ 162s] CC telemetry.o [ 162s] CC telemetry_data.o [ 162s] CC telemetry_legacy.o [ 162s] .../lib/librte_telemetry/telemetry.c:15:10: fatal error: rte_spinlock.h: No such file or directory [ 162s] #include [ 162s] ^~~~~~~~~~~~~~~~ [ 162s] compilation terminated. Fixes: 6dd571fd07c3 ("telemetry: introduce new functionality") Signed-off-by: David Marchand --- lib/librte_telemetry/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_telemetry/Makefile b/lib/librte_telemetry/Makefile index 29115ba792..c62cbd86dc 100644 --- a/lib/librte_telemetry/Makefile +++ b/lib/librte_telemetry/Makefile @@ -6,6 +6,8 @@ include $(RTE_SDK)/mk/rte.vars.mk # library name LIB = librte_telemetry.a +ARCH_DIR ?= $(RTE_ARCH) + CFLAGS += -O3 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) CFLAGS += -I$(RTE_SDK)/lib/librte_metrics/ -- 2.23.0