Skip to content

Commit

Permalink
slides/yocto-recipe-extra: give additional example
Browse files Browse the repository at this point in the history
Using anynomous Python functions

Signed-off-by: Michael Opdenacker <[email protected]>
  • Loading branch information
Michael Opdenacker committed Nov 8, 2023
1 parent 6a592f1 commit f9ac7f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion slides/yocto-recipe-extra/yocto-recipe-extra.tex
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ \subsection{Using Python code in metadata}
\begin{frame}[fragile]
\frametitle{Python code examples}
\small
\begin{minted}{python}
# Anonymous function
python __anonymous() {
Expand All @@ -124,8 +125,10 @@ \subsection{Using Python code in metadata}
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}
Expand Down

0 comments on commit f9ac7f9

Please sign in to comment.