mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-05 02:20:30 +00:00
arm/trusted-services: Fix 'no such file' when building libts
The libts recipe assumes generated cmake file will be suffixed with '-noconfig'. This is only true when building with the default type i.e. "". Check which target cmake file has been generated before trying to patch it. This fixes 'no such file' error when building with an explicit type (Debug, Release, etc). Signed-off-by: Adam Johnston <adam.johnston@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -24,11 +24,14 @@ do_install:append () {
|
||||
fi
|
||||
|
||||
# Move the dynamic libraries into the standard place.
|
||||
# Update a cmake file to use correct paths.
|
||||
install -d ${D}${libdir}
|
||||
mv ${D}${TS_INSTALL}/lib/libts* ${D}${libdir}
|
||||
|
||||
sed -i -e "s#/${TS_ENV}##g" ${D}${TS_INSTALL}/lib/cmake/libts/libtsTargets-noconfig.cmake
|
||||
# Update generated cmake file to use correct paths.
|
||||
target_cmake=$(find ${D}${TS_INSTALL}/lib/cmake/libts -type f -iname "libtsTargets-*.cmake")
|
||||
if [ ! -z "$target_cmake" ]; then
|
||||
sed -i -e "s#/${TS_ENV}##g" $target_cmake
|
||||
fi
|
||||
}
|
||||
|
||||
inherit ${@oe.utils.conditional('VIRTUAL-RUNTIME_dev_manager', 'busybox-mdev', '', 'useradd', d)}
|
||||
|
||||
Reference in New Issue
Block a user