summaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2017-07-10 18:01:53 +0200
committerRonan Le Martret <ronan.lemartret@iot.bzh>2017-07-10 18:01:53 +0200
commit12682a6df639e61132fb6b4064edf4b931f31579 (patch)
treed09369c84f17c4272e0ccd5ff8dd4d9f65618f15 /platform
parent947042e2e95b108ec798662863bb2ebd658d32d9 (diff)
Fix markdown lint
https://github.com/DavidAnson/markdownlint/blob/v0.5.0/doc/Rules.md MD012 - Multiple consecutive blank lines MD014 - Dollar signs used before commands without showing output MD022 - Headers should be surrounded by blank lines MD026 - Trailing punctuation in header MD029 - Ordered list item prefix MD031 - Fenced code blocks should be surrounded by blank lines MD032 - Lists should be surrounded by blank lines MD033 - Inline HTML MD034 - Bare URL used Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'platform')
-rw-r--r--platform/working-on-the-chinook-branch.md67
-rw-r--r--platform/working-on-the-master-branch.md67
2 files changed, 86 insertions, 48 deletions
diff --git a/platform/working-on-the-chinook-branch.md b/platform/working-on-the-chinook-branch.md
index 1f8eef8..c211650 100644
--- a/platform/working-on-the-chinook-branch.md
+++ b/platform/working-on-the-chinook-branch.md
@@ -1,16 +1,20 @@
# Working on the chinook branch
+
## Intro
+
This is a quick howto for working on the 'Charming Chinook' branch. Working on the branch
is easy as we maintain all changes through gerrit.automotivelinux.org.
If you are unfamiliar with gerrit, please read these fine how-to pages were put together from the
-Mediawiki community here: https://www.mediawiki.org/wiki/Gerrit/Tutorial . This covers the basics very well. Of course we'll work with gerrit.automotivelinux.org instead so apply likewise.
+Mediawiki community here: <https://www.mediawiki.org/wiki/Gerrit/Tutorial> . This covers the basics very well. Of course we'll work with gerrit.automotivelinux.org instead so apply likewise.
## Installation of tools
+
Install `git` with your distributions package manager.
A very useful tool is "git-review" (cmdline is then `git review`).
Install it from your distro or with `sudo pip install git-review`.
## Prerequisites
+
It is important to setup git and gerrit properly (see the Tutorial page mentioned above):
* prereq #1) make sure git is properly setup with name/email
@@ -20,38 +24,44 @@ It is important to setup git and gerrit properly (see the Tutorial page mentione
Follow these steps to submit a change to the 'Charming Chinook' branch:
-1) cloning the (tip of the) branch
- ```
+1. cloning the (tip of the) branch
+
+ ```bash
repo init -b chinook -m default.xml -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
repo sync
```
-2) Change the recipe in question (one change at a time - small is better)
- ```
+1. Change the recipe in question (one change at a time - small is better)
+
+ ```bash
vi recipe-foo/bar/baz.bb
```
-3) Do a a few builds and tests (try 2 architectures if possible)
- ```
+1. Do a a few builds and tests (try 2 architectures if possible)
+
+ ```bash
source meta-agl/scripts/aglsetup.sh .... agl-all-features
bitbake agl-demo-platform
```
-4) once satisfied do commit your change as usual in git
+1. once satisfied do commit your change as usual in git
Make sure to do a proper commit message:
- http://chris.beams.io/posts/git-commit/
- ```
+ <http://chris.beams.io/posts/git-commit/>
+
+ ```bash
git commit -s
<enter proper commit message>
```
-5) All repos have .gitreview files already, so now it is just
- ```
+1. All repos have .gitreview files already, so now it is just
+
+ ```bash
git review
```
-6) (optional, but highly recommended!) Reset to gerrit/chinook
- ```
+1. (optional, but highly recommended!) Reset to gerrit/chinook
+
+ ```bash
git checkout chinook`
git reset --hard gerrit/chinook
```
@@ -59,45 +69,54 @@ Follow these steps to submit a change to the 'Charming Chinook' branch:
It helps during the review process as gerrit would otherwise enforce
the whole series of patches to be reviewed/merged together (2nd depends on 1st patch).
-7) Rinse (=6) and repeat (=2-5)
+1. Rinse (=6) and repeat (=2-5)
## Using git review to review/test-build a specific change in gerrit
+
'git review' is also useful if you want to review a change.
Example for meta-agl:
-```
+
+```bash
repo init -b chinook -m default.xml -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
repo sync
cd meta-agl/
git review -d 8105
```
+
This will pull-down change 8105. Now we can build with it applied:
-```
+
+```bash
cd ..
source ...
bitbake ...
-````
+```
## Using gerrit to amend a changeset while in review
+
The same workflow applies if you want to _amend_ a changeset while it is in review (not merged, yet):
-```
+
+```bash
cd meta-agl/
git review -d 8105
```
+
This will pull-down change 8105. You can now edit a file:
-```
+
+```bash
vi recipes-foo/bar/baz.bb
git commit -s --amend
```
Don't forget a test build
-```
+
+```bash
cd ..
source meta-agl/scripts/aglsetup.sh ..... agl-all-features
bitbake ... # e.g. agl-demo-platform
```
Finally call git review to upload the change
-```
-git review
-```
+```bash
+git review
+``` \ No newline at end of file
diff --git a/platform/working-on-the-master-branch.md b/platform/working-on-the-master-branch.md
index 0f91eaf..16dae32 100644
--- a/platform/working-on-the-master-branch.md
+++ b/platform/working-on-the-master-branch.md
@@ -1,16 +1,20 @@
# Working on the master branch
+
## Intro
+
This is a quick howto for working on the 'master' branch. Working on the branch
is easy as we maintain all changes through gerrit.automotivelinux.org.
If you are unfamiliar with gerrit, please read these fine how-to pages were put together from the
-Mediawiki community here: https://www.mediawiki.org/wiki/Gerrit/Tutorial . This covers the basics very well. Of course we'll work with gerrit.automotivelinux.org instead so apply likewise.
+Mediawiki community here: <https://www.mediawiki.org/wiki/Gerrit/Tutorial> . This covers the basics very well. Of course we'll work with gerrit.automotivelinux.org instead so apply likewise.
## Installation of tools
+
Install `git` with your distributions package manager.
A very useful tool is "git-review" (cmdline is then `git review`).
Install it from your distro or with `sudo pip install git-review`.
## Prerequisites
+
It is important to setup git and gerrit properly (see the Tutorial page mentioned above):
* prereq #1) make sure git is properly setup with name/email
@@ -20,38 +24,44 @@ It is important to setup git and gerrit properly (see the Tutorial page mentione
Follow these steps to submit a change to the 'master' branch:
-1) cloning the (tip of the) branch
- ```
+1. cloning the (tip of the) branch
+
+ ```bash
repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
repo sync
```
-2) Change the recipe in question (one change at a time - small is better)
- ```
+1. Change the recipe in question (one change at a time - small is better)
+
+ ```bash
vi meta-xyz/recipe-foo/bar/baz.bb
```
-3) Do a a few builds and tests (try 2 architectures if possible)
- ```
+1. Do a a few builds and tests (try 2 architectures if possible)
+
+ ```bash
source meta-agl/scripts/aglsetup.sh .... agl-all-features
bitbake agl-demo-platform
```
-4) once satisfied do commit your change as usual in git
+1. once satisfied do commit your change as usual in git
Make sure to do a proper commit message:
- http://chris.beams.io/posts/git-commit/
- ```
+ <http://chris.beams.io/posts/git-commit/>
+
+ ```bash
git commit -s
<enter proper commit message>
```
-5) All repos have .gitreview files already, so now it is just
- ```
+1. All repos have .gitreview files already, so now it is just
+
+ ```bash
git review
```
-6) (optional, but highly recommended!) Reset to gerrit/master
- ```
+1. (optional, but highly recommended!) Reset to gerrit/master
+
+ ```bash
git checkout master
git reset --hard gerrit/master
```
@@ -59,45 +69,54 @@ Follow these steps to submit a change to the 'master' branch:
It helps during the review process as gerrit would otherwise enforce
the whole series of patches to be reviewed/merged together (2nd depends on 1st patch).
-7) Rinse (=6) and repeat (=2-5)
+1. Rinse (=6) and repeat (=2-5)
## Using git review to review/test-build a specific change in gerrit
+
'git review' is also useful if you want to review a change.
Example for meta-agl:
-```
+
+```bash
repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
repo sync
cd meta-agl/
git review -d 8233
```
+
This will pull-down change 8233. Now we can build with it applied:
-```
+
+```bash
cd ..
source ...
bitbake ...
-````
+```
## Using gerrit to amend a changeset while in review
+
The same workflow applies if you want to _amend_ a changeset while it is in review (not merged, yet):
-```
+
+```bash
cd meta-agl/
git review -d 8233
```
+
This will pull-down change 8233. You can now edit a file:
-```
+
+```bash
vi meta-xyz/recipes-foo/bar/baz.bb
git commit -s --amend
```
Don't forget a test build
-```
+
+```bash
cd ..
source meta-agl/scripts/aglsetup.sh ..... agl-all-features
bitbake ... # e.g. agl-demo-platform
```
Finally call git review to upload the change
-```
-git review
-```
+```bash
+git review
+``` \ No newline at end of file