[bootlin/training-materials updates] master: labs/autotools-usage: update/fixes (f2cdd4dc)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Apr 13 14:06:45 CEST 2022


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

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

commit f2cdd4dcf617928f0ccbfd32f83a5b9edbb9567e
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Wed Apr 13 14:05:08 2022 +0200

    labs/autotools-usage: update/fixes
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


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

f2cdd4dcf617928f0ccbfd32f83a5b9edbb9567e
 labs/autotools-usage/autotools-usage.tex | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/labs/autotools-usage/autotools-usage.tex b/labs/autotools-usage/autotools-usage.tex
index 2a0283ca..fcc3f0a8 100644
--- a/labs/autotools-usage/autotools-usage.tex
+++ b/labs/autotools-usage/autotools-usage.tex
@@ -14,7 +14,7 @@
 Go to the \code{\$HOME/__SESSION_NAME__-labs/} directory.
 
 To start our exploration of {\em autotools}, we'll use the {\bf
-  ethtool} set of programs. Download the 3.18 version from the project
+  ethtool} set of programs. Download the 5.17 version from the project
 home page at
 \url{https://www.kernel.org/pub/software/network/ethtool/} and extract
 it.
@@ -34,8 +34,10 @@ Read the output of \code{./configure --help}.
 
 \section{First build}
 
-Run \code{./configure}, and look at the output. Also look at the
-contents of the \code{config.log} file.
+Run \code{./configure}, and look at the output. You may need to
+install the \code{libmnl-dev} package if it is not already installed
+on your system. Also look at the contents of the \code{config.log}
+file.
 
 Then, run the build with \code{make}.
 
@@ -64,7 +66,7 @@ and move to this directory. Then, call the \code{configure} script of
 {\em ethtool}:
 
 \begin{verbatim}
-../ethtool-3.18/configure
+../ethtool-5.17/configure
 \end{verbatim}
 
 This will abort with an error: it doesn't want to do {\em out of tree}
@@ -82,10 +84,17 @@ apt install gcc-arm-linux-gnueabihf
 Then you can do:
 
 \begin{verbatim}
-../ethtool-3.18/configure --host=arm-linux-gnueabihf
+../ethtool-5.17/configure --host=arm-linux-gnueabihf
 \end{verbatim}
 
-Start the build, and verify that the cross-compiler is used.
+Start the build, and verify that the cross-compiler is used. The build
+will fail because {\em libmnl} isn't available on our system,
+cross-compiled for ARM. Let's build without {\em netlink} support to
+avoid the {\em libmnl} dependency.
+
+\begin{verbatim}
+../ethtool-5.17/configure --host=arm-linux-gnueabihf --disable-netlink
+\end{verbatim}
 
 \section{Overriding cache variables}
 




More information about the training-materials-updates mailing list