错误描述
repo init 命令出现如下错误
error.ManifestInvalidPathError: <linkfile> invalid "src": ../toolchains/aarch64/bin/aarch64-linux-gnu-gdb: bad component: ..
解决方法
cd 工作目录
cd .repo/manifests
# 我的是repo optee_rpi3时出现的
vim rpi3.xml
注释掉 ".."所在行
<project path="optee_client" name="OP-TEE/optee_client.git" revision="refs/tags/3.1.0" clone-depth="1" />
<project path="optee_os" name="OP-TEE/optee_os.git" revision="refs/tags/3.1.0" clone-depth="1" />
<project path="optee_test" name="OP-TEE/optee_test.git" revision="refs/tags/3.1.0" clone-depth="1" />
<project path="build" name="OP-TEE/build.git" revision="refs/tags/3.1.0" clone-depth="1">
<linkfile src="x.mk" dest="build/Makefile" />
<!-- <linkfile src="../toolchains/aarch64/bin/aarch64-linux-gnu-gdb" dest="build/gdb" /> -->
</project>
手动link
make toolchains之后
ln -s ../toolchains/aarch64/bin/aarch64-linux-gnu-gdb build/gdb
# 只是这里../toolchains/aarch64/bin/aarch64-linux-gnu-gdb
错误原因
忘了在哪看到 新版repo不支持虚链接,回头添加索引的时候找不到了,不过换老版的repo也不行