我试图用一个local_manifest.xml文件来配置repo,以使金鱼Android内核可以在:https://android.googlesource.com/kernel/goldfish.git上使用。
我编写了以下local_manifest.xml文件,我在..repo/舱单/localemali.xml中复制该文件:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote
name="linux-kernel"
fetch="https://android.googlesource.com/kernel" />
<project
path="kernel"
name="goldfish"
remote="linux-kernel"
revision="android-goldfish-3.10" />
</manifest>发出以下命令: repo init -u local_manifest.xml
我收到以下错误消息:
fatal: Invalid gitfile format: local_manifest.xml
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.我相信我的local_manifest.xml文件有问题,但我无法理解哪里出了问题。知道怎么回事吗?
此外,如何与回购一起使用本地舱单?
谢谢。
发布于 2015-12-30 21:52:33
本地清单并不打算用作您的主要清单,而是将其扩展到默认/标准清单。您只需将xml文件添加到$TOP_DIR/.repo/local_manifests,例如$TOP_DIR/.repo/local_manifests/kernel_manifest.xml。
清单本身遵循标准格式,允许您提供新的服务器(远程)和项目。尝试修改现有的一个,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote
name="linux-kernel"
fetch="https://android.googlesource.com/" />
<project
path="kernel"
name="kernel/goldfish"
remote="linux-kernel"
revision="android-goldfish-3.10" />
</manifest>执行repo sync时,repo应自动加载此清单,并将其作为同步的一部分使用。有关更多细节和其他好处,请访问这里。
https://stackoverflow.com/questions/34501024
复制相似问题