[PATCH] libfdt: Use libfdt shared library for testcases

Jon Loeliger jdl at jdl.com
Sat Jan 3 02:41:02 EST 2009


> Link the testcases against the libfdt.so that is built and use
> it for the testsuite verification.
> 
> Signed-off-by: Josh Boyer <jwboyer at linux.vnet.ibm.com>

Not applied.  Something is wrong here, not quite sure what.

First, after I apply this patch, when I do:

    $ make clean
    $ make check

I get this:

     DEP flattree.c
     DEP dtc.c
     DEP data.c
     DEP checks.c
    CHK version_gen.h
    UPD version_gen.h
     CC tests/get_mem_rsv.o
    cc: -lfdt: linker input file unused because linking not done
     CC libfdt/fdt.o
     CC libfdt/fdt_ro.o
     CC libfdt/fdt_wip.o
     CC libfdt/fdt_sw.o
     CC libfdt/fdt_rw.o
     CC libfdt/fdt_strerror.o
     LD libfdt/libfdt.so
    /usr/bin/ld: cannot find -lfdt
    collect2: ld returned 1 exit status
    make: *** [libfdt/libfdt.so] Error 1

Doing just:

    $ make
    $ make check

seems to clear it up and it finishes building.
So that is promising.

However, the "make check" yields funny results:

    $ make check

    ********** TEST SUMMARY
    *     Total testcases:1197
    *                PASS:88
    *                FAIL:0
    *   Bad configuration:0
    * Strange test result:1109
    **********

Not sure there at all..

jdl



More information about the devicetree-discuss mailing list