[bootlin/training-materials updates] master: yocto: slides: mention how to enable PACKAGECONFIG features in .conf files (76107063)

Luca Ceresoli luca.ceresoli at bootlin.com
Mon Oct 3 17:48:05 CEST 2022


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

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

commit 761070632798160c432f8e371a0b7353731e3923
Author: Luca Ceresoli <luca.ceresoli at bootlin.com>
Date:   Mon Oct 3 15:42:09 2022 +0200

    yocto: slides: mention how to enable PACKAGECONFIG features in .conf files
    
    Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>


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

761070632798160c432f8e371a0b7353731e3923
 slides/yocto-recipe-extra/yocto-recipe-extra.tex | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/slides/yocto-recipe-extra/yocto-recipe-extra.tex b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
index e1dc5d83..e232ff70 100644
--- a/slides/yocto-recipe-extra/yocto-recipe-extra.tex
+++ b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
@@ -150,6 +150,27 @@ PACKAGECONFIG[openvpn] = "--enable-openvpn,           \
   \end{block}
 \end{frame}
 
+\begin{frame}[fragile]
+  \frametitle{Enabling PACKAGECONFIG features}
+  \begin{itemize}
+    \item In a \code{.bbappend} of the recipe, just append to \code{PACKAGECONFIG}
+      \begin{block}{}
+        \begin{minted}{sh}
+PACKAGECONFIG:append = " <feature>"
+PACKAGECONFIG:append = " tui"
+        \end{minted}
+      \end{block}
+
+    \item In a config file (e.g. distro conf)
+      \begin{block}{}
+        \begin{minted}{sh}
+PACKAGECONFIG:append:pn-<recipename> = " <feature>"
+PACKAGECONFIG:append:pn-gdb = " tui"
+        \end{minted}
+      \end{block}
+  \end{itemize}
+\end{frame}
+
 \subsection{Conditional features}
 
 \begin{frame}[fragile]




More information about the training-materials-updates mailing list