From patchwork Thu Jan 20 02:38:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruifeng Wang X-Patchwork-Id: 106104 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C4816A00C3; Thu, 20 Jan 2022 03:38:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4490140E09; Thu, 20 Jan 2022 03:38:36 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 809164013F; Thu, 20 Jan 2022 03:38:34 +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 985FAED1; Wed, 19 Jan 2022 18:38:33 -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 6B83F3F766; Wed, 19 Jan 2022 18:38:30 -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 v3] build: add missing arch define for Arm Date: Thu, 20 Jan 2022 10:38:00 +0800 Message-Id: <20220120023800.1596033-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 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 Reported-by: Stephen Hemminger Signed-off-by: Ruifeng Wang --- v3: Use armv8 instead of arm64. (Thomas, Juraj) 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..c3a3f2faaf 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', 'armv8') update_flags = true soc_config = {} if not meson.is_cross_build()