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.

where to add “-g” parameter to the codecs.videnc_copy makefile for gcc to compile

Hi,

    As I want to debug my  "xx.x64p" file using ccs4 ,so I need to add "-g" parameter  to gcc.But I can't find the proper file to add it.

I paste the makefile below:

   #  ======== makefile ========#  GNUmake-based makefile.#
# include the files that defines XDC package, paths and build rules

EXAMPLES_ROOTDIR := $(CURDIR)/../../../../../..
include $(EXAMPLES_ROOTDIR)/xdcpaths.mak
# [CE] add the examples directory itself to the list of paths to packages

XDC_PATH := $(EXAMPLES_ROOTDIR);$(XDC_PATH)
include $(EXAMPLES_ROOTDIR)/buildutils/xdcrules.mak

##  @(#) ti.sdo.ce.examples.codecs.videnc_copy; 1, 0, 0,240; 6-19-2010 19:55:38; /db/atree/library/trees/ce/ce-o16x/src/

 

Any help will be appreciated.

Regards,

David

  • dazhou why said:

        As I want to debug my  "xx.x64p" file using ccs4 ,so I need to add "-g" parameter  to gcc.But I can't find the proper file to add it.

    The example codecs are built with XDC, and as such you would modify config.bld to add a -g option to the compile.  For the ti.sdo.ce.examples.codecs.videnc_copy package, you would edit ../../../../../../config.bld (in <CE_INSTALL_DIR>/examples).  Add to the following line:
        C64P.ccOpts.prefix += remarks;
    e.g.:
        C64P.ccOpts.prefix += remarks + " -g";

    BTW, gcc is not used for the C64P target.  That target uses TI-supplied codegen tools.

    Regards,

    - Rob