具体改版的U-boot源码

U-boot source code of specific revision

我需要获取以下版本详情的U-boot源

VERSION = 2014 
PATCHLEVEL = 07 
SUBLEVEL = 
EXTRAVERSION = 
NAME =

我尝试了以下步骤。

  1. 使用以下命令克隆。

    git 克隆 git://git.denx.de/u-boot.git

但以下是版本详情。

VERSION = 2015
PATCHLEVEL = 10
SUBLEVEL = 
EXTRAVERSION = -rc1
NAME =
  1. git 分支只显示主分支。

    user:~/U-boot/u-boot$ git branch
    * master
    user:~/U-boot/u-boot$
    

能否请您指导使用git.

获取U-boot源码(version:2014,patchlevel:07)

似乎有符合这些规格的标签。
(参见 list of tags for git.denx.de/u-boot.git)。

这意味着,一旦您克隆了存储库,您可以执行以下操作:

cd ~/U-boot/u-boot
git checkout v2014.07

请注意,它会让您处于分离的 HEAD 模式(参见“What's the difference between “git reset” and “git checkout”?”)。
但是如果不做任何提交,这没关系