【发布时间】:2021-09-23 03:35:21
【问题描述】:
我正在尝试从 github 版本中获取文件,但它说找不到? 我正在使用的食谱如下所示。
DESCRIPTION = "Description of package"
LICENSE = "CLOSED"
MY_DESTINATION = "${libdir}/folder"
#SRC_URI = "file://file.zip"
SRC_URI = "https://github.com/user/repo/releases/download/latest/file.zip;protocol=file"
S = "${WORKDIR}"
do_install_append() {
install -d ${D}${MY_DESTINATION}
cp -r ${S}/file/* ${D}${MY_DESTINATION}
}
FILES_${PN} += "${MY_DESTINATION}/*"
有人可以帮助我在这里做错了吗?
错误如下...
ERROR: repo-1.0-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export GIT_PROXY_COMMAND="oe-git-proxy"; export NO_PROXY="*"; export PATH="/work/build/tmp-glibc/sysroots-uninative/x86_64-linux/usr/bin:/work/openembedded-core/scripts:/work/build/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi.......
https://github.com/user/repo/releases/download/latest/file.zip
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-07-14 09:22:01 ERROR 404: Not Found.
ERROR: repo-1.0-r0 do_fetch: Fetcher failure for URL: 'https://github.com/user/repo/releases/download/latest/file.zip;protocol=http'. Unable to fetch URL from any source.
【问题讨论】:
-
您的源目录 S 可能是错误的:在 poky/openembedded-core 中有许多食谱可以执行此操作,您可以将其用作示例。如果您需要更多帮助,您应该包含错误消息:究竟找不到什么?在构建的哪个阶段?
-
@JussiKukkonen 我已经更新了这个问题。我已将文件夹名称定义为“文件”,它只需要来自源的文件夹..
-
这个链接显然是无效的
https://github.com/user/repo/releases/download/latest/file.zip,你可以在浏览器上测试它会给你Not Found,请设置一个正确的链接到一个真正的gitHub用户,项目和发布 -
不,我已经用我的浏览器测试过了。它下载 zip 文件
-
你在没有登录github的浏览器中测试过? (换句话说,这是一个私人回购吗?)
标签: github yocto openembedded yocto-recipe