mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-06 16:58:24 +00:00
libcamera: Avoid build break in signature recalculation
The signature recalculation task can fail:
```
/.../build/tmp/work/armv8a-poky-linux/libcamera/1_0.0.4-r0/temp/run.do_recalculate_ipa_signatures_package.937421: line 154: /.../build/tmp/work/armv8a-poky-linux/libcamera/1_0.0.4-r0/git/src/ipa/ipa-sign-install.sh: No such file or directory
```
This happens whenever ${S} is removed and packages are retrieved from
sstate cache.
Instead of trying to fix the task, avoid the issue altogether by
performing the signature recalculation directly in do_package.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -50,8 +50,11 @@ do_install:append() {
|
|||||||
chrpath -d ${D}${libexecdir}/libcamera/v4l2-compat.so
|
chrpath -d ${D}${libexecdir}/libcamera/v4l2-compat.so
|
||||||
}
|
}
|
||||||
|
|
||||||
addtask do_recalculate_ipa_signatures_package after do_package before do_packagedata
|
do_package:append() {
|
||||||
do_recalculate_ipa_signatures_package() {
|
bb.build.exec_func("do_package_recalculate_ipa_signatures", d)
|
||||||
|
}
|
||||||
|
|
||||||
|
do_package_recalculate_ipa_signatures() {
|
||||||
local modules
|
local modules
|
||||||
for module in $(find ${PKGD}/usr/lib/libcamera -name "*.so.sign"); do
|
for module in $(find ${PKGD}/usr/lib/libcamera -name "*.so.sign"); do
|
||||||
module="${module%.sign}"
|
module="${module%.sign}"
|
||||||
|
|||||||
Reference in New Issue
Block a user