CW10 Duplicate Target Folder

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW10 Duplicate Target Folder

1,367 Views
WHookway
Contributor III

Hi,

I have a M52259EVB board and have created a test application which builds and runs.  Within the same project I created a EVB51JM build configuration which also runs.  When I build the 51jm a folder is created called m51jmevb_... with the sources folder and the appropriately created files, s19, xMap, sources.mk etc.  If I build the 51jm a second time a new sub-folder is created within this same project with the same name, m51jmevb_....., this folder has a Sources subfolder and a subdir,mk file within it.  This build has rebuilt the sources.mk, objects.mk, makefile, and the .args file.  The elf, S19 and xMap file were not rebuilt.  The subdir.mk file has the following in it:

 

OBJ_SRCS_QUOTED += \"../m51jmevb_Int_Flash_Debug/Sources/main.obj"

OBJ_SRCS += \../m51jmevb_Int_Flash_Debug/Sources/main.obj

 

Any thoughts why this directory is being added?

Thanks,

Will

Labels (1)
3 Replies

730 Views
frankbaird
Contributor III

William,

Did you ever get this fixed? It seems I am having a very similar problem, over 5 years later.

0 Kudos
Reply

730 Views
J2MEJediMaster
Specialist I

This is part of the Eclipse build process with CodeWarrior. A second sub-directory, Sources, is made that contains a number of files such as *.mk, *.args,*.d and *.eln, that you have seen. A subdirectory based on the launch configuration and project name also appears, and this is where assorted make files and the final linked binary file appear.

 

---Tom

0 Kudos
Reply

730 Views
WHookway
Contributor III

Tom,

 

Thanks for the reply, but let me clarify.  I end up with 3 Sources folders, and the third one only appears after a second build from a clean.  So after the first build I have the following directory structure:

 

mqxTest2

    m51jmevb_Int_Flash_Debug

        Sources

            main.args

            main.d

            main.obj

            subdir.mk

        makefile

        mqxTest2_51.args

        mqxTest2_51.elf

        mqxTest2_51.elf.s19

        mqxTest2_51.elf.xMAP

        objects.mk

        sources.mk

    m52259evb_Ext_MRAM_Debug

    m52259evb_Int_Flash_Debug

    m52259evb_Int_Flash_Release

    Project_Settings

    Sources

        main.c

        main.h

        rtcs_init.c

        usbd_init.c

 

*******The above all looks fine, but if I do another build (without a clean) I get the following added:

 

 

mqxTest2

    m51jmevb_Int_Flash_Debug

        m51jmevb_Int_Flash_Debug   ***

            Sources                                     ***

               subdir.mk                               ***

        Sources

            main.args

            main.d

            main.obj

            subdir.mk

        makefile                                       File rebuilt

        mqxTest2_51.args                    File rebuilt

        mqxTest2_51.elf                        File untouched

        mqxTest2_51.elf.s19                File untouched

        mqxTest2_51.elf.xMAP              File untouched

        objects.mk                                   File rebuilt

        sources.mk                                 File rebuilt

    m52259evb_Ext_MRAM_Debug

    m52259evb_Int_Flash_Debug

    All else is the same

 

It is the addition of the 2 directories and the one file that I don't understand that are being added

on the subsequent build.  Why would a subsequent build ever add anything new to the build?

 

Thanks,

Will