[FE training-materials-updates] slides/buildroot-new-packages: host <pkg>_DEPENDENCIES no longer derived from target

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Oct 14 22:15:05 CEST 2017

Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=e28dc32be28e4ee61ac03365ce7a2e40d8b73ce8


commit e28dc32be28e4ee61ac03365ce7a2e40d8b73ce8
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Sat Oct 14 22:15:05 2017 +0200

    slides/buildroot-new-packages: host <pkg>_DEPENDENCIES no longer derived from target
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>


 .../buildroot-new-packages.tex                     | 25 ++++++++++------------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/slides/buildroot-new-packages/buildroot-new-packages.tex b/slides/buildroot-new-packages/buildroot-new-packages.tex
index 3e62fd3..f185361 100644
--- a/slides/buildroot-new-packages/buildroot-new-packages.tex
+++ b/slides/buildroot-new-packages/buildroot-new-packages.tex
@@ -1173,7 +1173,7 @@ $(eval $(python-package))
-\begin{frame}{Target vs. host in the package infrastructure (1)}
+\begin{frame}{Target vs. host: package name and variable prefixes}
   \item Each package infrastructure provides a \code{<foo>-package}
     macro and a \code{host-<foo>-package} macro.
@@ -1188,28 +1188,25 @@ $(eval $(python-package))
-\begin{frame}{Target vs. host in the package infrastructure (2)}
+\begin{frame}{Target vs. host: variable inheritance}
   \item For many variables, when \code{HOST_BAZ_<var>} is not defined,
-    the package infrastructure uses \code{BAZ_<var>} instead: source,
-    site, version, license, etc.
+    the package infrastructure {\em inherits} from \code{BAZ_<var>}
+    instead.
-    \item E.g. defining \code{<PKG>_SITE} once is sufficient.
+    \item True for \code{<PKG>_SOURCE}, \code{<PKG>_SITE},
+      \code{<PKG>_VERSION}, \code{<PKG>_LICENSE},
+      \code{<PKG>_LICENSE_FILES}, etc.
+    \item Defining \code{<PKG>_SITE} is sufficient, defining
+      \code{HOST_<PKG>_SITE} is not needed.
+    \item It is still possible to override the value specifically for
+      the host variant, but this is rarely needed.
   \item But not for all variables, especially commands
     \item E.g. \code{HOST_<PKG>_BUILD_CMDS} is not inherited
       from \code{<PKG>_BUILD_CMDS}
-  \item \code{HOST_<PKG>_DEPENDENCIES} is handled specially:
-    \begin{itemize}
-    \item Derived automatically from \code{<PKG>_DEPENDENCIES}, after
-      prepending \code{host-} to all dependencies.
-    \item \code{FOO_DEPENDENCIES = bar host-baz} $\rightarrow$
-      \code{HOST_FOO_DEPENDENCIES = host-bar host-baz}.
-    \item Can be overridden if the dependencies of the host variant are
-      different than the ones of the target variant.
-    \end{itemize}

More information about the training-materials-updates mailing list