Skip to contentSkip to conversation

config/arm: correct cpu arch for cross build

PATCH Superseded Joyce Kong 5 participants 28 messages Aug 22, 2023 – Mar 6, 2024

Subsystems (2)
lore
Share & tools
lore

Joyce Kong

author
#0 lore raw

PATCH 1/1 config/arm: correct cpu arch for cross build

The cn10k cross build file sets cpu to 'armv8.6-a' while N2 is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

---
 config/arm/arm32_armv8_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_bluefield_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_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 +-
 22 files changed, 22 insertions(+), 22 deletions(-)
config/arm/arm32_armv8_linux_gcc +1 -1
index 269a60ba19..af1c8b68c3 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch32'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_armada_linux_gcc +1 -1
index 635b4946a3..7f9090bb44 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_armv8_linux_clang_ubuntu +1 -1
index 86ae43937b..3d52a5e32e 100644
@@ -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]
config/arm/arm64_armv8_linux_gcc +1 -1
index 529694b49d..98efa7fd2d 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_bluefield_linux_gcc +1 -1
index 1286227915..d38922fea5 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_centriq2400_linux_gcc +1 -1
index bc8737e072..ad08b2b83c 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cn10k_linux_gcc +1 -1
index 05d2d64cf2..1a7debfdc4 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.6-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cn9k_linux_gcc +1 -1
index 7416454de0..6f3d933738 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_dpaa_linux_gcc +1 -1
index 8465b5097b..e60edbaafb 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_emag_linux_gcc +1 -1
index 248169ed68..10e2e83b56 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_ft2000plus_linux_gcc +1 -1
index ae9f779056..8d65d18b8d 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_graviton2_linux_gcc +1 -1
index fdb298bb11..adc96598e0 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_graviton3_linux_gcc +1 -1
index 19b422075d..805566ae85 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_kunpeng920_linux_gcc +1 -1
index 193fb48a61..ea0f3f96d6 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_kunpeng930_linux_gcc +1 -1
index e4281ceb4f..3a928ee998 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_n1sdp_linux_gcc +1 -1
index 2806a4241b..6eef27291a 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_n2_linux_gcc +1 -1
index 7404bd197b..111ae52c5f 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_stingray_linux_gcc +1 -1
index 08148b5c3d..41903aaa1f 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderx2_linux_gcc +1 -1
index 32ae938e95..eb07a59da0 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderxt83_linux_gcc +1 -1
index e9d9e62d44..cd4f9c2acb 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderxt88_linux_gcc +1 -1
index c6e5a5656a..b9e0d554a4 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_tys2500_linux_gcc +1 -1
index fce85fb0d8..994803d363 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
Signature · 1 line
2.25.1
#1 lore raw

22/08/2023 09:47, Joyce Kong:

Quoted 5 lines

The cn10k cross build file sets cpu to 'armv8.6-a' while N2 is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

I don't get it.
Why setting a value if it has no impact?
Looks like something is overcomplicated.

author
#2 lore raw
Quoted 15 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, October 18, 2023 3:42 AM
To: Joyce Kong <[email protected]>
Cc: Ruifeng Wang <[email protected]>; Bruce Richardson <[email protected]>; [email protected]; nd <[email protected]>
Subject: Re: [PATCH v1] config/arm: correct cpu arch for cross build

22/08/2023 09:47, Joyce Kong:

Quoted 5 lines

The cn10k cross build file sets cpu to 'armv8.6-a' while N2 is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

Quoted 4 lines

I don't get it.
Why setting a value if it has no impact? Looks like something is overcomplicated.

We still have to declare them here because meson would check the 'cpu' line in the config file, otherwise it would report missing {'cpu'}.

#3 lore raw

18/10/2023 07:40, Joyce Kong:

Quoted 8 lines
Quoted 8 lines

From: Thomas Monjalon <[email protected]>
22/08/2023 09:47, Joyce Kong:

Quoted 5 lines

The cn10k cross build file sets cpu to 'armv8.6-a' while N2 is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

Quoted 5 lines
Quoted 4 lines

I don't get it.
Why setting a value if it has no impact?
Looks like something is overcomplicated.

