If I remember right, SDK construction doesn't use DEPENDS or RDEPENDS at all. Rather it takes the list of packages installed into an image, constructs a tree of their dependencies (which is not the same as RDEPENDS), adds -dev to everything in that list, and then that is what gets installed into the SDK.
I generally recommend to not bother with standalone SDKs, and set up a SDK environment directly in the bitbake environment. Much more flexible and easier to maintain: https://docs.yoctoproject.org/sdk-manual/extensible.html#installing-the-extensible-sdk Alex On Wed, 19 Feb 2025 at 10:51, Thilo C. via lists.yoctoproject.org <thilo.cestonaro=thalesgroup....@lists.yoctoproject.org> wrote: > Classified as: {OPEN} > > Hi! > > I'm currently struggling to get a specific paket into the SDK of our image. > > The situation is as follows. > We have a "library" which is generated code and header only. The code is > generated via a python module which is obviously a dependency of this > library but with the native part. > > As this library is header only, it does not appear in the rootfs, of > course. > > Now the SDK does not include the headers of this library and the python > module which is used for generating the code is not part of the SDK too. > > As I want to be able to build the headers only library via SDK, we need > the python module in the sdk. > As I want to be able to build the app, which needs the headers only > library, via SDK, we need the headers of this library in the sdk. > > I added the library recipe to the DEPENDS of the app. I added the native > part of the python module to the DEPENDS of the library and > RDEPEND:${PN}-dev onto the nativesdk part of the python module in the > libarry. > But nothing brings the wished result except adding TOOLCHAIN_HOST_TASK += > nativesdk-...... > > Is this really the only way to get the python module and the library into > the SDK or am I doing something completely wrong?! > > How does yocto determine via DEPENDS and RDEPENDS, what is going into the > SDK and what not? > > > Cheers, > Thilo > > *Thilo Cestonaro* > > *Embedded Software Engineer* > > Avionics / Training & Simulation / Switzerland > > *Thales* > > M: +41 (0) 79 536 56 48 > > Thales Simulation & Training AG > Stauffacherstrasse 65 > > 3014 Bern > > Switzerland > > *Find Thales on social media and at **www.thalesgroup.com > <https://www.thalesgroup.com/>* > > > > > {OPEN} > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64842): https://lists.yoctoproject.org/g/yocto/message/64842 Mute This Topic: https://lists.yoctoproject.org/mt/111266978/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-