使用git从opensource下载最新的uboot和linuxne内核

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/liebao_han/article/details/84441177

本文分成两部分讲解,分别是下载最新的uboot和linux内核(使用git工具)。
一、下载uboot
1.克隆远程uboot git仓库。

git clone git://git.denx.de/u-boot.git

下载的uboot的默认分支为master,即是我们查看源码的主分支
2.拉取更新本地仓库
当我们将远程的uboot仓库下载的本地后,一段时间后有可能opensource的仓库的源码有了更新,
这个时候我们就需要拉取远程uboot仓库来更新本地的仓库,达到与远程仓库同步目的。

 git pull origin master:master

其中,pull表示拉取,origin 表示远程仓库名,master:master表示将远程仓库的mater同步到本地的master上。
二、下载linux内核
1.克隆远程linux内核git仓库

git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git

2.拉取更新本地仓库
同uboot。

猜你喜欢

转载自blog.csdn.net/liebao_han/article/details/84441177