【问题标题】:Using repo with goldfish Android kernel将 repo 与金鱼 Android 内核一起使用
【发布时间】:2015-12-31 05:52:33
【问题描述】:

我试图使用 local_manifest.xml 文件配置 repo,以获取金鱼 Android 内核,网址为: https://android.googlesource.com/kernel/goldfish.git

我已经编写了以下 local_manifest.xml 文件,并将其复制到 .repo/manifests/local_manifest.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 文件中有问题,但我无法理解问题所在。知道出了什么问题吗?

另外,如何将本地清单与 repo 一起使用?

谢谢。

【问题讨论】:

    标签: android linux git repo


    【解决方案1】:

    本地清单不打算用作您的主要清单,而是对默认/标准清单的扩充。您可以将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 应自动加载此清单并将其用作同步的一部分。有关更多详细信息和其他好东西,请查看here

    【讨论】:

    • 现在工作...谢谢...无需再次初始化 repo...添加本地清单文件并运行 repo sync 就足够了。
    猜你喜欢
    • 2017-02-10
    • 2016-06-28
    • 2014-09-28
    • 2019-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-09
    • 2017-06-18
    相关资源
    最近更新 更多