summaryrefslogtreecommitdiffstats
path: root/meta-python/classes
diff options
context:
space:
mode:
authorAndrey Konovalov <andrey.konovalov@linaro.org>2020-08-13 23:36:08 +0300
committerKhem Raj <raj.khem@gmail.com>2020-08-13 22:37:48 -0700
commitbbf746857d102eca913ae200cb53f8dee563acd8 (patch)
tree25772915f4164a4d5e4806adc9e62965fbe21dad /meta-python/classes
parent98991b2e0fae9d07b17c504a7dd4a9f32ad07a0b (diff)
downloadmeta-openembedded-bbf746857d102eca913ae200cb53f8dee563acd8.tar.gz
libcamera: fix packaging and installation
libcamera checks if RPATH or RUNPATH dynamic tag is present in libcamera.so. If it does, it assumes that libcamera binaries are run directly from the build directory without installing them, and tries to use resorces like IPA modules from the build directory. Mainline meson strips RPATH/RUNPATH out from libcamera.so file at install time. But openembedded-core patches meson to disable RPATH/RUNPATH removal. That's why we need to remove this tag manually in do_install_append(). IPA module is signed (with openssl dgst) after it is built. But during packaging the OE build system 1) splits out debugging info, and 2) strips the binaries. So the IPA module so file installed isn't the one which the signature was calculated against. Then the signature check fails, and libcamera tries to run the IPA module isolated (in a sandbox), which doesn't work if the IPA module wasn't designed to run isolated. The solution is to recalculate the IPA modules signatures in ${PKGD} after do_package(). Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/classes')
0 files changed, 0 insertions, 0 deletions