[FE training-materials-updates] labs/sysdev-kernel-cross-compiling: don't tell to modify the Makefile for ARCH and CROSS_COMPILE

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Oct 16 14:08:09 CEST 2012


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

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=4de2285e25f0b93537b1f71813995e1933d17816

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

commit 4de2285e25f0b93537b1f71813995e1933d17816
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Tue Oct 16 14:06:57 2012 +0200

    labs/sysdev-kernel-cross-compiling: don't tell to modify the Makefile for ARCH and CROSS_COMPILE
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>


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

4de2285e25f0b93537b1f71813995e1933d17816
 .../sysdev-kernel-cross-compiling.tex              |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex b/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex
index 65d745f..218296e 100644
--- a/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex
+++ b/labs/sysdev-kernel-cross-compiling/sysdev-kernel-cross-compiling.tex
@@ -47,10 +47,14 @@ previously produced, so we just need to make it available in the PATH:
 export PATH=/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/bin:$PATH
 \end{verbatim}
 
-\section{Makefile setup}
+Also, don't forget to either:
 
-Modify the toplevel Makefile file to cross-compile for the arm
-platform using the above toolchain.
+\begin{itemize}
+\item Define the value of the \code{ARCH} and \code{CROSS_COMPILE}
+  variables in your environment (using \code{export})
+\item {\bf Or} specify them on the command line at every invocation of
+  \code{make}, i.e: \code{make ARCH=... CROSS_COMPILE=... <target>}
+\end{itemize}
 
 \section{Linux kernel configuration}
 



More information about the training-materials-updates mailing list