diff options
| author | Anton Antonov <anton.antonov@arm.com> | 2025-05-19 09:45:53 +0100 |
|---|---|---|
| committer | Scott Murray <scott.murray@konsulko.com> | 2025-07-04 12:41:20 -0400 |
| commit | b1f1c7a304de33916040928ea7182c03580efb28 (patch) | |
| tree | 24eca8f046effe5ffefd858b37379e72d1795a1d | |
| parent | 0272225ccdfb31a84408351c5911920a68249cc7 (diff) | |
| download | meta-security-b1f1c7a304de33916040928ea7182c03580efb28.tar.gz | |
parsec-service: update PACKAGECONFIG options as lists of cargo build features
After commit 7a2b9acef2 "cargo: pass PACKAGECONFIG_CONFARGS to cargo build"
we don't need to include Parsec cargo build features into CARGO_BUILD_FLAGS.
Let's update PACKAGECONFIG options as lists of features.
A small fix in readme.md as well.
Signed-off-by: Anton Antonov <Anton.Antonov@arm.com>
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
| -rw-r--r-- | meta-parsec/README.md | 4 | ||||
| -rw-r--r-- | meta-parsec/recipes-parsec/parsec-service/parsec-service_1.4.1.bb | 15 |
2 files changed, 8 insertions, 11 deletions
diff --git a/meta-parsec/README.md b/meta-parsec/README.md index 9dea718..a5472ae 100644 --- a/meta-parsec/README.md +++ b/meta-parsec/README.md | |||
| @@ -112,7 +112,7 @@ You might need to change permissions or add the account into `kvm` unix group. | |||
| 112 | 112 | ||
| 113 | - Add into your `local.conf`: | 113 | - Add into your `local.conf`: |
| 114 | ``` | 114 | ``` |
| 115 | INHERIT += "testimage" | 115 | IMAGE_CLASSES += "testimage" |
| 116 | TEST_SUITES = "ping ssh parsec" | 116 | TEST_SUITES = "ping ssh parsec" |
| 117 | ``` | 117 | ``` |
| 118 | - Build your image | 118 | - Build your image |
| @@ -129,7 +129,7 @@ bitbake <your-image> -c testimage | |||
| 129 | - Add into your `local.conf`: | 129 | - Add into your `local.conf`: |
| 130 | ``` | 130 | ``` |
| 131 | DISTRO_FEATURES += " tpm2" | 131 | DISTRO_FEATURES += " tpm2" |
| 132 | INHERIT += "testimage" | 132 | IMAGE_CLASSES += "testimage" |
| 133 | TEST_SUITES = "ping ssh parsec" | 133 | TEST_SUITES = "ping ssh parsec" |
| 134 | ``` | 134 | ``` |
| 135 | - Build security-parsec-image image | 135 | - Build security-parsec-image image |
diff --git a/meta-parsec/recipes-parsec/parsec-service/parsec-service_1.4.1.bb b/meta-parsec/recipes-parsec/parsec-service/parsec-service_1.4.1.bb index 49467cd..baa02fb 100644 --- a/meta-parsec/recipes-parsec/parsec-service/parsec-service_1.4.1.bb +++ b/meta-parsec/recipes-parsec/parsec-service/parsec-service_1.4.1.bb | |||
| @@ -21,15 +21,12 @@ PACKAGECONFIG ??= "PKCS11 MBED-CRYPTO" | |||
| 21 | have_TPM = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'TPM', '', d)}" | 21 | have_TPM = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'TPM', '', d)}" |
| 22 | PACKAGECONFIG:append = " ${@bb.utils.contains('BBFILE_COLLECTIONS', 'tpm-layer', '${have_TPM}', '', d)}" | 22 | PACKAGECONFIG:append = " ${@bb.utils.contains('BBFILE_COLLECTIONS', 'tpm-layer', '${have_TPM}', '', d)}" |
| 23 | 23 | ||
| 24 | PACKAGECONFIG[ALL] = "all-providers cryptoki/generate-bindings tss-esapi/generate-bindings,,tpm2-tss libts,tpm2-tss libtss2-tcti-device libts" | 24 | PACKAGECONFIG[ALL] = "-F all-providers -F cryptoki/generate-bindings -F tss-esapi/generate-bindings,,tpm2-tss libts,tpm2-tss libtss2-tcti-device libts" |
| 25 | PACKAGECONFIG[TPM] = "tpm-provider tss-esapi/generate-bindings,,tpm2-tss,tpm2-tss libtss2-tcti-device" | 25 | PACKAGECONFIG[TPM] = "-F tpm-provider -F tss-esapi/generate-bindings,,tpm2-tss,tpm2-tss libtss2-tcti-device" |
| 26 | PACKAGECONFIG[PKCS11] = "pkcs11-provider cryptoki/generate-bindings," | 26 | PACKAGECONFIG[PKCS11] = "-F pkcs11-provider -F cryptoki/generate-bindings," |
| 27 | PACKAGECONFIG[MBED-CRYPTO] = "mbed-crypto-provider," | 27 | PACKAGECONFIG[MBED-CRYPTO] = "-F mbed-crypto-provider," |
| 28 | PACKAGECONFIG[CRYPTOAUTHLIB] = "cryptoauthlib-provider," | 28 | PACKAGECONFIG[CRYPTOAUTHLIB] = "-F cryptoauthlib-provider," |
| 29 | PACKAGECONFIG[TS] = "trusted-service-provider,,libts,libts" | 29 | PACKAGECONFIG[TS] = "-F trusted-service-provider,,libts,libts" |
| 30 | |||
| 31 | PARSEC_FEATURES = "${@d.getVar('PACKAGECONFIG_CONFARGS').strip().replace(' ', ',')}" | ||
| 32 | CARGO_BUILD_FLAGS += " --features ${PARSEC_FEATURES}" | ||
| 33 | 30 | ||
| 34 | export BINDGEN_EXTRA_CLANG_ARGS | 31 | export BINDGEN_EXTRA_CLANG_ARGS |
| 35 | target = "${@d.getVar('TARGET_SYS').replace('-', ' ')}" | 32 | target = "${@d.getVar('TARGET_SYS').replace('-', ' ')}" |