We still have to declare them here because meson would check the 'cpu' line in the config file, otherwise it would report missing {'cpu'}.

OK

Then why not all cross files are set to auto?

author
#4 lore raw
Quoted 23 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Monday, November 6, 2023 10:10 PM
To: Ruifeng Wang <[email protected]>; Joyce Kong <[email protected]>
Cc: [email protected]; Bruce Richardson <[email protected]>; [email protected]; nd <[email protected]>; Paul Szczepanek <[email protected]>
Subject: Re: [PATCH v1] config/arm: correct cpu arch for cross build

18/10/2023 07:40, Joyce Kong:

Quoted 12 lines
Quoted 12 lines

From: Thomas Monjalon <[email protected]>
22/08/2023 09:47, Joyce Kong:

Quoted 5 lines

The cn10k cross build file sets cpu to 'armv8.6-a' while N2 is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

I don't get it.
Why setting a value if it has no impact?
Looks like something is overcomplicated.

Quoted 7 lines
Quoted 1 line

We still have to declare them here because meson would check the 'cpu'

line in the config file, otherwise it would report missing {'cpu'}.

OK

Then why not all cross files are set to auto?

Actually, I set all the Arm cross files to auto in this patch. Maybe I have to figure it out in the commit line?

#5 lore raw

06/11/2023 15:31, Joyce Kong:

Quoted 23 lines
Quoted 23 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Monday, November 6, 2023 10:10 PM
To: Ruifeng Wang <[email protected]>; Joyce Kong <[email protected]>
Cc: [email protected]; Bruce Richardson <[email protected]>; [email protected]; nd <[email protected]>; Paul Szczepanek <[email protected]>
Subject: Re: [PATCH v1] config/arm: correct cpu arch for cross build

18/10/2023 07:40, Joyce Kong:

Quoted 12 lines
Quoted 12 lines

From: Thomas Monjalon <[email protected]>
22/08/2023 09:47, Joyce Kong:

Quoted 5 lines

The cn10k cross build file sets cpu to 'armv8.6-a' while N2 is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

I don't get it.
Why setting a value if it has no impact?
Looks like something is overcomplicated.

Quoted 8 lines
Quoted 7 lines
Quoted 1 line

We still have to declare them here because meson would check the 'cpu'

line in the config file, otherwise it would report missing {'cpu'}.

OK

Then why not all cross files are set to auto?

Actually, I set all the Arm cross files to auto in this patch. Maybe I have to figure it out in the commit line?

What about these ones?

git grep 'cpu = ' config/arm | grep -v auto

config/arm/arm64_altra_linux_gcc:cpu = 'armv8.2-a' config/arm/arm64_ampereone_linux_gcc:cpu = 'armv8.6-a' config/arm/arm64_bluefield3_linux_gcc:cpu = 'armv8.4-a' config/arm/arm64_cdx_linux_gcc:cpu = 'armv8-a' config/arm/arm64_hip10_linux_gcc:cpu = 'armv8-a'

author
#6 lore raw
Quoted 45 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Monday, November 6, 2023 11:38 PM
To: Ruifeng Wang <[email protected]>
Cc: [email protected]; Bruce Richardson <[email protected]>; nd <[email protected]>; Paul Szczepanek <[email protected]>; Joyce Kong <[email protected]>
Subject: Re: [PATCH v1] config/arm: correct cpu arch for cross build

06/11/2023 15:31, Joyce Kong:

Quoted 23 lines
Quoted 23 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Monday, November 6, 2023 10:10 PM
To: Ruifeng Wang <[email protected]>; Joyce Kong <[email protected]>
Cc: [email protected]; Bruce Richardson <[email protected]>; [email protected]; nd <[email protected]>; Paul Szczepanek <[email protected]>
Subject: Re: [PATCH v1] config/arm: correct cpu arch for cross build

18/10/2023 07:40, Joyce Kong:

Quoted 12 lines
Quoted 12 lines

From: Thomas Monjalon <[email protected]>
22/08/2023 09:47, Joyce Kong:

Quoted 5 lines

