This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-TDAX: [TDA4X] Concerto build system, passing a global flag

Part Number: PROCESSOR-SDK-TDAX

Hello,

Our case is the following - we are integrating our code into TI's codebase by surrounding it with #ifdef statements. We need to pass a flag, that is globally visible.
All make commands are invoked from vision_apps, it knows about all the other modules, so we tried including our flag in vision_apps/vision_apps_build_flags.mak, in the DEFS variable with no success.
Is there a way to include a flag in concerto only once so that it is visible in all modules (tiovx, imaging, vision_apps)?

Regards,
Todor

  • Hello Todor,

    In the tiovx project, we have a file called "build_flags.mak" which is included in the vision_apps, tiovx and imaging Makefiles for this purpose.  If you define a new flag in this file (for example "NEW_FLAG"), you can then add the following lines to the Makefiles in imaging, tiovx and vision_apps so that it will be visible in all of these projects:

    ifeq ($(NEW_FLAG), yes)
    BUILD_DEFS += NEW_FLAG
    endif

    Regards,

    Lucas