blob: 85386971349a49a661cc7ae2fd1747f7ac40c2e6 [file] [log] [blame]
Dan Pasanen48d5ebd2016-12-26 23:21:25 -06001LineageOS
Chris Soyars878bc022011-11-14 21:41:03 -05002===========
3
4Submitting Patches
5------------------
Harry Youdf68ed962017-07-09 10:20:18 +01006
7Patches are always welcome! Please submit your patches via LineageOS Gerrit.
Chris Soyars878bc022011-11-14 21:41:03 -05008You 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)
Nikola Majkićb49c2682017-01-05 06:12:54 +000013 cmgerrit <for(new)/changes(patch set)> <branch/change-id>
Chris Soyars878bc022011-11-14 21:41:03 -050014
Trafalgar Squareda596442016-10-26 06:41:17 +020015 repo start cm-14.1 .
Chris Soyars878bc022011-11-14 21:41:03 -050016 (Make your changes and commit)
17 repo upload .
Chris Soyars878bc022011-11-14 21:41:03 -050018
Harry Youdf68ed962017-07-09 10:20:18 +010019Note: "." means the current directory
20For more help on using this tool, use this command: `repo help upload`
Chris Soyars878bc022011-11-14 21:41:03 -050021
Harry Youdf68ed962017-07-09 10:20:18 +010022Make your changes and commit with a detailed message, starting with what you are working with (i.e. "vision: Update Kernel")
23Commit your patches in a single commit. Squash multiple commits using this command: `git rebase -i HEAD~<# of commits>`
24
25To view the status of your and others' patches, visit [LineageOS Code Review](https://review.lineageos.org/)
Chris Soyars878bc022011-11-14 21:41:03 -050026
27
28Getting Started
29---------------
30
Dan Pasanen48d5ebd2016-12-26 23:21:25 -060031To get started with Android/LineageOS, you'll need to get
Harry Youdf68ed962017-07-09 10:20:18 +010032familiar with [Git and Repo](https://source.android.com/source/using-repo.html).
Chris Soyars878bc022011-11-14 21:41:03 -050033
Dan Pasanen48d5ebd2016-12-26 23:21:25 -060034To initialize your local repository using the LineageOS trees, use a command like this:
Chris Soyars878bc022011-11-14 21:41:03 -050035
Dan Pasanen3a38b892016-12-19 12:18:38 -060036 repo init -u git://github.com/LineageOS/android.git -b cm-14.1
Chris Soyars878bc022011-11-14 21:41:03 -050037
38Then to sync up:
39
40 repo sync
41
Harry Youdf68ed962017-07-09 10:20:18 +010042Please see the [LineageOS Wiki](https://wiki.lineageos.org/) for building instructions.
Chris Soyars878bc022011-11-14 21:41:03 -050043
Chris Soyars878bc022011-11-14 21:41:03 -050044
45Buildbot
46--------
47
Harry Youdf68ed962017-07-09 10:20:18 +010048All supported devices are built weekly and periodically as changes are committed to ensure the source trees remain buildable.
Chris Soyars878bc022011-11-14 21:41:03 -050049
Harry Youdf68ed962017-07-09 10:20:18 +010050You can view the current build statuses at [LineageOS Jenkins](https://jenkins.lineageos.org/)
51
52Builds produced weekly by the buildbot can be downloaded from [LineageOS downloads](https://download.lineageos.org/)