[FE training-materials-updates] Mention that it would be better if we'd use /opt instead of /home

Maxime Ripard maxime.ripard at free-electrons.com
Thu Oct 31 17:36:13 CET 2013


Repository : git://git.free-electrons.com/training-materials.git

On branch  : jelly-bean
Link       : http://git.free-electrons.com/training-materials/commit/?id=2c25673fbfaf6a1c446485047c5e654d89c74199

>---------------------------------------------------------------

commit 2c25673fbfaf6a1c446485047c5e654d89c74199
Author: Maxime Ripard <maxime.ripard at free-electrons.com>
Date:   Thu Oct 31 17:35:41 2013 +0100

    Mention that it would be better if we'd use /opt instead of /home
    
    Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>


>---------------------------------------------------------------

2c25673fbfaf6a1c446485047c5e654d89c74199
 .../android-first-compilation.tex                  |    6 +++++-
 labs/android-new-board/android-new-board.tex       |    7 ++++++-
 labs/android-source-code/android-source-code.tex   |   19 +++++++++++++++----
 3 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/labs/android-first-compilation/android-first-compilation.tex b/labs/android-first-compilation/android-first-compilation.tex
index 843a982..9e0c676 100644
--- a/labs/android-first-compilation/android-first-compilation.tex
+++ b/labs/android-first-compilation/android-first-compilation.tex
@@ -8,7 +8,7 @@ During this lab, you will:
 
 \section{Setup}
 
-Stay in the \code{$HOME/felabs/android/source} directory.
+Stay in the Android source directory.
 
 \section{Set up ccache}
 
@@ -48,6 +48,10 @@ to set a few environment variable.
 
 \begin{verbatim}
 export USE_CCACHE=1
+export CCACHE_DIR=/opt/ccache
+\end{verbatim}
+or, depending on your setup,
+\begin{verbatim}
 export CCACHE_DIR=$HOME/felabs/android/ccache
 \end{verbatim}
 
diff --git a/labs/android-new-board/android-new-board.tex b/labs/android-new-board/android-new-board.tex
index 005ae4e..6904a44 100644
--- a/labs/android-new-board/android-new-board.tex
+++ b/labs/android-new-board/android-new-board.tex
@@ -10,7 +10,8 @@ After this lab, you will be able to:
 
 \section{Download the source code}
 
-Go to the \code{$HOME/felabs/android/source} directory.
+Go to the directory holding the Android source code (either
+\code{/opt/android} or \code{$HOME/felabs/android/source}).
 
 We will use the TI-flavored Android build, named rowboat, for our
 board. This should make most of the port ready to use, and only a few
@@ -55,6 +56,10 @@ Make sure we are using \code{ccache}:
 export USE_CCACHE=1
 export CCACHE_DIR=$HOME/felabs/android/ccache
 \end{verbatim}
+or, depending on your setup,
+\begin{verbatim}
+export CCACHE_DIR=/opt/ccache
+\end{verbatim}
 
 And finally, we can start the compilation:
 
diff --git a/labs/android-source-code/android-source-code.tex b/labs/android-source-code/android-source-code.tex
index 8d56df9..f09529f 100644
--- a/labs/android-source-code/android-source-code.tex
+++ b/labs/android-source-code/android-source-code.tex
@@ -10,7 +10,19 @@ During this labs, you will:
 
 \section{Setup}
 
-Go to the \code{$HOME/felabs/android/source} directory.
+Look at the space available on your root partition using the
+\code{df -h} command. The first line should display the available
+storage size on your root partition. If you have more than 40GB, go to
+the \code{/opt} directory.
+
+\begin{verbatim}
+sudo mkdir android
+sudo chown -r <user>:<user> android
+cd android
+\end{verbatim}
+
+If you don't have that much space available, go to the
+\code{$HOME/felabs/android/android} directory.
 
 \section{Install needed packages}
 
@@ -43,8 +55,6 @@ chmod a+x $HOME/bin/repo
 We can now fetch the Android source code:
 
 \begin{verbatim}
-mkdir android
-cd android
 repo init -u https://android.googlesource.com/platform/manifest \
      -b android-4.2.2_r1
 repo sync -c -j2
@@ -123,4 +133,5 @@ them once again, you don't have to actually cache them.
 
 Ask your trainer for a pre-filled ccache archive that we will use to
 speed up a lot the compilation. Once you have retrieved the archive,
-extract it in the \code{$HOME/felabs/android/} directory.
+extract it in either the \code{/opt/} or \code{$HOME/felabs/android/}
+directories.



More information about the training-materials-updates mailing list