Hi Alex

> You can issue this in poky/meta and plenty of examples will come up:
> [ak@fedora meta]$ grep -ir PACKAGECONFIG *|grep class-native

I'm afraid I'm not quite with you. Searched poky by the following command and 
there is no example about how to config PACKAGECONFIG[xxx] for target or native 
separately. 
The result is all about how to config PACKAGECONFIG for target or native. 
----------------------------------------
$ grep -ir PACKAGECONFIG *|grep class-native
meta/recipes-support/libcap/libcap_2.64.bb:PACKAGECONFIG:class-native ??= ""
meta/recipes-support/vim/vim_8.2.bb:PACKAGECONFIG:class-native = ""
meta/recipes-support/sqlite/sqlite3.inc:PACKAGECONFIG:class-native ?= "fts4 
fts5 rtree dyn_ext"
......
----------------------------------------

But I think you mean not PACKAGECONFIG but PACKAGECONFIG[fips]. For example, in 
libcap_2.64.bb file: 
$ cat meta/recipes-support/libcap/libcap_2.64.bb
......
PACKAGECONFIG ??= "libidn  ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} 
"  //not here
......
PACKAGECONFIG[fips] = "--enable-fips140-mode 
--with-libdl-prefix=${STAGING_BASELIBDIR},--disable-fips140-mode"   //Your 
comment means modify here
.......

Did I misunderstand? 

Best regards
Lei

> -----Original Message-----
> From: [email protected]
> <[email protected]> On Behalf Of Alexander
> Kanavin
> Sent: Monday, May 9, 2022 4:44 PM
> To: Lei, Maohui <[email protected]>
> Cc: OE-core <[email protected]>
> Subject: Re: [OE-core] [PATCH v2] gnutls: Added fips support option.
> 
> On Mon, 9 May 2022 at 03:30, [email protected] <[email protected]>
> wrote:
> > > PACKAGECONFIG[fips] = "--enable-fips140-mode
> > > --with-libdl-prefix=${STAGING_BASELIBDIR},--disable-fips140-mode,gnu
> > > tls-nativ
> > > e"
> > > PACKAGECONFIG[fips-native] = "--enable-fips140-mode
> > > --with-libdl-prefix=${STAGING_BASELIBDIR},--disable-fips140-mode"
> >
> > I'm sorry that this way doesn’t work, because PACKAGECONFIG[fips-native]
> means PACKAGECONFIG is set for fips-native not for fips.
> > And I don't find any existing recipes that config PACKAGECONFIG[xxx] for 
> > native
> or target separately.
> > I wonder If you can tell me any recipe for reference.
> > Thank you.
> 
> You can issue this in poky/meta and plenty of examples will come up:
> [ak@fedora meta]$ grep -ir PACKAGECONFIG *|grep class-native
> 
> Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#165408): 
https://lists.openembedded.org/g/openembedded-core/message/165408
Mute This Topic: https://lists.openembedded.org/mt/90926966/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to