arm/trusted-services: Fix 'no such file' when building libts
cover arm/trusted-services: Fix 'no such file' when building libts
From: Adam Johnston <[email protected]>
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).
Adam Johnston (1):
arm/trusted-services: Fix 'no such file' when building libts
meta-arm/recipes-security/trusted-services/libts_git.bb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.38.1
PATCH 1/1 arm/trusted-services: Fix 'no such file' when building libts
From: Adam Johnston <[email protected]>
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).
--- meta-arm/recipes-security/trusted-services/libts_git.bb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
meta-arm/recipes-security/trusted-services/libts_git.bb +5 -2
@@ -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)}
Signature · 1 line
2.38.1
Jon Mason
AppliedQuoted 9 lines · On Fri, 16 Dec 2022 17:55:07 +0000, [email protected] wrote:
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).
[...]
Applied, thanks!
[1/1] arm/trusted-services: Fix 'no such file' when building libts
commit: 74f0ce702870b95cff0686873c7f5eed6bcd015c
Best regards,
Signature · 1 line
Jon Mason <[email protected]>
Jon Mason
AppliedQuoted 9 lines · On Fri, 16 Dec 2022 17:55:07 +0000, [email protected] wrote:
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).
[...]
Applied, thanks!
[1/1] arm/trusted-services: Fix 'no such file' when building libts
commit: 74f0ce702870b95cff0686873c7f5eed6bcd015c
Best regards,
Signature · 1 line
Jon Mason <[email protected]>
A message that is not in the archive (sent off-list or not yet received): [email protected]
Can we please backport this patch to langdale?
Thanks and Regards
Adam
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Adam Johnston via lists.yoctoproject.org
Sent: 16 December 2022 17:55
To: [email protected]; Ross Burton <[email protected]>
Cc: nd <[email protected]>; Adam Johnston <[email protected]>
Subject: [meta-arm] [PATCH 1/1] arm/trusted-services: Fix 'no such file' when building libts
From: Adam Johnston <[email protected]>
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).
--- meta-arm/recipes-security/trusted-services/libts_git.bb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
meta-arm/recipes-security/trusted-services/libts_git.bb +5 -2
@@ -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)}
--
2.38.1
Jon Mason
AppliedQuoted 9 lines · On Fri, 16 Dec 2022 17:55:07 +0000, [email protected] wrote:
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).
[...]
Applied, thanks!
[1/1] arm/trusted-services: Fix 'no such file' when building libts
commit: 13c7463c9fe948ec62e3b7824a7d5a882124f500
Best regards,
Signature · 1 line
Jon Mason <[email protected]>
Jon Mason
AppliedQuoted 9 lines · On Fri, 16 Dec 2022 17:55:07 +0000, [email protected] wrote:
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).
[...]
Applied, thanks!
[1/1] arm/trusted-services: Fix 'no such file' when building libts
commit: 13c7463c9fe948ec62e3b7824a7d5a882124f500
Best regards,
Signature · 1 line
Jon Mason <[email protected]>