diff mbox series

[meta-multimedia,2/2] aom: add bindir to SYSROOT

Message ID 20260309084837.185189-2-skandigraun@gmail.com
State New
Headers show
Series [meta-multimedia,1/2] libheif: upgrade 1.20.2 -> 1.21.2 | expand

Commit Message

Gyorgy Sarvari March 9, 2026, 8:48 a.m. UTC
The cmake files files installed by this recipe check the existence of
the binaries in ${bindir}, and throw a fatal error in case it cannot
find the expexted files.

Due to this, it is not possible to include aom in other cmake project,
because it errors out:

The imported target "AOM::aomdec" references the file
|
|      ".../recipe-sysroot/usr/bin/aomdec"
|
|   but this file does not exist.  Possible reasons include: ...

To avoid this error, incldue the content of bindir in the sysroot.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
---
 meta-multimedia/recipes-multimedia/aom/aom_3.13.1.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-multimedia/recipes-multimedia/aom/aom_3.13.1.bb b/meta-multimedia/recipes-multimedia/aom/aom_3.13.1.bb
index 141b02306d..b157dc79ec 100644
--- a/meta-multimedia/recipes-multimedia/aom/aom_3.13.1.bb
+++ b/meta-multimedia/recipes-multimedia/aom/aom_3.13.1.bb
@@ -25,3 +25,5 @@  EXTRA_OECMAKE:append:riscv32 = " -DENABLE_RVV=OFF"
 do_generate_toolchain_file:append() {
     echo "set(AOM_AS_FLAGS --debug-prefix-map ${S}=${TARGET_DBGSRC_DIR})" >> ${WORKDIR}/toolchain.cmake
 }
+
+SYSROOT_DIRS += "${bindir}"