[bootlin/training-materials updates] master: Toolchain lab: add config parameter names (484460e8)

Michael Opdenacker michael.opdenacker at bootlin.com
Tue Sep 15 15:06:17 CEST 2020


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/484460e837062b38922b0cb7a32fbe24a83355f0

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

commit 484460e837062b38922b0cb7a32fbe24a83355f0
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Tue Sep 15 15:06:17 2020 +0200

    Toolchain lab: add config parameter names
    
    - Show how to look for the config parameters by name
    - Helps to find such parameters in the interface !
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

484460e837062b38922b0cb7a32fbe24a83355f0
 labs/sysdev-toolchain/sysdev-toolchain.tex | 32 ++++++++++++++++++------------
 1 file changed, 19 insertions(+), 13 deletions(-)

diff --git a/labs/sysdev-toolchain/sysdev-toolchain.tex b/labs/sysdev-toolchain/sysdev-toolchain.tex
index 0be9bb99..2aec3a44 100644
--- a/labs/sysdev-toolchain/sysdev-toolchain.tex
+++ b/labs/sysdev-toolchain/sysdev-toolchain.tex
@@ -74,45 +74,51 @@ Then, to refine the configuration, let's run the \code{menuconfig} interface:
 
 In \code{Path and misc options}:
 \begin{itemize}
-\item Change \code{Maximum log level to see} to \code{DEBUG} so that we can have more
-  details on what happened during the build in case something went wrong.
+\item Change \code{Maximum log level to see} to \code{DEBUG} (look for
+\code{LOG_DEBUG} in the interface, using the \code{/} key) so that
+  we can have more details on what happened during the build in case
+  something went wrong.
 \end{itemize}
 
 \ifdefstring{\labboard}{discovery}{
 In \code{Target options}:
 \begin{itemize}
-\item Set \code{Emit assembly for CPU} to \code{cortex-a7}.
-\item Set \code{Use specific FPU} to \code{vfpv4}.
+\item Set \code{Emit assembly for CPU} (\code{ARCH_CPU}) to \code{cortex-a7}.
+\item Set \code{Use specific FPU} (\code{ARCH_FPU}) to \code{vfpv4}.
 \end{itemize}
 }{}
 
 In \code{Toolchain options}:
 \begin{itemize}
-\item Set \code{Tuple's vendor string} to \code{training}.
-\item Set \code{Tuple's alias} to \code{arm-linux}. This way, we will
-  be able to use the compiler as \code{arm-linux-gcc} instead of
-  \code{arm-training-linux-uclibcgnueabihf-gcc}, which is much longer
-  to type.
+\item Set \code{Tuple's vendor string} (\code{TARGET_VENDOR}) to \code{training}.
+\item Set \code{Tuple's alias} (\code{TARGET_ALIAS}) to \code{arm-linux}.
+      This way, we will be able to use the compiler as \code{arm-linux-gcc}
+      instead of \code{arm-training-linux-uclibcgnueabihf-gcc}, which is
+      much longer to type.
 \end{itemize}
 
 In \code{C-library}:
 \begin{itemize}
   \item If not set yet, set \code{C library} to \code{uClibc}
+        (\code{LIBC_UCLIBC})
   \item Keep the default version that is proposed
-  \item If needed, enable \code{Add support for IPv6}\footnote{
+  \item If needed, enable \code{Add support for IPv6}
+        (\code{LIBC_UCLIBC_IPV6})\footnote{
         That's needed to use the toolchain in Buildroot, which only
         accepts toolchains with IPv6 support},
-        \code{Add support for WCHAR} and
+        \code{Add support for WCHAR} (\code{LIBC_UCLIBC_WCHAR}) and
 	\code{Support stack smashing protection (SSP)}
+        (\code{LIBC_UCLIBC_HAS_SSP})
 \end{itemize}
 
 In \code{C compiler}:
 \begin{itemize}
-  \item Make sure that \code{C++} is enabled
+  \item Make sure that \code{C++} (\code{CC_LANG_CXX}) is enabled
 \end{itemize}
 
 In \code{Debug facilities}, disable every option, except \code{strace}
-(with default settings). Some of these options will be useful in a real
+(\code{DEBUG_STRACE}), with default settings.
+Some of these options will be useful in a real
 toolchain, but in our labs, we will do debugging work with another
 toolchain anyway. \code{strace} is an exception as we will use it earlier.
 Hence, not compiling debugging features here will reduce toolchain building time.




More information about the training-materials-updates mailing list