Hi Robert, No SDK expert here, so as usual, to be taken with a grain of salt.
On Fri, May 07, 2021 at 09:11:37AM -0400, Robert P. J. Day wrote: > > almost certainly a silly question as i'm still poring over the > mechanics of standard SDK creation, but if i define a perfectly normal > image, then build the corresponding SDK with: > > $ bitbake -c populate_sdk my_image > > is the resulting SDK populated based on the entire contents of the > target image? that is, if i subsequently add a new package to the > target and rebuild the SDK, will the new SDK now contain the > corresponding content from that newly-added package? (i'm just about > to test this with a build but that's going to take over an hour on > this server. *sigh* ...) > I think you're mixing SDK and eSDK. AFAIU so far, you're looking for an eSDK. An SDK just gives you the minimal toolchain and associated tools, to be able to compile something. I would go as far as saying it's basically what a PC distro package for cross-compile with gcc is doing. Most of headers, shlib and binaries from an image won't make it to the SDK. A much bigger portion of those will be installed in an SDK, though not all of them. I have never used an eSDK so can't comment on what's missing or how to add packages to the eSDK. > now, i realize that if i just want to add content to the SDK without > adding to target, i can use one or both of: > > TOOLCHAIN_HOST_TASK > TOOLCHAIN_TARGET_TASK > > but if someone asks for new content both for the target and the SDK, > is it sufficient to just add to target? > I'd assume that TOOLCHAIN_HOST_TASK is for native packages and TOOLCHAIN_TARGET_TASK for target packages, for an SDK, TOOLCHAIN_HOST_TASK would contain arm-linux-gcc, make, cmake, whatever common build tools needed and TOOLCHAIN_TARGET_TASK headers/shlib for compiling binaries to be run on your target, compiled via tools from TOOLCHAIN_HOST_TASK. Not sure this is remotely correct, just some thoughts. Hope this can help/guide a bit? Cheers, Quentin
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#151448): https://lists.openembedded.org/g/openembedded-core/message/151448 Mute This Topic: https://lists.openembedded.org/mt/82654706/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
