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.

How to modify RDK CFLAGS?



I am changing my toolchain from ARAGO(gcc-4.5.3) to LINARO(gcc-5.3.1).

As gcc-5.x above interpret inline symbol differently, I need to add a GCC flag "-std=gnu99 -fgnu89-inline" as a patch.

How can I modify/add RDK CFLAGS to compile ti_tools and MCFW?

  • What platform are you using ?
    What is the package and version please ?

    You want to compile the Linaro toolchain with "-std=gnu99 -fgnu89-inline" ?
  • How can I modify/add RDK CFLAGS to compile ti_tools and MCFW?


    You need work with linaro tool chain open source forums for appropriate response.

    What are the ti_tools and MCFW?

    Thank you.
  • Hi Titus,

    What platform are you using ?
    What is the package and version please ?
    >>> I am using ti814x platform and ipnc rdk 3.8.

    You want to compile the Linaro toolchain with "-std=gnu99 -fgnu89-inline" ?
    >>> Yes i want to add/append flag to compilation to avoid "inline error because of gcc 5.x or higher" in whole rdk

    I am able to do it in ipnc_app directory, for ti_tools and ipnc_mcfw module I needed help.
    1) In ipnc_mcfw i can do it with CFLAGS_GLOBAL_$(CORE) for core specific module in ipnc_rdk/ipnc_mcfw/makerules/build_config.mk

    but In ti_tools syslink first need to compiled to go ahead with mcfw part so, I need help specific to syslink.

    To be specific, How i can append cflags into syslink compilation?

    Thanks for responding, awaiting your response.
  • Hi Ravi,

    CFLAGS are usually configured in Makefile (or Rules.make, config.mk).

    For example in u-boot, CFLAGS are configured in these two files:
    u-boot/config.mk
    u-boot/tools/Makefile

    In linux kernel, CFLAGS are configured with KBUILD_CFLAGS:

    linux-kernel/Makefile
    linux-kernel/arch/arm/Makefile

    For EZSDK syslink, we also have Makefiles like:
    syslink_2_20_02_20/packages/ti/syslink/utils/hlos/usr/Linux/Makefile
    syslink_2_20_02_20/packages/ti/syslink/buildutils/hlos/usr/Makefile.inc

    I think for IPNC RDK should be something similar. You just need to find the Makefile used to build the syslink module.

    Regards,
    Pavel