[bootlin/training-materials updates] master: yocto: slides: binary packages: rewrite to be based on bin_package.bbclass (c07b81ce)

Luca Ceresoli luca.ceresoli at bootlin.com
Fri Nov 11 14:57:07 CET 2022

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


commit c07b81ceb1606d65828d32c33340de77518107c3
Author: Luca Ceresoli <luca.ceresoli at bootlin.com>
Date:   Fri Nov 11 14:50:10 2022 +0100

    yocto: slides: binary packages: rewrite to be based on bin_package.bbclass
    Closes https://github.com/bootlin/training-materials/issues/127
    Suggested-by: Alexandre Belloni <alexandre.belloni at bootlin.com>
    Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>


 .../yocto-recipe-advanced/yocto-recipe-advanced.tex | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
index 20a33c73..29f77bc1 100644
--- a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
+++ b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
@@ -267,11 +267,22 @@ do_install() {
   \frametitle{Specifics for binary packages}
-    \item It is possible to install binaries into the generated root
-      filesystem.
-    \item Set the \code{LICENSE} to \code{CLOSED}.
-    \item Use the \code{do_install} task to copy the binaries into the
-      root file system.
+    \item In some cases you only need to install pre-built files into the
+      generated root filesystem
+      \begin{itemize}
+        \item E.g.: firmware blobs
+      \end{itemize}
+    \item \code{bin_package.bbclass} simplifies this
+      \begin{itemize}
+        \item Disables \code{do_configure} and \code{do_compile}
+        \item Provides a default \code{do_install} that copies whatever is
+          in \code{S} (useful e.g. when extracting a pre-built RPM/DPKG)
+      \end{itemize}
+    \item Additionally you probably need:
+      \begin{itemize}
+        \item Remember to set the \code{LICENSE} to \code{CLOSED} if applicable
+        \item You probably should also \code{inherit allarch}
+      \end{itemize}

More information about the training-materials-updates mailing list