From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0B0EFA034F; Mon, 17 Jan 2022 08:15:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7DF37410FD; Mon, 17 Jan 2022 08:15:56 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 33D564067B; Mon, 17 Jan 2022 08:15:54 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8CC5B1FB; Sun, 16 Jan 2022 23:15:52 -0800 (PST) Received: from net-arm-n1amp-02.shanghai.arm.com (net-arm-n1amp-02.shanghai.arm.com [10.169.210.112]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 693C33F766; Sun, 16 Jan 2022 23:15:49 -0800 (PST) From: Ruifeng Wang To: dev@dpdk.org Cc: viktorin@rehivetech.com, bruce.richardson@intel.com, stephen@networkplumber.org, thomas@monjalon.net, juraj.linkes@pantheon.tech, honnappa.nagarahalli@arm.com, nd@arm.com, stable@dpdk.org, Ruifeng Wang Subject: [PATCH v2] build: add missing arch define for Arm Date: Mon, 17 Jan 2022 15:15:33 +0800 Message-Id: <20220117071533.1221315-1-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211217085430.820773-1-ruifeng.wang@arm.com> References: <20211217085430.820773-1-ruifeng.wang@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org As per design document, RTE_ARCH is the name of the architecture. However, the definition was missing on Arm with meson build. It impacts applications that refers to this string. Added for Arm builds. Fixes: b1d48c41189a ("build: support ARM with meson") Cc: stable@dpdk.org Signed-off-by: Ruifeng Wang --- v2: Renamed string for aarch32 to keep consistency with RTE_ARCH_xx defines. (Thomas) config/arm/meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/arm/meson.build b/config/arm/meson.build index 16e808cdd5..0066ab5f18 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -49,6 +49,7 @@ implementer_generic = { ['RTE_ARCH_ARM_NEON_MEMCPY', false], ['RTE_ARCH_STRICT_ALIGN', true], ['RTE_ARCH_ARMv8_AARCH32', true], + ['RTE_ARCH', 'armv8_aarch32'], ['RTE_CACHE_LINE_SIZE', 64] ] } @@ -432,11 +433,13 @@ if dpdk_conf.get('RTE_ARCH_32') else # armv7 build dpdk_conf.set('RTE_ARCH_ARMv7', true) + dpdk_conf.set('RTE_ARCH', 'armv7') # the minimum architecture supported, armv7-a, needs the following, machine_args += '-mfpu=neon' endif else # armv8 build + dpdk_conf.set('RTE_ARCH', 'arm64') update_flags = true soc_config = {} if not meson.is_cross_build() -- 2.25.1