[bootlin/training-materials updates] master: slides/yocto-recipe-extra: give additional example (f9ac7f9a)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Nov 8 13:29:59 CET 2023


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

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

commit f9ac7f9a9abcad07983093b128ad4de12699fa22
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Nov 8 13:29:59 2023 +0100

    slides/yocto-recipe-extra: give additional example
    
    Using anynomous Python functions
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


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

f9ac7f9a9abcad07983093b128ad4de12699fa22
 slides/yocto-recipe-extra/yocto-recipe-extra.tex | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/slides/yocto-recipe-extra/yocto-recipe-extra.tex b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
index 4de9fc40..1dedbd64 100644
--- a/slides/yocto-recipe-extra/yocto-recipe-extra.tex
+++ b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
@@ -107,6 +107,7 @@
 
 \begin{frame}[fragile]
   \frametitle{Python code examples}
+  \small
   \begin{minted}{python}
 # Anonymous function
 python __anonymous() {
@@ -124,8 +125,10 @@ python do_settime() {
 do_install() {
     echo "Build OS: ${@os.uname()[0].lower()}"
 }
-
   \end{minted}
+Real life example of anonymous function:
+\footnotesize
+\url{https://github.com/linux4sam/meta-atmel/blob/kirkstone/recipes-kernel/linux/linux.inc}
 \end{frame}
 
 \subsection{Variable flags}




More information about the training-materials-updates mailing list