Skip to contentSkip to conversation

tune: octeontx2: remove crypto from TUNE_FEATURES

PATCH In review Ruiqiang Hao 2 participants 4 messages Jul 3, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tune: octeontx2: remove crypto from TUNE_FEATURES

From: Ruiqiang Hao <[email protected]>

Since GCC's configuration includes the crypto feature when specifying '-mcpu=octeontx2', there's no need to additionally include this feature in TUNE_FEATURES. Removing crypto to fix the following error:

aarch64-wrs-linux-clang: error: unsupported argument 'octeontx2+crypto' for option '-mcpu='

---
 meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc +1 -1
index e9d7a59c51..d51d19b980 100644
@@ -9,6 +9,6 @@ require conf/machine/include/arm/arch-armv8-2a.inc
 AVAILTUNES += "octeontx2"
 ARMPKGARCH:tune-octeontx2             = "octeontx2"
 # We do not want -march since -mcpu is added above to cover for it
-TUNE_FEATURES:tune-octeontx2          = "aarch64 crypto octeontx2"
+TUNE_FEATURES:tune-octeontx2          = "aarch64 octeontx2"
 PACKAGE_EXTRA_ARCHS:tune-octeontx2    = "${PACKAGE_EXTRA_ARCHS:tune-armv8-2a-crypto} octeontx2"
 BASE_LIB:tune-octeontx2               = "lib64"
Signature · 1 line
2.45.0
#1 lore raw
Quoted 8 lines · Ruiqiang Hao via lists.openembedded.org

From: Ruiqiang Hao <[email protected]>

Since GCC's configuration includes the crypto feature when specifying '-mcpu=octeontx2', there's no need to additionally include this feature in TUNE_FEATURES. Removing crypto to fix the following error:

aarch64-wrs-linux-clang: error: unsupported argument 'octeontx2+crypto' for option '-mcpu='

This is a clang problem. It should be fixed in clang, not here. Additionally we check for 'crypto' in TUNE_FEATURES in many recipes for making specific tweaks, they will fail for octeonx2 if we apply this. See
https://github.com/kraj/meta-clang/blob/master/classes/clang.bbclass#L49-L53

Quoted 30 lines
---
 meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc +1 -2
index e9d7a59c51..d51d19b980 100644
@@ -9,6 +9,6 @@ require conf/machine/include/arm/arch-armv8-2a.inc
 AVAILTUNES += "octeontx2"
 ARMPKGARCH:tune-octeontx2             = "octeontx2"
 # We do not want -march since -mcpu is added above to cover for it
-TUNE_FEATURES:tune-octeontx2          = "aarch64 crypto octeontx2"
+TUNE_FEATURES:tune-octeontx2          = "aarch64 octeontx2"
 PACKAGE_EXTRA_ARCHS:tune-octeontx2    = "${PACKAGE_EXTRA_ARCHS:tune-armv8-2a-crypto} octeontx2"
 BASE_LIB:tune-octeontx2               = "lib64"
--

2.45.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201448): https://lists.openembedded.org/g/openembedded-core/message/201448
Mute This Topic: https://lists.openembedded.org/mt/107012841/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

This is a clang problem. It should be fixed in clang, not here. Additionally we check for 'crypto' in TUNE_FEATURES in many recipes for making specific tweaks, they will fail for octeonx2 if we apply this. See https://github.com/kraj/meta-clang/blob/master/classes/clang.bbclass#L49-L53
Hi kraj,

Thanks for your prompt feedback.
I have limited experience with Clang, could you provide some suggestions for fixing this issue? Additionally, this link is not related to the TUNE_FEATURES check for octeontx2.
Could you provide one name of recipe that checks whether TUNE_FEATURES includes 'crypto' to help me with troubleshooting?

B.R.
Ruiqiang
________________________________
From: Khem Raj <[email protected]>
Sent: Wednesday, July 3, 2024 11:30
To: Hao, Ruiqiang <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: [OE-core] [PATCH] tune: octeontx2: remove crypto from TUNE_FEATURES

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 8 lines · Ruiqiang Hao via lists.openembedded.org

From: Ruiqiang Hao <[email protected]>

Since GCC's configuration includes the crypto feature when specifying '-mcpu=octeontx2', there's no need to additionally include this feature in TUNE_FEATURES. Removing crypto to fix the following error:

aarch64-wrs-linux-clang: error: unsupported argument 'octeontx2+crypto' for option '-mcpu='

