[FE training-materials-updates] yocto: slides: move the make -e explanation

Antoine Ténart antoine.tenart at free-electrons.com
Thu Sep 22 10:13:46 CEST 2016


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=9a8ba6eacd6bf40c91f839b246ed09e73c9e0060

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

commit 9a8ba6eacd6bf40c91f839b246ed09e73c9e0060
Author: Antoine Tenart <antoine.tenart at free-electrons.com>
Date:   Thu Sep 22 10:06:27 2016 +0200

    yocto: slides: move the make -e explanation
    
    Signed-off-by: Antoine Tenart <antoine.tenart at free-electrons.com>


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

9a8ba6eacd6bf40c91f839b246ed09e73c9e0060
 .../yocto-recipe-advanced/yocto-recipe-advanced.tex  | 18 +-----------------
 slides/yocto-recipe-basics/yocto-recipe-basics.tex   | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
index 92aeb99..81dd80a 100644
--- a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
+++ b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
@@ -150,7 +150,7 @@ SRC_URI += "file://custom-modification-0.patch \
 \end{frame}
 
 \begin{frame}
-  \frametitle{The base class 1/2}
+  \frametitle{The base class}
   \begin{itemize}
     \item Every recipe inherits the base class automatically.
     \item Contains a set of basic common tasks to fetch, unpack or
@@ -163,24 +163,8 @@ SRC_URI += "file://custom-modification-0.patch \
       \item Some tasks: \code{clean}, \code{listtasks} or
             \code{fetchall}.
     \end{itemize}
-  \end{itemize}
-\end{frame}
-
-\begin{frame}
-  \frametitle{The base class 2/2}
-  \begin{itemize}
     \item Defines \code{oe_runmake}, using \code{EXTRA_OEMAKE} to use
       custom arguments.
-    \item In Poky, \code{EXTRA_OEMAKE} defaults to \code{-e
-      MAKEFLAGS=}.
-    \item The \code{-e} option to give variables taken from the
-      environment precedence over variables from makefiles.
-      \begin{itemize}
-        \item Upstream libraries or softwares often embed their own
-          \code{Makefile}.
-        \item Helps not using hardcoded \code{CC} or \code{CFLAGS}
-          variables in makefiles.
-      \end{itemize}
   \end{itemize}
 \end{frame}
 
diff --git a/slides/yocto-recipe-basics/yocto-recipe-basics.tex b/slides/yocto-recipe-basics/yocto-recipe-basics.tex
index 1202e66..00d20bf 100644
--- a/slides/yocto-recipe-basics/yocto-recipe-basics.tex
+++ b/slides/yocto-recipe-basics/yocto-recipe-basics.tex
@@ -380,6 +380,26 @@ addtask mkimage after do_compile before do_install
 
 \subsection{Applying patches}
 
+\begin{frame}
+  \frametitle{Patches use cases}
+  Patches can be applied to resolve build-system problematics:
+  \begin{itemize}
+    \item To support old versions of a software: bug and security
+      fixes.
+    \item To fix cross-compilation issues.
+      \begin{itemize}
+        \item In certain simple cases the \code{-e} option of
+          \code{make} can be used.
+        \item The \code{-e} option gives variables taken from the
+          environment precedence over variables from \code{Makefiles}.
+        \item Helps when an upstream \code{Makefile} uses hardcoded
+          \code{CC} and/or \code{CFLAGS}.
+      \end{itemize}
+    \item To apply patches before they get their way into the upstream
+      version.
+  \end{itemize}
+\end{frame}
+
 \begin{frame}[fragile]
   \frametitle{The source locations: patches}
   \begin{itemize}




More information about the training-materials-updates mailing list