meta-parsec: Convert to new override syntax

Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Armin Kuster
2021-07-29 16:33:12 -07:00
parent 119cabaf29
commit 90fe17c347
2 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -53,7 +53,7 @@ other layers needed. e.g.:
To include the Parsec service into your image add following into the To include the Parsec service into your image add following into the
local.conf: local.conf:
IMAGE_INSTALL_append = " parsec-service" IMAGE_INSTALL:append = " parsec-service"
The Parsec service will be deployed into the image built with all the supported The Parsec service will be deployed into the image built with all the supported
providers and with the default config file from the Parsec repository: providers and with the default config file from the Parsec repository:
@@ -86,7 +86,7 @@ Manual testing with runqemu
This layer also contains a recipe for pasec-tool which can be used for This layer also contains a recipe for pasec-tool which can be used for
manual testing of the Parsec service: manual testing of the Parsec service:
IMAGE_INSTALL_append += " parsec-tools" IMAGE_INSTALL:append += " parsec-tools"
There are a series of Parsec Demo videos showing how to use parsec-tool There are a series of Parsec Demo videos showing how to use parsec-tool
to test the Parsec service base functionality: to test the Parsec service base functionality:
@@ -103,7 +103,7 @@ enabled. No changes required for manual testing.
The Software HSM can be used for manual testing of the provider by The Software HSM can be used for manual testing of the provider by
including it into your test image: including it into your test image:
IMAGE_INSTALL_append += " softhsm" IMAGE_INSTALL:append += " softhsm"
Inside the running VM: Inside the running VM:
- Stop Parsec - Stop Parsec
@@ -134,7 +134,7 @@ systemctl start parsec
The IBM Software TPM service can be used for manual testing of the provider by The IBM Software TPM service can be used for manual testing of the provider by
including it into your test image: including it into your test image:
IMAGE_INSTALL_append += " ibmswtpm2 tpm2-tools libtss2 libtss2-tcti-mssim" IMAGE_INSTALL:append += " ibmswtpm2 tpm2-tools libtss2 libtss2-tcti-mssim"
Inside the running VM: Inside the running VM:
- Stop Parsec - Stop Parsec
@@ -15,7 +15,7 @@ DEPENDS = "tpm2-tss clang-native"
CARGO_BUILD_FLAGS += " --features all-providers,cryptoki/generate-bindings,tss-esapi/generate-bindings" CARGO_BUILD_FLAGS += " --features all-providers,cryptoki/generate-bindings,tss-esapi/generate-bindings"
inherit systemd inherit systemd
SYSTEMD_SERVICE_${PN} = "parsec.service" SYSTEMD_SERVICE:${PN} = "parsec.service"
inherit update-rc.d inherit update-rc.d
INITSCRIPT_NAME = "parsec" INITSCRIPT_NAME = "parsec"
@@ -24,7 +24,7 @@ INITSCRIPT_NAME = "parsec"
# The file should also be included into SRC_URI then # The file should also be included into SRC_URI then
PARSEC_CONFIG ?= "${S}/config.toml" PARSEC_CONFIG ?= "${S}/config.toml"
do_install_append () { do_install:append () {
# Binaries # Binaries
install -d -m 700 -o parsec -g parsec "${D}${libexecdir}/parsec" install -d -m 700 -o parsec -g parsec "${D}${libexecdir}/parsec"
install -m 700 -o parsec -g parsec "${WORKDIR}/build/target/${CARGO_TARGET_SUBDIR}/parsec" ${D}${libexecdir}/parsec/parsec install -m 700 -o parsec -g parsec "${WORKDIR}/build/target/${CARGO_TARGET_SUBDIR}/parsec" ${D}${libexecdir}/parsec/parsec
@@ -52,10 +52,10 @@ do_install_append () {
inherit useradd inherit useradd
USERADD_PACKAGES = "${PN}" USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "-r -g parsec -s /bin/false -d ${localstatedir}/lib/parsec parsec" USERADD_PARAM:${PN} = "-r -g parsec -s /bin/false -d ${localstatedir}/lib/parsec parsec"
GROUPADD_PARAM_${PN} = "-r parsec" GROUPADD_PARAM:${PN} = "-r parsec"
FILES_${PN} += " \ FILES:${PN} += " \
${sysconfdir}/parsec/config.toml \ ${sysconfdir}/parsec/config.toml \
${libexecdir}/parsec/parsec \ ${libexecdir}/parsec/parsec \
${systemd_unitdir}/system/parsec.service \ ${systemd_unitdir}/system/parsec.service \