Is the link correct when nativesdk-udev is built and packaged or is it already broken at that point?
Generally you should take the trouble to spin up qemu and run the tests in that. Alex On Wed 29. May 2024 at 15.27, Lukas Weiß via lists.yoctoproject.org <lukas.weiss=janitza...@lists.yoctoproject.org> wrote: > Hi together, > > i have a question about Yocto SDK generation. We use the Yocto-SDK not > only for generation of target binaries outside the Yocto Build process, but > also for generation of the same binaries *for the host* (nativesdk). This > way we are able to run our applications as Simulations or Unit-Tests in our > CI process without the need to install dev- and runtime libs on the host > system (also the libs have the same build configuration as on target). > > Unfortunately, the SDK doesn't really seem to be designed for this. The BB > classes for the native/nativesdk are also missing for most libraries. And > last but not least, I still have the feeling that I haven't really found > the "right" way to define the SDK. Whatever. > > I'm currently trying to add the libudev (yes, i know that its probably not > the best idea to add a system lib to host sdk ;-). I added an > eudev_%.bbappend file containing > > BBCLASSEXTEND = "native nativesdk" > > and appended "nativesdk-eudev" and "nativesdk-eudev-dev" to the RDEPENDS > of my *nativesdk-packagegroup-sdk-host* recipe. > > This works, but unfortunately the resulting installed SDK has a wrong > symlink for the hosts libudev.so: > > /home/admin/sdk/plat/5.0/sysroots/x86_64-platsdk-linux/usr/lib/libudev.so > -> > ../../../../../../home/admin/sdk/plat/5.0/sysroots/x86_64-platsdk-linux/lib/libudev.so.1.6.3 > > The correct link would be > > /home/admin/sdk/plat/5.0/sysroots/x86_64-platsdk-linux/usr/lib/libudev.so > -> ../../lib/libudev.so.1.6.3 > > This must happen on SDK installation, as the install path is not known > before. All other links in SDK (*including the link for target libudev.so*) > are correct. > Do you have any hints for me how i can dig into this? All debug methods i > know belong to built process itself, not the install. > > My Yocto version is "yocto-5.0" Tag in Repo. > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63228): https://lists.yoctoproject.org/g/yocto/message/63228 Mute This Topic: https://lists.yoctoproject.org/mt/106368600/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-