Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Anton Antonov" <anton.antonov@arm.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 2/2] cargo.bbclass: allow to avoid appending PACKAGECONFIG_CONFARGS
Date: Fri, 16 May 2025 10:47:26 -0700	[thread overview]
Message-ID: <13420.1747417646881312279@lists.openembedded.org> (raw)
In-Reply-To: <CANNYZj_L16xr8rTpsghREB6PmEE549BKZjPE4zLdszGbx2fpNw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

On Fri, May 16, 2025 at 10:19 AM, Alexander Kanavin wrote:

> 
> Can you put —features directly into packageconfig definitions? Does cargo
> accept multiple —features flags?

Oh, yes it works. Thanks. The only small problem is I can't use comma-separated features in  PACKAGECONFIG because it itself is comma-separated. So I have to add --features before each feature in the same line. It doesn't look bad if I use -F instead of --features though:

PACKAGECONFIG ??= "PKCS11 MBED-CRYPTO"
have_TPM = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'TPM', '', d)}"
PACKAGECONFIG:append = " ${@bb.utils.contains('BBFILE_COLLECTIONS', 'tpm-layer', '${have_TPM}', '', d)}"

PACKAGECONFIG[ALL] = "-F all-providers -F cryptoki/generate-bindings -F tss-esapi/generate-bindings,,tpm2-tss libts,tpm2-tss libtss2-tcti-device libts"
PACKAGECONFIG[TPM] = "-F tpm-provider -F tss-esapi/generate-bindings,,tpm2-tss,tpm2-tss libtss2-tcti-device"
PACKAGECONFIG[PKCS11] = "-F pkcs11-provider -F cryptoki/generate-bindings,"
PACKAGECONFIG[MBED-CRYPTO] = "-F mbed-crypto-provider,"
PACKAGECONFIG[CRYPTOAUTHLIB] = "-F cryptoauthlib-provider,"
PACKAGECONFIG[TS] = "-F trusted-service-provider,,libts,libts"

Anton

[-- Attachment #2: Type: text/html, Size: 1343 bytes --]

      parent reply	other threads:[~2025-05-16 17:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-20 16:55 [PATCH 1/2] cargo.bbclass: show PACKAGECONFIG_CONFARGS in bbnote martin.jansa
2025-03-20 16:55 ` [PATCH 2/2] cargo.bbclass: allow to avoid appending PACKAGECONFIG_CONFARGS martin.jansa
     [not found] ` <182E912DEB60EF95.20788@lists.openembedded.org>
2025-03-20 16:59   ` [OE-core] " Martin Jansa
2025-03-20 17:06     ` Richard Purdie
     [not found]     ` <182E91CCE4A2B275.19116@lists.openembedded.org>
2025-03-20 17:16       ` Richard Purdie
2025-03-20 17:36         ` Martin Jansa
2025-03-20 17:51           ` Jean-Pierre Geslin
2025-03-20 18:11           ` [OE-core] " Jean-Pierre Geslin
2025-03-24 18:55             ` Alexander Kanavin
2025-03-24 19:30               ` Martin Jansa
2025-03-24 22:29                 ` Richard Purdie
2025-03-31 16:18                 ` akuster808
2025-03-31 16:28                   ` Alexander Kanavin
2025-05-16 15:07                     ` Anton Antonov
2025-05-16 15:55                       ` [OE-core] " Alexander Kanavin
2025-05-16 16:39                         ` Anton Antonov
2025-05-16 17:19                           ` [OE-core] " Alexander Kanavin
2025-05-16 17:43                             ` Marko, Peter
2025-05-16 17:47                             ` Anton Antonov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13420.1747417646881312279@lists.openembedded.org \
    --to=anton.antonov@arm.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox