aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-09-04 21:11:05 -0700
committerElliott Hughes <enh@google.com>2019-09-04 21:11:05 -0700
commit23f25132ac8779db321816e9b5d9b5a01045ae5a (patch)
tree82b4df3be7889ee5497cc5e4904a892498b9ce33 /Android.bp
parent6b4d3eda6c8723a9ba5eb3c0addccd0aedc23e21 (diff)
downloadtoybox-23f25132ac8779db321816e9b5d9b5a01045ae5a.tar.gz
Reformat and update the help in Android.bp a little.
Test: treehugger Change-Id: Ide88897135893ac77a01f8a6d82a2db3a8d891fd
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp56
1 files changed, 27 insertions, 29 deletions
diff --git a/Android.bp b/Android.bp
index 347feef4..799afbfd 100644
--- a/Android.bp
+++ b/Android.bp
@@ -14,44 +14,42 @@
// limitations under the License.
//
-//
-// To sync with upstream:
-//
+/*
-// # Update.
-// git remote add toybox https://github.com/landley/toybox.git
-// git fetch toybox
-// git merge toybox/master
+ --- To sync with upstream:
-// # Regenerate generated files.
-// ./regenerate.sh
+ # Update source and regenerate generated files.
+ git remote add toybox https://github.com/landley/toybox.git
+ git fetch toybox && git merge toybox/master && ./regenerate.sh
-// # Make any necessary Android.bp changes and rebuild.
-// mm -j32
+ # Make any necessary Android.bp changes and rebuild.
+ mm -j32
-// # Run all the tests.
-// ./run-tests-on-android.sh
-// # Run a single test.
-// ./run-tests-on-android.sh wc
+ # Run all the tests.
+ ./run-tests-on-android.sh
+ # Run a single test.
+ ./run-tests-on-android.sh wc
-// # Upload changes.
-// git commit -a --amend
-// git push aosp HEAD:refs/for/master # Push to gerrit for review.
-// git push aosp HEAD:master # Push directly, avoiding gerrit.
+ # Upload changes.
+ git commit -a --amend
+ git push aosp HEAD:refs/for/master # Push to gerrit for review.
+ git push aosp HEAD:master # Push directly, avoiding gerrit.
-//
-// To add a toy:
-//
-// # Edit .config to enable the toy you want to add and regenerate the
-// # generated files:
-// ./regenerate.sh
+ --- To add a toy:
+
+ # Edit the three .config-* files to enable the toy you want for the targets
+ # you want it on, and regenerate the generated files:
+ ./regenerate.sh
+
+ # Edit the relevant `srcs` below, depending on where the toy should be
+ # available.
-// # Edit `srcs` below to add the toy (in toybox-defaults if it's for both host
-// # and device, or just in the target: section if it's for the device only).
+ # If you just want to use the toy via "toybox x" rather than "x", you can
+ # stop now. If you want this toy to have a symbolic link in /system/bin,
+ # add the toy to symlinks.
-// # If you just want to use it as "toybox x" rather than "x", you can stop now.
-// # If you want this toy to have a symbolic link in /system/bin, add the toy to symlinks.
+*/
cc_defaults {
name: "toybox-defaults",