The cn10k cross build file sets cpu to 'armv8.6-a' while N2 is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

I don't get it.
Why setting a value if it has no impact?
Looks like something is overcomplicated.

Quoted 8 lines
Quoted 7 lines
Quoted 1 line

We still have to declare them here because meson would check the 'cpu'

line in the config file, otherwise it would report missing {'cpu'}.

OK

Then why not all cross files are set to auto?

Actually, I set all the Arm cross files to auto in this patch. Maybe I have to

figure it out in the commit line?

What about these ones?

Quoted 9 lines

git grep 'cpu = ' config/arm | grep -v auto

config/arm/arm64_altra_linux_gcc:cpu = 'armv8.2-a' config/arm/arm64_ampereone_linux_gcc:cpu = 'armv8.6-a' config/arm/arm64_bluefield3_linux_gcc:cpu = 'armv8.4-a' config/arm/arm64_cdx_linux_gcc:cpu = 'armv8-a' config/arm/arm64_hip10_linux_gcc:cpu = 'armv8-a'

Really sorry for missing them as I didn't update the version, I shall correct them in next patch.

author
#7 lore raw

PATCH v2 1/1 config/arm: correct cpu arch for cross build

In reply to Joyce Kong

The cn10k cross build file sets cpu to 'armv8.6-a' while it is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

---
 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(-)
config/arm/arm32_armv8_linux_gcc +1 -1
index 269a60ba19..af1c8b68c3 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch32'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_altra_linux_gcc +1 -1
index ce0667ebe2..972de20614 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.2-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_ampereone_linux_gcc +1 -1
index 8964432a74..f1235993d8 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.6-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_armada_linux_gcc +1 -1
index 635b4946a3..7f9090bb44 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_armv8_linux_clang_ubuntu +1 -1
index 86ae43937b..3d52a5e32e 100644
@@ -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]
config/arm/arm64_armv8_linux_gcc +1 -1
index 529694b49d..98efa7fd2d 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_bluefield3_linux_gcc +1 -1
index 775cf5883d..cf58b4aa6b 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.4-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_bluefield_linux_gcc +1 -1
index 1286227915..d38922fea5 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cdx_linux_gcc +1 -1
index 8e6d619dae..be2aa56430 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_centriq2400_linux_gcc +1 -1
index bc8737e072..ad08b2b83c 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cn10k_linux_gcc +1 -1
index fa904af5d0..ad403c3aa0 100644
@@ -10,7 +10,7 @@ cmake = 'cmake'
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.6-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cn9k_linux_gcc +1 -1
index 646ce4b5d3..f2947e94c0 100644
@@ -10,7 +10,7 @@ cmake = 'cmake'
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_dpaa_linux_gcc +1 -1
index 8465b5097b..e60edbaafb 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_emag_linux_gcc +1 -1
index 248169ed68..10e2e83b56 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_ft2000plus_linux_gcc +1 -1
index ae9f779056..8d65d18b8d 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_graviton2_linux_gcc +1 -1
index fdb298bb11..adc96598e0 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_graviton3_linux_gcc +1 -1
index 19b422075d..805566ae85 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_hip10_linux_gcc +1 -1
index 2943e4abbf..5a769d27d2 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_kunpeng920_linux_gcc +1 -1
index 193fb48a61..ea0f3f96d6 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_kunpeng930_linux_gcc +1 -1
index e4281ceb4f..3a928ee998 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_n1sdp_linux_gcc +1 -1
index 2806a4241b..6eef27291a 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_n2_linux_gcc +1 -1
index 7404bd197b..111ae52c5f 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_stingray_linux_gcc +1 -1
index 08148b5c3d..41903aaa1f 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderx2_linux_gcc +1 -1
index 32ae938e95..eb07a59da0 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderxt83_linux_gcc +1 -1
index e9d9e62d44..cd4f9c2acb 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderxt88_linux_gcc +1 -1
index c6e5a5656a..b9e0d554a4 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_tys2500_linux_gcc +1 -1
index fce85fb0d8..994803d363 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
Signature · 1 line
2.25.1
#8 lore raw

07/11/2023 04:26, Joyce Kong:

