Ste*_*itz 6 git cmake bitbake yocto
j
我在玩Yocto,Raspberry Pi和我编写的一些代码。现在,我希望Yocto正在构建包含我编写的程序的图像。我想知道如何设置获取程序以从本地git repro获取。
我的设置很简单。代码在目录中:
/home/user/git/myTest
Run Code Online (Sandbox Code Playgroud)
我将该目录链接到我的Yocto元层的食谱目录中。
/home/user/poky/meta-test/myApp/myTest
Run Code Online (Sandbox Code Playgroud)
由于它是本地git repro,因此存在“ .git”文件夹。
/home/user/git/myTest/.git
Run Code Online (Sandbox Code Playgroud)
还有更多文件:
/home/user/git/myTest/CMakeLists.txt
/home/user/git/myTest/src/main.cpp
/home/user/git/myTest/src/...
Run Code Online (Sandbox Code Playgroud)
我想知道如何设置食谱来使用git fetcher:
SUMMARY = "test"
SECTION = "app"
LICENSE = "CLOSED"
inherit cmake
SRCREV = "${AUTOREV}"
SRC_URI = "git://.git"
S = "${WORKDIR}/git"
Run Code Online (Sandbox Code Playgroud)
我确实检查了Yocto / Bitbake文档。但是我没有找到如何做的例子。有任何想法吗?
GIT Fetcher bitbake 支持不同的协议,但具有相当特殊和非标准的语法。在你的情况下应该是这样的
SRC_URI = "git:///home/user/git/myTest/;protocol=file"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4768 次 |
| 最近记录: |