0

Installation on Pillow in the yocto linux distribution

I have installed the Pillow Python Library in my yocto-based distribution. I have used the following recipe:

meta-openembedded/meta-python/recipes-devtools/python/python3-pillow_6.2.1.bb

The following instruction has been added to my_image_recipe.bb:

IMAGE_INSTALL += "python3-pillow"

After a correct image compilation Pillow is now installed in my Linux distribution.

Modify SRC_URI to fetch source from local directory

What I need is to create a .bbappend file to modify the value of the SRC_URI variable of the Pillow recipe. In the original recipe the value of that variable is:

SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=6.2.x \
           file://0001-support-cross-compiling.patch \
           file://0001-explicitly-set-compile-options.patch \
"

With this value of SRC_URI, when I execute the command:

> bitbake python3-pillow

the source tree of Pillow is downloaded from the GitHub repository pointed by the URI value assigned to SRC_URI and this value is:
git://github.com/python-pillow/Pillow.git;branch=6.2.x.
By the fetching process the source files are saved in one my local folder called downloads. This folder is the target of all the downloads executed by the image build process.

After the image creation downloads contains the Pillow source tree in the following sub-folder:

downloads/git2/github.com.python-pillow.Pillow.git/

My question

I would like to copy the source tree downloaded into the path downloads/git2/github.com.python-pillow.Pillow.git/ in a different folder called my-downloads and modify the SRC_URI variable as followed:

SRC_URI = "file:///path/to/my-downloads/... \  # <---??? What do I have to write in this assignment exactly???
           file://0001-support-cross-compiling.patch \
           file://0001-explicitly-set-compile-options.patch \
"

In this way when I'll compile Pillow an other time, bitbake will take Pillow source tree from my-downloads and not from GitHub.

What exactly do I have to assign to SRC_URI in order for bitbake to find Pillow sources in my local folder my-downloads?


I have tried with the solution proposed here but it doesn't work in my context may be because I don't to get sources from a local git repository, but directly from filesystem.

frankfalse
  • 1,553
  • 1
  • 4
  • 17

0 Answers0