aom: add bindir to SYSROOT

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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Gyorgy Sarvari 2026-03-09 09:48:37 +01:00 committed by Khem Raj
parent d4bc3fe962
commit 19af995bc1
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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}"