packages aren't added to eSDK sysroot
I bumped into a strange problem during transition from dunfell to scarthgap.
On scarthgap, the packages added with IMAGE_INSTALL aren't present in eSDK sysroot though present in the standard SDK sysroot. I need them in the sysroot of eSDK as it was on dunfell.
Similar issue was already reported ( https://lists.yoctoproject.org/g/yocto/topic/library_not_getting_added_to/90448012 ) by someone in 2022.
A simple test.
1) compile poky as is on scarthgap.
2) provide a recipe for "some-new-package" and edit local.conf:
IMAGE_INSTALL:append = "some-new-package"
3) generate SDK and eSDK with populate_sdk respectively populate_sdk_ext.
In result "some-new-package" is apparent in the sysroot of SDK and not apparent in the sysroot of eSDK.
I haven't found any clue in docs. Dunfell and scarthgap are clearly giving different results for eSDK. Please advise. Thank you so much in advance!
I have the same problem and could not find any solution for it. With 'rocko' all our libraries are available in the SDK and the eSDK. Since the transition to 'scarthgap', only the SDK contains my libraries and I cannot mange it to make them available in the eSDK. I played around with PACKAGE_ARCH and SDK_PACKAGE_ARCHS, without success. Would be great to see any comments on this issue.
I'm building obmc-phosphor-image for example, and what I found I had to do was to go to obmc-phosphor-image-base.inc, for me I was trying to use the eSDK exactly as it's described, building application level programs, so for me I needed curl, libz, etc.
What I found that I had to do(open to a better, more good practice way...) :
1) Modify DEPENDS:append = " obmc-phosphor-nor-image" into DEPENDS:append = " obmc-phosphor-nor-image openssl zlib curl libxcrypt "
2) Add TOOLCHAIN_TARGET_TASK:append = " libxcrypt libxcrypt-dev"
I could then build the eSDK, build my applications, and the linker found everything it needed to complete. This is a bit of a conflated example because libcrypt(yes, libcrypt without the x) is just weird, but it shows that even adding a library is not straight forward in yocto. So don't be frustrated if you are.