opaquesystems / openkaos

OpenKaOS is a developer toolkit for building lightweight Linux platforms for a wide variety of uses
GNU General Public License v2.0
0 stars 1 forks source link

bld-toolchain.sh - check test results #100

Open opsyseng opened 8 years ago

opsyseng commented 8 years ago

After glibc is built for the first pass in the toolchain, we build the test code to check that its pointing to the correct interpreter:

cd $PBBLD/src1 echo " [.] testing toolchain " echo 'main(){}' > dummy.c $LFS_TGT-gcc dummy.c readelf -l a.out | grep ': /tools' 1>>$PBLOG/strap_tooladj.log 2>>$PBLOG/strap_tooladj.err This should produce output:

[Requesting program interpreter: $TOOLS/lib64/ld-linux-x86-64.so.2]

The toolchain script doesn't actually check the result that is stored in the log. Since this can totally hose up a build if it breaks for some reason, we probably should add some code to the script to check and alter the developer.