使用repo与goldfish Android内核

3
我正在尝试使用local_manifest.xml文件配置repo,以获取位于以下网址的goldfish 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一起使用local manifests?

谢谢。

1个回答

2
本地清单不是用作您的主清单,而是默认/标准清单的补充。 您只需将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应自动加载此清单并将其用作同步的一部分。有关更多详细信息和其他好处,请参见此处

现在正在工作...谢谢...不需要再次初始化repo...添加本地清单文件并运行repo sync就足够了。 - Salvatore

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接