Quoted 8 lines

The cn10k cross build file sets cpu to 'armv8.6-a' while it is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

It generates this error:

config/meson.build:178:8: ERROR: Problem encountered:
Compiler does not support "native" arch flag.

author
#9 lore raw
Quoted 17 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Sunday, November 12, 2023 8:54 PM
To: Ruifeng Wang <[email protected]>; Joyce Kong <[email protected]>
Cc: [email protected]; [email protected]; nd <[email protected]>
Subject: Re: [PATCH v2] config/arm: correct cpu arch for cross build

07/11/2023 04:26, Joyce Kong:

Quoted 6 lines

The cn10k cross build file sets cpu to 'armv8.6-a' while it is armv8.5-a arch.
The cpu field in the cross file doesn't take effect as config/arm/meson.build controls machine_args for march. Then correct the value in arm cross files to 'auto'.

Quoted 8 lines
Quoted 2 lines

It generates this error:

config/meson.build:178:8: ERROR: Problem encountered:
Compiler does not support "native" arch flag.

Hi Thomas, are there any changes for CI recently?
I checked the log, it seemed CI triggering a wrong configuration for cross compiling, not related to this patch. I shall rebase the patch and send out V3, and we can see whether CI still fails.

author
#10 lore raw

PATCH v3 1/1 config/arm: correct cpu arch for cross build

In reply to 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'.

---
 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(-)
config/arm/arm32_armv8_linux_gcc +1 -1
index 269a60ba19..af1c8b68c3 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch32'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_altra_linux_gcc +1 -1
index ce0667ebe2..972de20614 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.2-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_ampereone_linux_gcc +1 -1
index 8964432a74..f1235993d8 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.6-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_armada_linux_gcc +1 -1
index 635b4946a3..7f9090bb44 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_armv8_linux_clang_ubuntu +1 -1
index 86ae43937b..3d52a5e32e 100644
@@ -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]
config/arm/arm64_armv8_linux_gcc +1 -1
index 529694b49d..98efa7fd2d 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_bluefield3_linux_gcc +1 -1
index 775cf5883d..cf58b4aa6b 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.4-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_bluefield_linux_gcc +1 -1
index 1286227915..d38922fea5 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cdx_linux_gcc +1 -1
index 8e6d619dae..be2aa56430 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_centriq2400_linux_gcc +1 -1
index bc8737e072..ad08b2b83c 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cn10k_linux_gcc +1 -1
index fa904af5d0..ad403c3aa0 100644
@@ -10,7 +10,7 @@ cmake = 'cmake'
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.6-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cn9k_linux_gcc +1 -1
index 646ce4b5d3..f2947e94c0 100644
@@ -10,7 +10,7 @@ cmake = 'cmake'
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_dpaa_linux_gcc +1 -1
index 8465b5097b..e60edbaafb 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_emag_linux_gcc +1 -1
index 248169ed68..10e2e83b56 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_ft2000plus_linux_gcc +1 -1
index ae9f779056..8d65d18b8d 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_graviton2_linux_gcc +1 -1
index fdb298bb11..adc96598e0 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_graviton3_linux_gcc +1 -1
index 19b422075d..805566ae85 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_hip10_linux_gcc +1 -1
index 2943e4abbf..5a769d27d2 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_kunpeng920_linux_gcc +1 -1
index 193fb48a61..ea0f3f96d6 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_kunpeng930_linux_gcc +1 -1
index e4281ceb4f..3a928ee998 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_n1sdp_linux_gcc +1 -1
index 2806a4241b..6eef27291a 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_n2_linux_gcc +1 -1
index 7404bd197b..111ae52c5f 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_stingray_linux_gcc +1 -1
index 08148b5c3d..41903aaa1f 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderx2_linux_gcc +1 -1
index 32ae938e95..eb07a59da0 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderxt83_linux_gcc +1 -1
index e9d9e62d44..cd4f9c2acb 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderxt88_linux_gcc +1 -1
index c6e5a5656a..b9e0d554a4 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_tys2500_linux_gcc +1 -1
index fce85fb0d8..994803d363 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
Signature · 1 line
2.25.1
#11 lore raw

