2013-10-18 13:36:32 +02:00
|
|
|
Submitting Patches
|
|
|
|
------------------
|
2014-02-26 12:24:52 +01:00
|
|
|
Our ROM is open source, and patches are always welcome!
|
2013-10-18 13:36:32 +02:00
|
|
|
You can send patches by using these commands:
|
|
|
|
|
|
|
|
cd <project>
|
|
|
|
<make edits>
|
|
|
|
git add -A
|
|
|
|
git commit -m "commit message"
|
2015-03-27 21:04:19 +01:00
|
|
|
git push ssh://<username>@gerrit.omnirom.org:29418/<project> HEAD:refs/for/android-5.1
|
2013-10-18 13:36:32 +02:00
|
|
|
|
|
|
|
Register at gerrit.omnirom.org and use the username that you registered there in the above command
|
|
|
|
|
|
|
|
Commit your patches in a single commit. Squash multiple commit using this command: git rebase -i HEAD~<# of commits>
|
|
|
|
|
|
|
|
If you are going to make extra additions, just repeat steps (Don't start a new patch), but instead of git commit -m
|
|
|
|
use git commit --amend. Gerrit will recognize it as a new patchset.
|
|
|
|
|
|
|
|
To view the status of your and others patches, visit [OMNI ROM Code Review](https://gerrit.omnirom.org)
|
|
|
|
|
|
|
|
|
|
|
|
Getting Started
|
|
|
|
---------------
|
|
|
|
|
|
|
|
To get started with OMNI ROM, you'll need to get
|
|
|
|
familiar with [Git and Repo](http://source.android.com/download/using-repo).
|
|
|
|
|
2014-02-26 12:24:52 +01:00
|
|
|
To initialize your local repository using the OMNIROM trees, use a command like this:
|
2013-10-18 13:36:32 +02:00
|
|
|
|
2015-03-27 21:04:19 +01:00
|
|
|
repo init -u git://github.com/omnirom/android.git -b android-5.1
|
2013-10-18 13:36:32 +02:00
|
|
|
|
|
|
|
Then to sync up:
|
|
|
|
|
|
|
|
repo sync
|
|
|
|
|
|
|
|
Then to build:
|
|
|
|
|
|
|
|
cd <source-dir>; . build/envsetup.sh; brunch <device_name>
|
|
|
|
|
2014-02-26 12:24:52 +01:00
|
|
|
|
|
|
|
If you need more information or a more detailed guide, click [here to see our wiki.](http://docs.omnirom.org)
|
|
|
|
|
|
|
|
Our official IRC Channels are hosted on Freenode:
|
|
|
|
|
|
|
|
[#omnirom - USERS](http://webchat.freenode.net/?channels=omnirom/)
|
|
|
|
|
|
|
|
[#omni - DEVELOPERS](http://webchat.freenode.net/?channels=omni/)
|
|
|
|
|