trustfence-stm-signtools: rework package so that the tools are accessible

The STM signtools are precompiled binaries with a fixed RPATH to look for
dynamic libraries.
When the binaries are installed to the regular ${bindir} (either native or
nativesdk), additional toolchain libraries in the regular ${libdir} folder
confuse the binaries, resulting in segmentation faults when running them
or missing symbols.

The package has been reworked to place the directory structure expected
by the binaries, in a subfolder "stm" within the ${bindir}.
Two wrapper scripts with the names of the binaries (STM32MP_KeyGen_CLI and
STM32MP_SigningTool_CLI) have been created to run the binaries in the new
subfolder.
Package version has been bumped to 1.1.

While on it, remove the 'do_install' from trustfence-stm-signtools.inc
which is not needed because the 'bin_package' class already provides the
same functionality.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8720
This commit is contained in:
Hector Palacios 2023-10-02 09:35:29 +02:00
parent 6b55769447
commit d3a7fef257
3 changed files with 2 additions and 11 deletions

View File

@ -10,18 +10,9 @@ PKGNAME = "trustfence-stm-signtools"
# tarball # tarball
SRC_URI = "${DIGI_PKG_SRC}/${PKGNAME}-${PV}.tar.gz" SRC_URI = "${DIGI_PKG_SRC}/${PKGNAME}-${PV}.tar.gz"
SRC_URI[md5sum] = "5621d99156b75e69eecbae721475463b" SRC_URI[md5sum] = "38ce0cd682350b15e773e725ee842da4"
SRC_URI[sha256sum] = "5c04b16934aa316d2586980f93680e90af1968bcb9b76c18b9cecddbcf5d6a1b" SRC_URI[sha256sum] = "cc349bdcaa764d5af25b12ee9e0c143f93dc80d531f42f8a57a735e170cd378b"
S = "${WORKDIR}/${PKGNAME}-${PV}"
inherit bin_package inherit bin_package
INSANE_SKIP:${PN} = "already-stripped" INSANE_SKIP:${PN} = "already-stripped"
do_install() {
install -d ${D}${bindir}
install -m 0755 bin/* ${D}${bindir}
install -d ${D}${base_libdir}
install -m 0644 lib/* ${D}${base_libdir}
}