20/11/2023 10:24, Joyce Kong:

Quoted 9 lines

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'.

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.

author
#12 lore raw
Quoted 18 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, November 21, 2023 12:55 AM
To: Joyce Kong <[email protected]>
Cc: Ruifeng Wang <[email protected]>; [email protected]; [email protected]; nd <[email protected]>
Subject: Re: [PATCH v3] config/arm: correct cpu arch for cross build

20/11/2023 10:24, Joyce Kong:

Quoted 8 lines

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'.

Quoted 7 lines

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.

author
#13 lore raw

v4 cover config changes for cross build

In reply to Joyce Kong

The patch series implement two changes for cross build. The first one is to correct cpu instruction set. And the second one is to use a common cpu arch for cross files.

---
V4:
* Add patch to correct cpu instruction set for cross build.

v3:
* Rebase the patch to use a common cpu arch for cross files.

v2:
* Add the missing cross files which are not changed to use the common cpu arch in v1.
---

Joyce Kong (2):
config: correct cpu instruction set for cross build config/arm: use common cpu arch for cross files

 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 +-
 config/meson.build                        | 11 ++++++-----
 28 files changed, 33 insertions(+), 32 deletions(-)
Signature · 1 line
2.25.1
author
#14 lore raw

PATCH v4 1/2 config: correct cpu instruction set for cross build

The platform value would be 'native' only when not cross build. Move the operation about modifying cpu_instruction_set while platform equals 'native' to the not cross build branch.

Fixes bf66003b51ec ("build: use platform for generic and native builds")
---
 config/meson.build | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
config/meson.build +6 -5
index a9ccd56deb..0f37bc733c 100644
@@ -121,13 +121,14 @@ else
             cpu_instruction_set = 'generic'
         endif
     endif
+    if platform == 'native'
+        if cpu_instruction_set == 'auto'
+            cpu_instruction_set = 'native'
+        endif
+    endif
 endif
 
-if platform == 'native'
-    if cpu_instruction_set == 'auto'
-        cpu_instruction_set = 'native'
-    endif
-elif platform == 'generic'
+if platform == 'generic'
     if cpu_instruction_set == 'auto'
         cpu_instruction_set = 'generic'
     endif
Signature · 1 line
2.25.1
Acked-by on v4 1/2
#15 lore raw

Re: [PATCH v4 1/2] config: correct cpu instruction set for cross build

Quoted 9 lines · On Tue, 5 Dec 2023 03:52:58 +0000 Joyce Kong <[email protected]> wrote:

The platform value would be 'native' only when not cross build. Move the operation about modifying cpu_instruction_set while platform equals 'native' to the not cross build branch.

Fixes bf66003b51ec ("build: use platform for generic and native builds")

Looks right, what is the impact on existing users doing current cross builds?

author
#16 lore raw

RE: [PATCH v4 1/2] config: correct cpu instruction set for cross build

Quoted 16 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Friday, December 8, 2023 6:41 AM
To: Joyce Kong <[email protected]>
Cc: [email protected]; Ruifeng Wang <[email protected]>; [email protected]; [email protected]; nd <[email protected]>; [email protected]
Subject: Re: [PATCH v4 1/2] config: correct cpu instruction set for cross build

Quoted 4 lines · On Tue, 5 Dec 2023 03:52:58 +0000 Joyce Kong <[email protected]> wrote:

The platform value would be 'native' only when not cross build. Move the operation about modifying cpu_instruction_set while platform equals 'native' to the not cross build branch.

