On Tue, Jul 2, 2024 at 7:00 PM Ruiqiang Hao via lists.openembedded.org <[email protected]> wrote: > > 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 > > Signed-off-by: Ruiqiang Hao <[email protected]> > --- > meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc > b/meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc > index e9d7a59c51..d51d19b980 100644 > --- a/meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc > +++ b/meta/conf/machine/include/arm/armv8-2a/tune-octeontx2.inc > @@ -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 (#201450): https://lists.openembedded.org/g/openembedded-core/message/201450 Mute This Topic: https://lists.openembedded.org/mt/107012841/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
