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.

FC: howto clean up A8 binaries only in Framework-Components



Hi,

I am trying to re-build the A8 binaries in framework_components_3_21_01_26 using a different ARM toolchain. I added a simple config.bld (attached1346.config.bld.txt) and the makefile targets as in below.

fc:

    $(FC_ENV) $(XDC_INSTALL_DIR)/xdc -PR $(FC_INSTALL_DIR)/packages/

fc_clean:

    $(CE_ENV) $(XDC_INSTALL_DIR)/xdc clean -PR $(FC_INSTALL_DIR)/packages/

But the problem is that 'fc_clean' removes ALL the binaries, but I want to keep all the non-A8 binaries, since I don't re-build them.

So my question is how to just only clean up the A8 binaries before re-build? Or it does not need a clean-up and all the A8 binaries will be re-created with 'xdc -PR' regardless?

Thanks,

-Bin.

  • Since your config.bld directs XDC to build only for GCArmv5T, a complete rebuild of the system will build only for that target.  And since config.bld is now newer than all the binaries then XDC will rebuild the whole system for the GCArmv5T target only.

    However, to answer your question...I believe you can issue the "clean,v5T" xdc goal to clean just A8 binaries.

    Regards,

    - Rob

  • Hi Rob, thanks for the quick response.

    How to use 'clean,v5T' xdc goal exactly? Please forgive me that I just have a very limited knowledge of xdc/bios.

    I tried '$(CE_ENV) $(XDC_INSTALL_DIR)/xdc clean,v5T -PR $(FC_INSTALL_DIR)/packages/', but got the following error.

    gmake[1]: *** No rule to make target `clean,v5T'.  Stop.

  • Hmm, have you done a build of your FC tree since changing your config.bld?

    config.bld defines what targets to build.  If a target is not specified to be built then the package.mak file won't have any support for that target.

    FYI, here's more info on what I was suggesting: http://rtsc.eclipse.org/docs-tip/Command_-_xdc
    Search for "clean,trg".

    Regards,

    - Rob

     

  • While looking at the log deeply, I see the failure happens in packages/ti/sdo/fc/ecpy/, which does not support v5T target, so its package.mak does not have 'clean,v5T' target.

    by adding '-k' option to 'xdc clean,v5T' bypassed this failure.

    Thank you very much for the help Rob.

     

    Regards,

    -Bin.