mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-01-11 15:00:39 +00:00
arm/trusted-services: add libpsats recipe
TS upstream introduced a new library which carries PSA clients. This library is to be used by linux user-space applications interfacing to PSA providers running in the SWd. Modify dependee to use the new library. Signed-off-by: Gyorgy Szing <gyorgy.szing@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
require ts-arm-platforms.inc
|
||||
29
meta-arm/recipes-security/trusted-services/libpsats_git.bb
Normal file
29
meta-arm/recipes-security/trusted-services/libpsats_git.bb
Normal file
@@ -0,0 +1,29 @@
|
||||
DESCRIPTION = "Trusted Services libpsats library for the arm-linux enviroment. \
|
||||
Libpsats carries psa client implementations to be used by linux user-space applications."
|
||||
|
||||
TS_ENV = "arm-linux"
|
||||
|
||||
require trusted-services.inc
|
||||
|
||||
OECMAKE_SOURCEPATH="${S}/deployments/libpsats/${TS_ENV}"
|
||||
|
||||
DEPENDS += "libts"
|
||||
|
||||
do_install:append () {
|
||||
# Move the dynamic libraries into the standard place.
|
||||
install -d ${D}${libdir}
|
||||
mv ${D}${TS_INSTALL}/lib/libpsats* ${D}${libdir}
|
||||
|
||||
# Update generated cmake file to use correct paths.
|
||||
target_cmake=$(find ${D}${TS_INSTALL}/lib/cmake/libpsats -type f -iname "libpsatsTargets-*.cmake")
|
||||
if [ ! -z "$target_cmake" ]; then
|
||||
sed -i -e "s#/${TS_ENV}##g" $target_cmake
|
||||
fi
|
||||
|
||||
# Remove files installed by libts too.
|
||||
rm ${D}${TS_INSTALL}/include/util.h
|
||||
rm ${D}${TS_INSTALL}/include/compiler.h
|
||||
}
|
||||
|
||||
FILES:${PN} = "${libdir}/libpsats*.so.* ${nonarch_base_libdir}/udev/rules.d/"
|
||||
FILES:${PN}-dev = "${TS_INSTALL}/lib/cmake ${TS_INSTALL}/include ${libdir}/libpsats*.so"
|
||||
@@ -54,5 +54,5 @@ EXTRA_OECMAKE += "${@get_ts_toolchain_option(d)}"
|
||||
|
||||
# Paths to pre-built dependencies required by some TS SPs/tools
|
||||
EXTRA_OECMAKE += "-Dlibts_ROOT=${STAGING_DIR_HOST}${TS_INSTALL}/lib/cmake/libts/ \
|
||||
|
||||
-Dlibpsats_ROOT=${STAGING_DIR_HOST}${TS_INSTALL}/lib/cmake/libpsats/ \
|
||||
"
|
||||
|
||||
@@ -7,8 +7,8 @@ TS_ENV = "arm-linux"
|
||||
require trusted-services.inc
|
||||
|
||||
DEPENDS += "python3-jsonschema-native python3-jinja2-native"
|
||||
DEPENDS += "libts"
|
||||
RDEPENDS:${PN} += "libts"
|
||||
DEPENDS += "libpsats"
|
||||
RDEPENDS:${PN} += "libpsats"
|
||||
|
||||
OECMAKE_SOURCEPATH = "${S}/deployments/ts-demo/${TS_ENV}"
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ require trusted-services.inc
|
||||
|
||||
DEPENDS += "python3-jsonschema-native python3-jinja2-native"
|
||||
|
||||
DEPENDS += "libts"
|
||||
RDEPENDS:${PN} += "libts"
|
||||
DEPENDS += "libpsats"
|
||||
RDEPENDS:${PN} += "libpsats"
|
||||
|
||||
SRC_URI += "git://github.com/ARM-software/psa-arch-tests.git;name=psatest;protocol=https;branch=main;destsuffix=git/psatest \
|
||||
file://0001-Pass-Yocto-build-settings-to-psa-arch-tests-native.patch;patchdir=../psatest \
|
||||
|
||||
Reference in New Issue
Block a user