aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Sesek <rsesek@google.com>2017-01-11 23:38:06 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-01-11 23:38:06 +0000
commit4d81778c9225c50b54adc6cb0aa624f740485b80 (patch)
tree8f2b4848633459c0f07ab32af39ad25de5f309e7
parentc5d2ad948a8029d6d826d8dccc51414c2b133012 (diff)
parent9228ff0d52cbd86b8239dd4196014741bc80e5af (diff)
downloadseccomp-tests-4d81778c9225c50b54adc6cb0aa624f740485b80.tar.gz
Update the instructions based on how the Gerrit ACL is setup for forge access. am: 933e0196bf am: af93951379 am: 19a5166a0d
am: 9228ff0d52 Change-Id: Iae383782e2d395101461b5d66d0ea166d6962f61
-rw-r--r--README.md23
1 files changed, 18 insertions, 5 deletions
diff --git a/README.md b/README.md
index f6b2577..b5e9632 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,9 @@ Rather than hold the entire Linux history in this repository, only the subdirect
selftests are preserved here. In order to sync this repository to the upstream Linux, follow these
instructions.
+The pristine copy of the upstream source is kept on a branch called upstream-master. This branch is
+then merged into an Android development branch.
+
### First-Time Setup
These instructions only need to be followed for the first time you are updating the repository from
@@ -39,15 +42,25 @@ Perform these steps every time you need to update the test suite from upstream.
git filter-branch --subdirectory-filter tools/testing/selftests/seccomp
```
-4. Start a new CL branch into which the updated sources will be merged:
+4. Check out the upstream-master branch, which contains the pristine, filter-branch'd copy of the
+source code. Pushing non-merge commits with a "forged" author/committer can only be done against
+the upstream-master branch.
```
- repo start sync-upstream .
+ git checkout -b upstream-master aosp/upstream-master
````
-5. Subtree-merge the changes into the directory. Resolve any conflicts with the local modifications
-present in the repository.
+5. Update this upstream-master branch to the newly filtered branch of upstream-linux.
```
- git subtree merge -P linux/ update-YYYYMMDD
+ git merge --ff-only update-YYYYMMDD
+ ```
+
+6. Upload the changes on upstream-master for review and submit them.
+
+7. Merge the changes from upstream-master into the Android development branch (typically master).
+Resolve any conflicts with the local modifications present in the repository.
+ ```
+ repo start sync-upstream .
+ git subtree merge -P linux/ upstream-master
```
Now build and test the changes by running CTS: