summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/design/assistant/android.mdwn11
-rw-r--r--git-annex.cabal2
2 files changed, 12 insertions, 1 deletions
diff --git a/doc/design/assistant/android.mdwn b/doc/design/assistant/android.mdwn
index 06d6b9b1f..dfef5bb62 100644
--- a/doc/design/assistant/android.mdwn
+++ b/doc/design/assistant/android.mdwn
@@ -44,3 +44,14 @@ transfers when not on wifi. This may need to be configurable.
Due to use of the FAT filesystem, which doesn't do symlinks, [[desymlink]]
is probably needed for at least older Android devices that have SD cards.
+
+## Porting notes
+
+To build git, you can use the C cross compiler installed by ghc-android.
+I did so like this:
+
+ PATH=~/.ghc/android-14/arm-linux-androideabi-4.7/arm-linux-androideabi/bin:$PATH NO_OPENSSL=1 NO_GETTEXT=1 NO_GECOS_IN_PWENT=1 NO_GETPASS=1 NO_NSEC=1 NO_MKDTEMP=1 NO_PTHREADS=1 NO_PERL=1 NO_CURL=1 NO_EXPAT=1 NO_TCLTK=1 NO_ICONV=1 make
+
+This required coping various directories from
+~/.ghc/android-14/arm-linux-androideabi-4.7/ into
+~/.ghc/android-14/arm-linux-androideabi-4.7/arm-linux-androideabi/
diff --git a/git-annex.cabal b/git-annex.cabal
index 735a89239..3d7fa3a0d 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -60,7 +60,7 @@ Executable git-annex
extensible-exceptions, dataenc, SHA, process, json,
base (>= 4.5 && < 4.8), monad-control, transformers-base, lifted-base,
IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, process,
- SafeSemaphore, UUID, Glob
+ SafeSemaphore, uuid, Glob
-- Need to list these because they're generated from .hsc files.
Other-Modules: Utility.Touch Utility.Mounts
Include-Dirs: Utility