[bootlin/training-materials updates] master: sysdev: slides: reformat shell sequence to avoid improper line break (e0294006)

Luca Ceresoli luca.ceresoli at bootlin.com
Tue Oct 11 16:06:09 CEST 2022

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


commit e0294006f04be6e8b2cad09521dfc921b293f67e
Author: Luca Ceresoli <luca.ceresoli at bootlin.com>
Date:   Tue Oct 11 16:02:11 2022 +0200

    sysdev: slides: reformat shell sequence to avoid improper line break
    The \code{} statement curently produces a very unpleasant line break in the
    middle of '-L':
      1. $ make CC=arm-linux-gcc CFLAGS=-I/path/to/headers LDFLAGS=-
    Prevent it by using a minted code block.
    Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>


 .../sysdev-cross-compiling-user-space.tex                 | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/slides/sysdev-cross-compiling-user-space/sysdev-cross-compiling-user-space.tex b/slides/sysdev-cross-compiling-user-space/sysdev-cross-compiling-user-space.tex
index 01d5f9b8..0109f282 100644
--- a/slides/sysdev-cross-compiling-user-space/sysdev-cross-compiling-user-space.tex
+++ b/slides/sysdev-cross-compiling-user-space/sysdev-cross-compiling-user-space.tex
@@ -62,7 +62,7 @@
-\begin{frame}{Cross-compiling with hand-written Makefiles}
+\begin{frame}[fragile]{Cross-compiling with hand-written Makefiles}
   \item There is no general rule, as each project has a different
     set of Makefiles, that use a different set of variables
@@ -74,10 +74,15 @@
   \item \code{DESTDIR} for installation destination, sometimes
     \code{PREFIX} for execution location
   \item Common sequence
-    \begin{enumerate}
-    \item \code{$ make CC=arm-linux-gcc CFLAGS=-I/path/to/headers LDFLAGS=-L/path/to/libraries}
-    \item \code{$ make DESTDIR=/installation/path install}
-    \end{enumerate}
+    \begin{block}{}
+      {
+        \begin{minted}{sh}
+$ make CC=arm-linux-gcc CFLAGS=-I/path/to/headers \
+       LDFLAGS=-L/path/to/libraries
+$ make DESTDIR=/installation/path install
+        \end{minted}
+      }
+    \end{block}
   \item Need to read the documentation (if any), read the Makefiles,
     and adapt to their behavior.

More information about the training-materials-updates mailing list