How to design which file to be build on the modustollbox IDE?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Dave_Long
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

Hi:

    In one project,I found tow same named fuction in the same .c file,how the modustollbox design which funtion to be build?

  

LODA_2997366_0-1614868087692.png

LODA_2997366_1-1614868152416.png

 

0 Likes
1 Solution
AlanH_86
Employee
Employee
100 replies posted 50 replies posted 25 solutions authored

If you look in the directory emwin/latest-v5.X/ you will find a file called ".cyignore"

The modus build system looks for that file... and then it it ignore all files/directories listed in that file.

You will see in that .cyignore it has

Config

Sample

Tool

Which is why those are ignored.

Alan

 

View solution in original post

0 Likes
2 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Dave_Long

When two files of the same name exist in a ModusToolbox application, the auto-discovery selects the file that has the smaller path relative to the application directory. 

In your case, the configuration file in the folder emWin_config will be selected.

Thanks and Regards,
Rakshith M B
0 Likes
AlanH_86
Employee
Employee
100 replies posted 50 replies posted 25 solutions authored

If you look in the directory emwin/latest-v5.X/ you will find a file called ".cyignore"

The modus build system looks for that file... and then it it ignore all files/directories listed in that file.

You will see in that .cyignore it has

Config

Sample

Tool

Which is why those are ignored.

Alan

 

0 Likes