Compile with DEBUG=yes - Error in u-boot: "DEBUG must be boolean"

  • Dear all,

    I try to complie LibreELEC with the following setup:

    Code
    PROJECT=Amlogic DEVICE=LePotato ARCH=arm DEBUG=yes VALGRIND=yes make image

    After several hours of compilation, this happens:

    Code
    OBJCOPY u-boot.hex
    Makefile:156: *** DEBUG must be boolean.  Stop.
    make[2]: *** [/home/lux/official/LibreELEC.tv/build.LibreELEC-LePotato.arm-9.0-devel/u-boot-a43076c/Makefile:918: acs.bin] Error 2
    make[1]: *** [Makefile:147: sub-make] Error 2
    make[1]: Leaving directory '/home/lux/official/LibreELEC.tv/build.LibreELEC-LePotato.arm-9.0-devel/u-boot-a43076c'
    Makefile:12: recipe for target 'image' failed
    make: *** [image] Error 2

    According to Compile [LibreELEC.wiki] DEBUG=yes is right, but seems to be a problem. Any help?

    Btw.: Compiling without DEBUG/VALGRIND went smoothly beforehand. Same code base.

    Thanks!

    Hauke

    EDIT: Stupid me - there is a path to the Makefile - will have a look myself, but it's gone right now, since I started over with make clean... Argh, think before you write/delete... Long day...

    Edited once, last by Hauke (March 11, 2018 at 5:00 PM).

  • OK, inserted into

    /LibreELEC.tv/build.LibreELEC-LePotato.arm-9.0-devel/u-boot-a43076c/Makefile

    at top the line

    DEBUG=1

    So now it eval's as boolean if needed...hope that does not break other DEBUG flags. At least, it currently continues compiling.

    The offending file seems to be the

    /LibreELEC.tv/build.LibreELEC-LePotato.arm-9.0-devel/u-boot-a43076c/arch/arm/cpu/armv8/gxl/firmware/acs/Makefile

    but somehow I could not get this debugged - my understanding of Makefiles is not good enough.

    @whoever maintains this repo: Perhaps have a look at some point...

  • Short update: With DEBUG=1 as mentioned it compiles through, however, VALGRIND=yes is not supported for LePotato/AMlogic it seems. Leaving VALGRIND option out and it's OK.