位烘烤SRC_URI文件:// [英] bitbake SRC_URI file://

查看:713
本文介绍了位烘烤SRC_URI文件://的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在本地目录中有一个tarball helloworld.tar.gz,例如/home/user/tarballs/,如何使我的烘烤食谱从该目录中获取?

If I have a tarball, helloworld.tar.gz in a local directory, say /home/user/tarballs/, how can I make my bitbake recipe fetch from that directory?

我的helloworld.bb是

my helloworld.bb is

SECTION = "examples"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://COPYING; md5=1b1b8016e15e07a2fec59623ebf12345"

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

但是当我烤面包时,会收到以下警告消息:

but when I bitbake, I get the below warning message:

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

我阅读了一些有关FILES的信息,FILESEXTRAPATHS可能会影响下载路径,但不确定在何处/如何设置它们.

I read something about FILES and FILESEXTRAPATHS can influence the download path but not sure where/how to set them.

我做了一个bitbake -c显示FILESEXTRAPATHS,但是收到一条错误消息:

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

ERROR: Nothing PROVIDES 'FILESEXTRAPATHS'

推荐答案

好吧,如果您想从本地目录中获取,请使用例如:

Well, if you want to fetch from a local directory, use e.g.:

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

FILES和FILESEXTRAPATHS变量告诉bitbake在哪里找到被引用为的文件:

The FILES and FILESEXTRAPATHS variables tells bitbake where to find files which are referenced as:

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

在这两个变量指定的位置搜索这些文件. (或者搜索FILESEXTRAPATHS,然后搜索FILESEXTRAPATHS中指定的目录的某些可能子目录,包括DISTRO,MACHINE,ARCH等的扩展值).

These files are searched for in the locations specified by those two variables. (Or rather, FILESEXTRAPATHS is searched and then some possible subdirectories of the directories specified in FILESEXTRAPATHS, amongst those the expanded values of DISTRO, MACHINE, ARCH, etc).

FILES(和FILESEXTRAPATHS)用于查找与元数据一起存储的文件,即在meta- /recipes-/name/XXX路径下.

FILES (and FILESEXTRAPATHS) are used to find files stored together with the meta-data, i.e. under the paths meta-/recipes-/name/XXX.

请参见 http://www.yoctoproject .org/docs/1.7/mega-manual/mega-manual.html#var-FILES 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