Add to Linux BSP 6.4

What is the best method to add binary file e.g. to bitbake Linux image ?

Hello @MariusM

Thanks for reaching out to the Toradex Community!
You will have to write a recipe to add the shared object.
This post on stackoverflow discusses a similar topic: Yocto add Shared Library - Stack Overflow
Could you please take a look and let us know how that goes?

@rudhi.tx Thank you for your answer, thanks to it I found the documentation.
yoctoproject [15 ]Working with Pre-Built Libraries

and example (copy from doc)

SUMMARY = "libfoo sample recipe"
SECTION = "libs"

SRC_URI = "file://"

COMPATIBLE_HOST = "x86_64.*-linux"

INSANE_SKIP:${PN} = "ldflags"
SOLIBS = ".so"

do_install () {
        install -d ${D}${libdir}
        install -m 0755 ${WORKDIR}/ ${D}${libdir}