[BL training-materials-updates] slides: yocto-recipe-extra: replace base_contains by bb.utils.contains
Quentin Schulz
quentin.schulz at bootlin.com
Sat Aug 18 17:11:27 CEST 2018
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=b114f9372c26641a98a6cffa40c793478951cf75
>---------------------------------------------------------------
commit b114f9372c26641a98a6cffa40c793478951cf75
Author: Quentin Schulz <quentin.schulz at bootlin.com>
Date: Sat Aug 18 17:11:27 2018 +0200
slides: yocto-recipe-extra: replace base_contains by bb.utils.contains
base_contains is deprecated and throws a warning when used.
Signed-off-by: Quentin Schulz <quentin.schulz at bootlin.com>
>---------------------------------------------------------------
b114f9372c26641a98a6cffa40c793478951cf75
slides/yocto-recipe-extra/yocto-recipe-extra.tex | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/slides/yocto-recipe-extra/yocto-recipe-extra.tex b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
index c0ce33d..d3b9bf9 100644
--- a/slides/yocto-recipe-extra/yocto-recipe-extra.tex
+++ b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
@@ -62,7 +62,7 @@ PACKAGECONFIG[openvpn] = "--enable-openvpn, \
\begin{itemize}
\item Some values can be set dynamically, thanks to a set of
functions:
- \item \code{base_contains(variable, checkval, trueval,
+ \item \code{bb.utils.contains(variable, checkval, trueval,
falseval, d)}: if \code{checkval} is found in
\code{variable}, \code{trueval} is returned; otherwise
\code{falseval} is used.
@@ -70,9 +70,9 @@ PACKAGECONFIG[openvpn] = "--enable-openvpn, \
\begin{block}{}
\begin{minted}[fontsize=\tiny]{sh}
PACKAGECONFIG ??= " \
- ${@base_contains('DISTRO_FEATURES', 'wifi','wifi', '', d)} \
- ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluetooth', '', d)} \
- ${@base_contains('DISTRO_FEATURES', '3g','3g', '', d)}"
+ ${@bb.utils.contains('DISTRO_FEATURES', 'wifi','wifi', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth','bluetooth', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', '3g','3g', '', d)}"
\end{minted}
\end{block}
\end{itemize}
More information about the training-materials-updates
mailing list