Adding files to Yocto SDK build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding files to Yocto SDK build

4,186 Views
ilya1
Contributor I

Hello,

I have some files downloaded by a certain recipe during an Yocto image build. I want to include them in the SDK of the same image.

When I build the SDK based on the my custom image(populate_sdk) these files are missing from the resulting SDK. I can see only some certain header files made for that particular recipe.

I want to know how I can include these files in the SDK build. I didn't find any commands that does that for files for SDKs.

For reference, the files are downloaded by the recipe from this git: https://github.com/dji-sdk/Onboard-SDK/archive/3.6.zip

I tried:

TOOLCHAIN_TARGET_TASK_append = " {recipe}-staticdev"

BBCLASSEXTEND = "native nativesdk"

FILES_${PN}-dev = "sample/linux/common/*"(these are the files I need)

Thanks.

Tags (2)
0 Kudos
Reply
2 Replies

4,009 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello llya Sonin,

I haven’t tested it myself, but the Yocto Project SDK Manual may be of help:

https://www.yoctoproject.org/docs/current/sdk-manual/sdk-manual.html

On section C.1. mentions that there is a TOOLCHAIN_HOST_TASK and a TOOLCHAIN_TARGET_TASK variables. It could be that you would need to use the HOST variable if you are building the SDK to install on your host.

I hope this helps!

Regards,

0 Kudos
Reply

4,009 Views
ilya1
Contributor I

Thanks for the reply, but using TOOLCHAIN_HOST_TASK didn't change anything.

What I'm looking for should be as simple as "copy these files to a designated folder that will be included in the SDK building". I just don't know what such folder may be.

I tried to copy the files to SDK_DIR as part of POPULATE_SDK_POST_TARGET_COMMAND, but that didn't work either.

0 Kudos
Reply