Bitbake SRC_URI file: //

If I have tarball, helloworld.tar.gz in the local directory, say / home / user / tarballs /, how can I make a selection of the recipe from bbbake from this directory?

my helloworld.bb

SECTION = "examples" LICENSE = "Proprietary" LIC_FILES_CHKSUM = "file://COPYING; md5=1b1b8016e15e07a2fec59623ebf12345" SRC_URI = "file://helloworld.tar.gz" 

but when I am a batboy, I get the following warning message:

 WARNING: Unable to get checksum for helloworld SRC_URI entry helloworld.tar.gz: file could not be found 

I read something about FILES, and FILESEXTRAPATHS may affect the download path, but I'm not sure where / how to install them.

I did bitbake -c show FILESEXTRAPATHS but received an error message:

 ERROR: Nothing PROVIDES 'FILESEXTRAPATHS' 
+5
source share
2 answers

Well, if you want to get from a local directory, use, for example:

 SRC_URI = "file:///home/user/tarballs/helloworld.tar.gz" 

The FILES and FILESEXTRAPATHS variables indicate to the bitback where to find files that are referenced as:

 SRC_URI = "file://helloworld.tar.gz" 

These files are searched in the places indicated by these two variables. (Or, rather, search for FILESEXTRAPATHS, and then some possible subdirectories of the directories specified in FILESEXTRAPATHS, including extended values โ€‹โ€‹of DISTRO, MACHINE, ARCH, etc.).

FILES (and FILESEXTRAPATHS) are used to search for files stored along with metadata, i.e. along the path meta- / recipes- / name / XXX.

See http://www.yoctoproject.org/docs/1.7/mega-manual/mega-manual.html#var-FILES and http://www.yoctoproject.org/docs/1.7/mega-manual/mega- manual.html # var-FILESEXTRAPATHS

+10
source

You can better save your files in the present (where the .bb directory is present) and indicate below the lines in your .bb file.

 FILESEXTRAPATHS_prepend := "${THISDIR}:" SRC_URI = "file://helloworld.tar.gz" 

FILESEXTRAPATHS_prepend: tells the bitback that the files are present where the .bb file is present.

+3
source

Source: https://habr.com/ru/post/1210537/


All Articles