6 years, 4 months ago.

Does .mbedignore work for header files?

Hi,

I have 2 header files which have the same name, but they are located under different folders.

For example,

1st_folder/abc.h 2nd_folder/abc.h

Now I'd like to include abc.h from 2nd_folder, then 1) fill "1st_folder/abc.h" into .mbedignore file, but abc.h from 1st_folder is still included during building. 2) fill "1st_fodlder/*.h" into .mbedignore file, abc.h from 2nd_folder can be included correctly. But all header files in sub-folders under 1st_folder are excluded. It means 1st_folder/subfolder/def.h is also out of build, for example. It's unexpected.

Is it an issue? Or any misunderstandings?

My mbed cli version is 1.10.1.

Thanks.

Be the first to answer this question.