【发布时间】:2018-09-07 05:16:41
【问题描述】:
嘿嘿
我正在玩一些 Yocto、一个 Raspberry Pi 和我编写的一些代码。现在我希望 Yocto 正在构建一个包含我编写的程序的图像。我想知道如何设置 fetcher 以从本地 git repro 获取。
我的设置很简单。代码在目录中:
/home/user/git/myTest
我将该目录链接到我的 Yocto 元层的配方目录。
/home/user/poky/meta-test/myApp/myTest
因为是本地git repro,所以有“.git”文件夹。
/home/user/git/myTest/.git
还有更多文件:
/home/user/git/myTest/CMakeLists.txt
/home/user/git/myTest/src/main.cpp
/home/user/git/myTest/src/...
我想知道如何设置我的食谱以使用 git fetcher:
SUMMARY = "test"
SECTION = "app"
LICENSE = "CLOSED"
inherit cmake
SRCREV = "${AUTOREV}"
SRC_URI = "git://.git"
S = "${WORKDIR}/git"
我确实检查了 Yocto/Bitbake 文档。但我没有找到如何做到这一点的例子。 有什么想法吗?
【问题讨论】: