blob: fdb571908867255c4dea291c5d76a98f6ce46487 [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)
Michael Bestas8140ded2017-08-22 01:24:12 +030013 lineagegerrit <for(new)/changes(patch set)> <branch/change-id>
Chris Soyars878bc022011-11-14 21:41:03 -050014
Rashed Abdel-Tawab27e09d62017-12-05 11:17:47 -080015 repo start lineage-15.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
Rashed Abdel-Tawab2c189d92018-02-11 17:25:37 -080036 repo init -u git://github.com/LineageOS/android.git -b lineage-15.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/)