]> git.droids-corp.org - dpdk.git/commitdiff
config/arm: add SVE ACLE control flag
authorRahul Bhansali <rbhansali@marvell.com>
Thu, 19 May 2022 13:28:29 +0000 (18:58 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 1 Jun 2022 22:36:24 +0000 (00:36 +0200)
An additional check of control flag sve_acle for
RTE_HAS_SVE_ACLE macro to be part of the build.
If any SoC config doesn't have sve_acle flag parameter
then default it will be considered as true.

Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
Reviewed-by: Chengwen Feng <fengchengwen@huawei.com>
Reviewed-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>
config/arm/meson.build

index d7fbcaf2955277dd5f7d5743ac4d5d897a789b07..06f4b54197b371b059d41e0e9a134005aec8d25f 100644 (file)
@@ -613,7 +613,7 @@ endif
 
 if cc.get_define('__ARM_FEATURE_SVE', args: machine_args) != ''
     compile_time_cpuflags += ['RTE_CPUFLAG_SVE']
-    if (cc.check_header('arm_sve.h'))
+    if (cc.check_header('arm_sve.h') and soc_config.get('sve_acle', true))
         dpdk_conf.set('RTE_HAS_SVE_ACLE', 1)
     endif
 endif