Changes between Version 13 and Version 14 of venice/bsp


Ignore:
Timestamp:
12/09/2021 05:51:48 PM (2 years ago)
Author:
Tim Harvey
Comment:

added additional info about repo tool

Legend:

Unmodified
Added
Removed
Modified
  • venice/bsp

    v13 v14  
    9292
    9393
     94[=#repo]
     95=== Working with the repo tool
     96
     97==== Updating to the latest code
     98When working with the {{{repo}}} tool you can update to the latest code using the {{{repo sync}}} command:
     99{{{#!bash
     100$ repo sync
     101Fetching: 100% (8/8), done in 5.258s
     102Garbage collecting: 100% (8/8), done in 0.188s
     103repo sync has finished successfully.
     104}}}
     105
     106The {{{repo}}} tool works off of a manifest file in {{{.repo/manifests/default.xml}}} which specifies the various projects, what repo they are in, and where they are checked out in your directory structure. If a branch has changed, a project added, or a project removed the manifest file will be updated when you run {{{repo sync}}} then it will update the various project repos. If a branch has changed to something new you can encounter an error such as:
     107{{{#!bash
     108$ repo sync
     109remote: Enumerating objects: 5, done.
     110remote: Counting objects: 100% (5/5), done.
     111remote: Compressing objects: 100% (1/1), done.
     112remote: Total 3 (delta 1), reused 3 (delta 1), pack-reused 0
     113Unpacking objects: 100% (3/3), done.
     114project .repo/manifests/
     115Updating 5c981dac1797..0b0055e7445e
     116Fast-forward
     117
     118error: in `sync`: revision v5.10.76-venice in Gateworks/linux-venice not found
     119}}}
     120
     121This specific error is saying that the 'v5.10.76-venice' revision (or branch) is not in the current working copy of the repo. To resolve this you need to do a {{{git remote update}}} for that project:
     122{{{#!bash
     123git -C linux remote update
     124}}}
     125
     126
     127==== Using the latest version
     128The {{{repo}}} tool is updated frequently. While it is rarely necessary to have the latest version it will inform you if there is an update and how to install that update in the current working directory:
     129{{{#!bash
     130$ repo sync
     131
     132... A new version of repo (2.17) is available.
     133... You should upgrade soon:
     134    cp /usr/src/venice/bsp/.repo/repo/repo /home/user/bin/repo
     135...
     136}}}
     137
     138To update the {{{repo}}} tool just copy the file as mentioned above:
     139{{{#!bash
     140cp .repo/repo/repo $HOME/bin/repo
     141}}}
     142
     143
    94144[=#kernel]
    95145=== Modifying the stand-alone Linux Kernel