Dan Pasanen | 48d5ebd | 2016-12-26 23:21:25 -0600 | [diff] [blame] | 1 | LineageOS |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 2 | =========== |
| 3 | |
| 4 | Submitting Patches |
| 5 | ------------------ |
Harry Youd | f68ed96 | 2017-07-09 10:20:18 +0100 | [diff] [blame] | 6 | |
| 7 | Patches are always welcome! Please submit your patches via LineageOS Gerrit. |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 8 | You can do this by using these commands: |
| 9 | |
| 10 | (From root android directory) |
| 11 | . build/envsetup.sh |
| 12 | (Go to repo you are patching, make your changes and commit) |
Michael Bestas | 8140ded | 2017-08-22 01:24:12 +0300 | [diff] [blame] | 13 | lineagegerrit <for(new)/changes(patch set)> <branch/change-id> |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 14 | |
Rashed Abdel-Tawab | 27e09d6 | 2017-12-05 11:17:47 -0800 | [diff] [blame^] | 15 | repo start lineage-15.1 . |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 16 | (Make your changes and commit) |
| 17 | repo upload . |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 18 | |
Harry Youd | f68ed96 | 2017-07-09 10:20:18 +0100 | [diff] [blame] | 19 | Note: "." means the current directory |
| 20 | For more help on using this tool, use this command: `repo help upload` |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 21 | |
Harry Youd | f68ed96 | 2017-07-09 10:20:18 +0100 | [diff] [blame] | 22 | Make your changes and commit with a detailed message, starting with what you are working with (i.e. "vision: Update Kernel") |
| 23 | Commit your patches in a single commit. Squash multiple commits using this command: `git rebase -i HEAD~<# of commits>` |
| 24 | |
| 25 | To view the status of your and others' patches, visit [LineageOS Code Review](https://review.lineageos.org/) |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 26 | |
| 27 | |
| 28 | Getting Started |
| 29 | --------------- |
| 30 | |
Dan Pasanen | 48d5ebd | 2016-12-26 23:21:25 -0600 | [diff] [blame] | 31 | To get started with Android/LineageOS, you'll need to get |
Harry Youd | f68ed96 | 2017-07-09 10:20:18 +0100 | [diff] [blame] | 32 | familiar with [Git and Repo](https://source.android.com/source/using-repo.html). |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 33 | |
Dan Pasanen | 48d5ebd | 2016-12-26 23:21:25 -0600 | [diff] [blame] | 34 | To initialize your local repository using the LineageOS trees, use a command like this: |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 35 | |
Rashed Abdel-Tawab | 27e09d6 | 2017-12-05 11:17:47 -0800 | [diff] [blame^] | 36 | repo init -u git://github.com/LineageOS/android.git -b staging/lineage-15.1 |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 37 | |
| 38 | Then to sync up: |
| 39 | |
| 40 | repo sync |
| 41 | |
Harry Youd | f68ed96 | 2017-07-09 10:20:18 +0100 | [diff] [blame] | 42 | Please see the [LineageOS Wiki](https://wiki.lineageos.org/) for building instructions. |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 43 | |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 44 | |
| 45 | Buildbot |
| 46 | -------- |
| 47 | |
Harry Youd | f68ed96 | 2017-07-09 10:20:18 +0100 | [diff] [blame] | 48 | All supported devices are built weekly and periodically as changes are committed to ensure the source trees remain buildable. |
Chris Soyars | 878bc02 | 2011-11-14 21:41:03 -0500 | [diff] [blame] | 49 | |
Harry Youd | f68ed96 | 2017-07-09 10:20:18 +0100 | [diff] [blame] | 50 | You can view the current build statuses at [LineageOS Jenkins](https://jenkins.lineageos.org/) |
| 51 | |
| 52 | Builds produced weekly by the buildbot can be downloaded from [LineageOS downloads](https://download.lineageos.org/) |