[bootlin/training-materials updates] master: labs/sysdev-thirdparty: add sufficient info in cross-file.txt (5cda7a52)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Sep 27 22:02:07 CEST 2022


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

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

commit 5cda7a52caf1ab29234d05778b96904af1a446f3
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Tue Sep 27 22:02:07 2022 +0200

    labs/sysdev-thirdparty: add sufficient info in cross-file.txt
    
    Just specifying the cross-compiler is not sufficient for meson: the
    build fails with:
    
    /lib/ld-uClibc.so.0: No such file or directory
    meson.build:1:0: ERROR: Executables created by c compiler arm-linux-gcc are not runnable.
    
    because it tries to run target executables on the build machine.
    
    Fix this by passing the appropriate [host_machine] section in
    cross-file.txt.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


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

5cda7a52caf1ab29234d05778b96904af1a446f3
 labs/sysdev-thirdparty/sysdev-thirdparty.tex | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/labs/sysdev-thirdparty/sysdev-thirdparty.tex b/labs/sysdev-thirdparty/sysdev-thirdparty.tex
index a6364f15..58978e80 100644
--- a/labs/sysdev-thirdparty/sysdev-thirdparty.tex
+++ b/labs/sysdev-thirdparty/sysdev-thirdparty.tex
@@ -730,6 +730,12 @@ Let's create the \code{../cross-file.txt} file with the below contents:
 \begin{verbatim}
 [binaries]
 c = 'arm-linux-gcc'
+
+[host_machine]
+system = 'linux'
+cpu_family = 'arm'
+cpu = 'armv7'
+endian = 'little'
 \end{verbatim}
 
 We also need to create a special directory for building:




More information about the training-materials-updates mailing list