A repo
repository for managing multi-git projects.
To install repo:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
To setup a project follow these simple steps:
- Create your project root directory and from within it issue:
repo init -u https://github.com/ilansmith/project.git -m NAME.xml
Where NAME.xml is one of the project xml definitions within it (on the master branch). - Update the project by issuing:
repo sync
- By default the versions checked out as defined in the repo manifest don't have a name and are called no_branch.
It is good pratice (though not mandatory) to set a branch name in all repositories in the project by issuing:
repo start <branch_name> --all
Where branch_name is to be the name of the local branch on each of the projet's git repositories. - Finalize the project setup by running
./env/setup.sh
from project root. This completes project environment setup and you can now build and run it.
Use./env/setup.sh --help
to see the script's usage options.
Use make --help
in the project root to see the available build options.
Available projects:
- kunit - kernel code unit testing in user space
- utest - multiple project unit tests