This is a clang problem. It should be fixed in clang, not here. Additionally we check for 'crypto' in TUNE_FEATURES in many recipes for making specific tweaks, they will fail for octeonx2 if we apply this. See
https://github.com/kraj/meta-clang/blob/master/classes/clang.bbclass#L49-L53

Quoted 30 lines
---
 meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc +1 -2
index e9d7a59c51..d51d19b980 100644
@@ -9,6 +9,6 @@ require conf/machine/include/arm/arch-armv8-2a.inc
 AVAILTUNES += "octeontx2"
 ARMPKGARCH:tune-octeontx2             = "octeontx2"
 # We do not want -march since -mcpu is added above to cover for it
-TUNE_FEATURES:tune-octeontx2          = "aarch64 crypto octeontx2"
+TUNE_FEATURES:tune-octeontx2          = "aarch64 octeontx2"
 PACKAGE_EXTRA_ARCHS:tune-octeontx2    = "${PACKAGE_EXTRA_ARCHS:tune-armv8-2a-crypto} octeontx2"
 BASE_LIB:tune-octeontx2               = "lib64"
--

2.45.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201448): https://lists.openembedded.org/g/openembedded-core/message/201448
Mute This Topic: https://lists.openembedded.org/mt/107012841/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 6 lines · Ruiqiang

This is a clang problem. It should be fixed in clang, not here. Additionally we check for 'crypto' in TUNE_FEATURES in many recipes for making specific tweaks, they will fail for octeonx2 if we apply this. See
https://github.com/kraj/meta-clang/blob/master/classes/clang.bbclass#L49-L53
Hi kraj,

Quoted 8 lines

Thanks for your prompt feedback.
I have limited experience with Clang, could you provide some suggestions for fixing this issue?
Additionally, this link is not related to the TUNE_FEATURES check for octeontx2.
Could you provide one name of recipe that checks whether TUNE_FEATURES includes 'crypto' to help me with troubleshooting?

add it to TUNE_CCARGS:remove:toolchain-clang list
-mcpu=octeontx2+crypto

then add to TUNE_CCARGS e.g
TUNE_CCARGS:append:toolchain-clang = "${@bb.utils.contains("TUNE_FEATURES", "octeontx2 crypto", " -mcpu=octeontx2", "", d)}"

Quoted 70 lines

B.R.
Ruiqiang
------------------------------
*From:* Khem Raj <[email protected]>
*Sent:* Wednesday, July 3, 2024 11:30
*To:* Hao, Ruiqiang <[email protected]>
*Cc:* [email protected] < [email protected]>
*Subject:* Re: [OE-core] [PATCH] tune: octeontx2: remove crypto from TUNE_FEATURES

CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 8 lines · Ruiqiang Hao via lists.openembedded.org

From: Ruiqiang Hao <[email protected]>

Since GCC's configuration includes the crypto feature when specifying '-mcpu=octeontx2', there's no need to additionally include this feature in TUNE_FEATURES. Removing crypto to fix the following error:

aarch64-wrs-linux-clang: error: unsupported argument 'octeontx2+crypto'

for option '-mcpu='

This is a clang problem. It should be fixed in clang, not here. Additionally we check for 'crypto' in TUNE_FEATURES in many recipes for making specific tweaks, they will fail for octeonx2 if we apply this. See

https://github.com/kraj/meta-clang/blob/master/classes/clang.bbclass#L49-L53

Review

Quoted 7 lines
---
 meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc

meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc require conf/machine/include/arm/arch-armv8-2a.inc · line 13

Quoted 10 lines

index e9d7a59c51..d51d19b980 100644

meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc +1 -1
@@ -9,6 +9,6 @@ require conf/machine/include/arm/arch-armv8-2a.inc
 AVAILTUNES += "octeontx2"
 ARMPKGARCH:tune-octeontx2             = "octeontx2"
 # We do not want -march since -mcpu is added above to cover for it
-TUNE_FEATURES:tune-octeontx2          = "aarch64 crypto octeontx2"
+TUNE_FEATURES:tune-octeontx2          = "aarch64 octeontx2"
 PACKAGE_EXTRA_ARCHS:tune-octeontx2    =

"${PACKAGE_EXTRA_ARCHS:tune-armv8-2a-crypto} octeontx2"

Quoted 8 lines
meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc +0 -1
 BASE_LIB:tune-octeontx2               = "lib64"
--

2.45.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#201448):

https://lists.openembedded.org/g/openembedded-core/message/201448

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/107012841/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-