summaryrefslogtreecommitdiffstats
path: root/README.android
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2010-06-17 16:46:35 -0700
committerBrian Carlstrom <bdc@google.com>2010-06-17 19:30:14 -0700
commit8113f6dc3780916a5f7f2a681b1829e591bd1bcb (patch)
treeba58ffea92f1baa3ef7d650f1afe30628a16c253 /README.android
parentdd10cd685355e6f61df26c59a24783c6765fbc9a (diff)
downloadandroid_external_bouncycastle-8113f6dc3780916a5f7f2a681b1829e591bd1bcb.tar.gz
android_external_bouncycastle-8113f6dc3780916a5f7f2a681b1829e591bd1bcb.tar.bz2
android_external_bouncycastle-8113f6dc3780916a5f7f2a681b1829e591bd1bcb.zip
Move external/bouncycastle to be based of patches from upstream
No code change here intentionally. Running ./import_bouncycastle.sh import .../bcprov-jdk15-134.tar.gz gives us exactly what we had before. This is based on how we mange external/openssl Change-Id: I8485780557f5cc0aa857450d4c27b98c26535710
Diffstat (limited to 'README.android')
-rw-r--r--README.android51
1 files changed, 51 insertions, 0 deletions
diff --git a/README.android b/README.android
new file mode 100644
index 0000000..4e041ed
--- /dev/null
+++ b/README.android
@@ -0,0 +1,51 @@
+Bouncy Castle on the Android platform.
+---
+
+The code in this directory is based on $BOUNCYCASTLE_VERSION in the
+file bouncycastle.version. See patches/README for more information on
+how the code differs from $BOUNCYCASTLE_VERSION.
+
+Porting New Versions of Bouncy Castle.
+--
+
+The following steps are recommended for porting new Bouncy Castle versions.
+
+1) Retrieve the appropriate version of the Bouncy Castle source from
+ www.bouncycastle.org/latest_releases.html (in bcprov-jdk*-*.tar.gz
+ file). Check the checksum (found at bouncycastle.org/checksums.html) with:
+
+ md5sum bcprov-jdk*-*.tar.gz
+ sha1sum bcprov-jdk*-*.tar.gz
+
+2) Update the variables in bouncycastle.config and bouncycastle.version as appropriate.
+ At the very least you will need to update the bouncycastle.version.
+
+3) Run:
+
+ ./import_bouncycastle.sh import bcprov-jdk*-*.tar.gz
+
+4) If there are any errors, then modify bouncycastle.config, bouncycastle.version
+ and patches in patches/ as appropriate. You might want to use:
+
+ ./import_bouncycastle.sh regenerate patches/*.patch
+
+ Repeat step 3.
+
+5) Cleanup before building with:
+
+ m -j16 clean-bouncycastle
+
+6) Build the bouncycastle target from the external/bouncycastle directory with:
+
+ mm -j16 snod && adb sync system
+
+ If there are build errors, then patches/*.mk or bouncycastle.config
+ may need updating.
+
+7) Run tests to make sure things are working:
+
+ See external/openssl/README.android for test instructions
+
+8) Do a full build before checking in:
+
+ m -j16