ltkenbo
ltkenbo

Reputation: 111

Yocto Image Recipe and SRC_URI

I am trying to bring in an extra file to a custom Yocto image recipe I created.

I am adding the SRC_URI (file://somefile) to my recipe but find that though Bitbake finds the file when I build the image, it does not place it in the work directory for the recipe (or anywhere for that matter).

If I do this in a non image recipe (not inheriting the core-image class) the file will be placed in the work directory for the recipe.

What am I missing here? Is it not possible to do this? Is it being overridden somewhere else by inheriting core-image? FYI I am using Morty.

Upvotes: 3

Views: 2400

Answers (2)

Richard Purdie
Richard Purdie

Reputation: 2368

image.bbclass does:

do_fetch[noexec] = "1"

so you probably need to do something like:

python __anonymous() {
    d.delVarFlag("do_fetch", "noexec")
    d.delVarFlag("do_unpack", "noexec")
}

to undo that at least with current OE-Core master branch.

Upvotes: 3

Dheeraj Kumar
Dheeraj Kumar

Reputation: 387

Probably you are not providing the parameters to it to pick the exact file. See more here Also look at this for open embedded directory structure.

Upvotes: -1

Related Questions