Quoted 8 lines
Quoted 6 lines
Fixes bf66003b51ec ("build: use platform for generic and native

builds")
Cc: [email protected]

Looks right, what is the impact on existing users doing current cross builds?

The original operation changes cpu_instruction_set to 'native' when both 'platform == native' and 'cpu_instruction_set == auto'.
There was no impact on the existing users for current cross build, as the cross files set cpu field to a specific arch, such as 'armv8-a', and this didn't trigger the modification for cpu_instruction_set.
However, if we want to use a common arch in cross files like 'auto', the modification operation would override 'native' value to cpu_instruction_set and b7676fcccab4 ("config: verify machine arch flag") would break the build as it tries to test -march=native.

Quoted 2 lines
#17 lore raw

RE: [PATCH v4 1/2] config: correct cpu instruction set for cross build

Quoted 41 lines

-----Original Message-----
From: Joyce Kong <[email protected]>
Sent: Friday, December 8, 2023 8:21 AM
To: Stephen Hemminger <[email protected]>
Cc: [email protected]; Ruifeng Wang <[email protected]>; [email protected]; [email protected]; nd <[email protected]>; [email protected]
Subject: [EXT] RE: [PATCH v4 1/2] config: correct cpu instruction set for cross build

External Email

----------------------------------------------------------------------

Quoted 8 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Friday, December 8, 2023 6:41 AM
To: Joyce Kong <[email protected]>
Cc: [email protected]; Ruifeng Wang <[email protected]>; [email protected]; [email protected]; nd <[email protected]>; [email protected]
Subject: Re: [PATCH v4 1/2] config: correct cpu instruction set for cross

build

Quoted 8 lines
Quoted 4 lines · On Tue, 5 Dec 2023 03:52:58 +0000 Joyce Kong <[email protected]> wrote:

The platform value would be 'native' only when not cross build. Move the operation about modifying cpu_instruction_set while platform equals 'native' to the not cross build branch.

Quoted 8 lines
Quoted 6 lines
Fixes bf66003b51ec ("build: use platform for generic and native

builds")
Cc: [email protected]

Looks right, what is the impact on existing users doing current cross builds?

Quoted 12 lines

The original operation changes cpu_instruction_set to 'native' when both 'platform == native' and 'cpu_instruction_set == auto'.
There was no impact on the existing users for current cross build, as the cross files set cpu field to a specific arch, such as 'armv8-a', and this didn't trigger the modification for cpu_instruction_set.
However, if we want to use a common arch in cross files like 'auto', the modification operation would override 'native' value to cpu_instruction_set and b7676fcccab4 ("config: verify machine arch flag") would break the build as it tries to test -march=native.

Quoted 2 lines
#18 lore raw

Re: [PATCH v4 1/2] config: correct cpu instruction set for cross build

Quoted 24 lines
Quoted 24 lines
Quoted 4 lines
Quoted 4 lines

The platform value would be 'native' only when not cross build. Move the operation about modifying cpu_instruction_set while platform equals 'native' to the not cross build branch.

Quoted 8 lines
Quoted 6 lines
Fixes bf66003b51ec ("build: use platform for generic and native

builds")
Cc: [email protected]

Looks right, what is the impact on existing users doing current cross builds?

The original operation changes cpu_instruction_set to 'native' when both 'platform == native' and 'cpu_instruction_set == auto'.
There was no impact on the existing users for current cross build, as the cross files set cpu field to a specific arch, such as 'armv8-a', and this didn't trigger the modification for cpu_instruction_set.
However, if we want to use a common arch in cross files like 'auto', the modification operation would override 'native' value to cpu_instruction_set and b7676fcccab4 ("config: verify machine arch flag") would break the build as it tries to test -march=native.

Quoted 1 line
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Applied without the second patch of the series, thanks.

author
#19 lore raw

PATCH v4 2/2 config/arm: use common cpu arch for cross files

In reply to Joyce Kong

The cpu info in some cross files is inconsistent with that in SoC flags. The mismatch doesn't cause any issue because the cpu field in the cross file takes no effect and machine_args in config/arm/meson.build actually works. Use a common one in cross files to remove any confusion.

---
 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(-)
config/arm/arm32_armv8_linux_gcc +1 -1
index 269a60ba19..af1c8b68c3 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch32'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_altra_linux_gcc +1 -1
index ce0667ebe2..972de20614 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.2-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_ampereone_linux_gcc +1 -1
index 8964432a74..f1235993d8 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.6-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_armada_linux_gcc +1 -1
index 635b4946a3..aca498a3db 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'aarch64'
 endian = 'little'
 
 [properties]
config/arm/arm64_armv8_linux_clang_ubuntu +1 -1
index 86ae43937b..3d52a5e32e 100644
@@ -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]
config/arm/arm64_armv8_linux_gcc +1 -1
index 529694b49d..98efa7fd2d 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_bluefield3_linux_gcc +1 -1
index 775cf5883d..cf58b4aa6b 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.4-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_bluefield_linux_gcc +1 -1
index 1286227915..d38922fea5 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cdx_linux_gcc +1 -1
index 8e6d619dae..be2aa56430 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_centriq2400_linux_gcc +1 -1
index bc8737e072..ad08b2b83c 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cn10k_linux_gcc +1 -1
index fa904af5d0..ad403c3aa0 100644
@@ -10,7 +10,7 @@ cmake = 'cmake'
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8.6-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_cn9k_linux_gcc +1 -1
index 646ce4b5d3..f2947e94c0 100644
@@ -10,7 +10,7 @@ cmake = 'cmake'
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_dpaa_linux_gcc +1 -1
index 8465b5097b..e60edbaafb 100644
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_emag_linux_gcc +1 -1
index 248169ed68..10e2e83b56 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_ft2000plus_linux_gcc +1 -1
index ae9f779056..8d65d18b8d 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_graviton2_linux_gcc +1 -1
index fdb298bb11..adc96598e0 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_graviton3_linux_gcc +1 -1
index 19b422075d..805566ae85 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_hip10_linux_gcc +1 -1
index 2943e4abbf..46764941b6 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'aarch64'
 endian = 'little'
 
 [properties]
config/arm/arm64_kunpeng920_linux_gcc +1 -1
index 193fb48a61..ea0f3f96d6 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_kunpeng930_linux_gcc +1 -1
index e4281ceb4f..3a928ee998 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_n1sdp_linux_gcc +1 -1
index 2806a4241b..6eef27291a 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_n2_linux_gcc +1 -1
index 7404bd197b..111ae52c5f 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_stingray_linux_gcc +1 -1
index 08148b5c3d..41903aaa1f 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderx2_linux_gcc +1 -1
index 32ae938e95..eb07a59da0 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderxt83_linux_gcc +1 -1
index e9d9e62d44..cd4f9c2acb 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_thunderxt88_linux_gcc +1 -1
index c6e5a5656a..b9e0d554a4 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
config/arm/arm64_tys2500_linux_gcc +1 -1
index fce85fb0d8..994803d363 100644
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'
 endian = 'little'
 
 [properties]
Signature · 1 line
2.25.1
Acked-by on v4 2/2
#20 lore raw

Re: [PATCH v4 2/2] config/arm: use common cpu arch for cross files

Quoted 9 lines · On Tue, 5 Dec 2023 03:52:59 +0000 Joyce Kong <[email protected]> wrote:

The cpu info in some cross files is inconsistent with that in SoC flags. The mismatch doesn't cause any issue because the cpu field in the cross file takes no effect and machine_args in config/arm/meson.build actually works. Use a common one in cross files to remove any confusion.

Good to see consolidation instead of copy/paste.

#21 lore raw

RE: [EXT] Re: [PATCH v4 2/2] config/arm: use common cpu arch for cross files

Quoted 24 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Friday, December 8, 2023 4:12 AM
To: Joyce Kong <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Honnappa Nagarahalli <[email protected]>
Subject: [EXT] Re: [PATCH v4 2/2] config/arm: use common cpu arch for cross files

External Email

----------------------------------------------------------------------

Quoted 6 lines · On Tue, 5 Dec 2023 03:52:59 +0000 Joyce Kong <[email protected]> wrote:

The cpu info in some cross files is inconsistent with that in SoC flags. The mismatch doesn't cause any issue because the cpu field in the cross file takes no effect and machine_args in config/arm/meson.build actually works. Use a common one in cross files to remove any confusion.

Quoted 7 lines
Quoted 3 lines

Good to see consolidation instead of copy/paste.

#22 lore raw

Re: [PATCH v4 2/2] config/arm: use common cpu arch for cross files

In reply to Joyce Kong

05/12/2023 04:52, Joyce Kong:

Quoted 9 lines

The cpu info in some cross files is inconsistent with that in SoC flags. The mismatch doesn't cause any issue because the cpu field in the cross file takes no effect and machine_args in config/arm/meson.build actually works. Use a common one in cross files to remove any confusion.

[...]

config/arm/arm64_armada_linux_gcc pcap-config = '' · line 13

Quoted 8 lines
config/arm/arm64_armada_linux_gcc +1 -1
@@ -10,7 +10,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'aarch64'

Why aarch64 here and below?

Quoted 8 lines
config/arm/arm64_armv8_linux_clang_ubuntu +1 -1
@@ -10,7 +10,7 @@ pkgconfig = 'aarch64-linux-gnu-pkg-config'
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'

[...]

Quoted 8 lines
config/arm/arm64_hip10_linux_gcc +1 -1
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'aarch64'
#23 lore raw

RE: [PATCH v4 2/2] config/arm: use common cpu arch for cross files

Hi Thomas,

Quoted 7 lines

Review

Quoted 5 lines

[host_machine]
system = 'linux'
cpu_family = 'aarch64'

(quoted diff) +1 -1
-cpu = 'armv8-a'
+cpu = 'aarch64'

Why aarch64 here and below?

Joyce is no longer with Arm, and we have not been able to figure out this patch. I think the first patch of this series makes sense. This second patch to us looks like a nice to have, rather than something that fixes an issue. Therefore, we would like to pull this patch out of the series and leave first patch intact.
Any concerns/comments on that?

Quoted 21 lines
Quoted 9 lines
config/arm/arm64_armv8_linux_clang_ubuntu +1 -1
@@ -10,7 +10,7 @@ pkgconfig = 'aarch64-linux-gnu-pkg-config'
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'auto'

[...]

Quoted 8 lines
config/arm/arm64_hip10_linux_gcc +1 -1
@@ -9,7 +9,7 @@ pcap-config = ''
 [host_machine]
 system = 'linux'
 cpu_family = 'aarch64'
-cpu = 'armv8-a'
+cpu = 'aarch64'
#24 lore raw

Re: [PATCH v4 2/2] config/arm: use common cpu arch for cross files

22/02/2024 22:38, Wathsala Wathawana Vithanage:

Quoted 10 lines

Hi Thomas,

Quoted 7 lines

Review

Quoted 5 lines

[host_machine]
system = 'linux'
cpu_family = 'aarch64'

(quoted diff) +1 -1
-cpu = 'armv8-a'
+cpu = 'aarch64'

Why aarch64 here and below?

Quoted 6 lines

Joyce is no longer with Arm, and we have not been able to figure out this patch. I think the first patch of this series makes sense. This second patch to us looks like a nice to have, rather than something that fixes an issue. Therefore, we would like to pull this patch out of the series and leave first patch intact.
Any concerns/comments on that?

OK
What will become this second patch?

#25 lore raw

RE: [PATCH v4 2/2] config/arm: use common cpu arch for cross files

Quoted 10 lines
Quoted 6 lines

Joyce is no longer with Arm, and we have not been able to figure out this patch. I think the first patch of this series makes sense. This second patch to us looks like a nice to have, rather than something that fixes an issue. Therefore, we would like to pull this patch out of the series and leave first patch intact.
Any concerns/comments on that?

OK
What will become this second patch?

I will suppress patch 2/2.
Thanks.

#26 lore raw

RE: [PATCH v4 2/2] config/arm: use common cpu arch for cross files

Quoted 6 lines
Quoted 4 lines

OK
What will become this second patch?

I will suppress patch 2/2.
Thanks.

I'm not allowed to suppress it, perhaps someone with admin privileges could do it.

#27 lore raw

Re: [PATCH v4 2/2] config/arm: use common cpu arch for cross files

06/03/2024 16:04, Wathsala Wathawana Vithanage:

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines

OK
What will become this second patch?

I will suppress patch 2/2.
Thanks.

I'm not allowed to suppress it, perhaps someone with admin privileges could do it.

We don't suppress anything :)
I can change the status to rejected but why not continuing this cleanup?