将repo与金鱼Android内核结合使用

将repo与金鱼Android内核结合使用,android,linux,git,repo,Android,Linux,Git,Repo,我试图用一个本地的_manifest.xml文件配置repo,以使金鱼Android内核在以下位置可用: 我在.repo/manifests/local_manifest.xml中复制了以下local_manifest.xml文件: <?xml version="1.0" encoding="UTF-8"?> <manifest> <remote name="linux-kernel" fetch="https://android.googleso

我试图用一个本地的_manifest.xml文件配置repo,以使金鱼Android内核在以下位置可用:

我在.repo/manifests/local_manifest.xml中复制了以下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>
我相信我的本地_manifest.xml文件中有问题,但我无法理解问题所在。你知道怎么回事吗

此外,如何将本地舱单与回购协议一起使用


多谢各位

本地清单不打算用作主清单,而是对默认/标准清单的扩充。您只需将xml文件添加到
$TOP\u DIR/.repo/local\u manifests
,例如
$TOP\u DIR/.repo/local\u manifests/kernel\u manifests.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就足够了。
<?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>