[v3] config/arm: correct cpu arch for cross build
Checks
Commit Message
The cn10k cross build file sets cpu to 'armv8.6-a' while
it is armv8.5-a arch.
Meanwhile, the cpu field in the cross file doesn't take
effect as config/arm/meson.build controls machine_args
for march. Then change the 'cpu' value in all arm cross
files to 'auto'.
Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
---
config/arm/arm32_armv8_linux_gcc | 2 +-
config/arm/arm64_altra_linux_gcc | 2 +-
config/arm/arm64_ampereone_linux_gcc | 2 +-
config/arm/arm64_armada_linux_gcc | 2 +-
config/arm/arm64_armv8_linux_clang_ubuntu | 2 +-
config/arm/arm64_armv8_linux_gcc | 2 +-
config/arm/arm64_bluefield3_linux_gcc | 2 +-
config/arm/arm64_bluefield_linux_gcc | 2 +-
config/arm/arm64_cdx_linux_gcc | 2 +-
config/arm/arm64_centriq2400_linux_gcc | 2 +-
config/arm/arm64_cn10k_linux_gcc | 2 +-
config/arm/arm64_cn9k_linux_gcc | 2 +-
config/arm/arm64_dpaa_linux_gcc | 2 +-
config/arm/arm64_emag_linux_gcc | 2 +-
config/arm/arm64_ft2000plus_linux_gcc | 2 +-
config/arm/arm64_graviton2_linux_gcc | 2 +-
config/arm/arm64_graviton3_linux_gcc | 2 +-
config/arm/arm64_hip10_linux_gcc | 2 +-
config/arm/arm64_kunpeng920_linux_gcc | 2 +-
config/arm/arm64_kunpeng930_linux_gcc | 2 +-
config/arm/arm64_n1sdp_linux_gcc | 2 +-
config/arm/arm64_n2_linux_gcc | 2 +-
config/arm/arm64_stingray_linux_gcc | 2 +-
config/arm/arm64_thunderx2_linux_gcc | 2 +-
config/arm/arm64_thunderxt83_linux_gcc | 2 +-
config/arm/arm64_thunderxt88_linux_gcc | 2 +-
config/arm/arm64_tys2500_linux_gcc | 2 +-
27 files changed, 27 insertions(+), 27 deletions(-)
Comments
20/11/2023 10:24, Joyce Kong:
> The cn10k cross build file sets cpu to 'armv8.6-a' while
> it is armv8.5-a arch.
> Meanwhile, the cpu field in the cross file doesn't take
> effect as config/arm/meson.build controls machine_args
> for march. Then change the 'cpu' value in all arm cross
> files to 'auto'.
>
> Signed-off-by: Joyce Kong <joyce.kong@arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
What did you change compared to v2?
Please take care of providing a changelog after "---"
I still see the same error on my machine:
config/meson.build:178:8: ERROR: Problem encountered:
Compiler does not support "native" arch flag.
> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Tuesday, November 21, 2023 12:55 AM
> To: Joyce Kong <Joyce.Kong@arm.com>
> Cc: Ruifeng Wang <Ruifeng.Wang@arm.com>; bruce.richardson@intel.com;
> dev@dpdk.org; nd <nd@arm.com>
> Subject: Re: [PATCH v3] config/arm: correct cpu arch for cross build
>
> 20/11/2023 10:24, Joyce Kong:
> > The cn10k cross build file sets cpu to 'armv8.6-a' while it is
> > armv8.5-a arch.
> > Meanwhile, the cpu field in the cross file doesn't take effect as
> > config/arm/meson.build controls machine_args for march. Then change
> > the 'cpu' value in all arm cross files to 'auto'.
> >
> > Signed-off-by: Joyce Kong <joyce.kong@arm.com>
> > Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
>
> What did you change compared to v2?
> Please take care of providing a changelog after "---"
>
> I still see the same error on my machine:
> config/meson.build:178:8: ERROR: Problem encountered:
> Compiler does not support "native" arch flag.
>
The patch "config: verify machine arch flag (b7676fcccab4) " introduces a verification for specified cpu_instruction_set.
When cpu set to 'auto' as my patch, the below code in config/meson.build changes it to 'native' and triggers the verification error. However, the platform couldn't be 'native' or 'generic' for cross build. Changing cpu_instruction_set from 'auto' to 'native' is unreasonable here. I would like to send a patch to move the below code to not cross build path.
"if platform == 'native'
if cpu_instruction_set == 'auto'
cpu_instruction_set = 'native'
endif
elif platform == 'generic'
if cpu_instruction_set == 'auto'
cpu_instruction_set = 'generic'
endif
endif"
And I would like to update cpu value in the cross file to aarch64 instead of auto, to avoid any further possible verification.
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch32'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8.2-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8.6-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -10,7 +10,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -10,7 +10,7 @@ pkgconfig = 'aarch64-linux-gnu-pkg-config'
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8.4-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -10,7 +10,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -10,7 +10,7 @@ cmake = 'cmake'
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8.6-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -10,7 +10,7 @@ cmake = 'cmake'
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -10,7 +10,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]
@@ -9,7 +9,7 @@ pcap-config = ''
[host_machine]
system = 'linux'
cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
endian = 'little'
[properties]