Ubuntu18.04编译Yocto:git无法访问

转载自:https://www.cnblogs.com/zengjfgit/p/9177572.html
/**********************************************************************
报错信息:ERROR: gnu-config-native-20150728+gitAUTOINC+b576fa87c1-r0 do_unpack: Function failed: Fetcher failure: Fetch command failed with exit code 128, output: fatal: the ‘–set-upstream’ option is no longer supported. Please use ‘–track’ or ‘–set-upstream-to’ instead.

说明:在Ubuntu 18.04上编译Yocto,出现的git访问的问题
/**********************************************************************

一、参考文档:
1. ubuntu 12.04 yocto 最近出现的编译问题
https://blog.csdn.net/ming_l1/article/details/79362370

二、解决方法:
1. sources/poky/bitbake/lib/bb/fetch2/git.py
runfetchcmd("%s branch --set-upstream %s origin/%s" % (ud.basecmd, branchname,
branchname), d)
to
runfetchcmd("%s branch --set-upstream-to origin/%s" % (ud.basecmd,
branchname), d)

你可能感兴趣的:(Linux)