Modifying headers not causing sources to rebuild

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

cross mob
Anonymous
Not applicable

Looks like the dependency mechanism is broken in SDK 2.1.1/Win7.  The .d files are being created but changes to headers are not triggering rebuilds as expected.  This has bit me a couple of times.

0 Likes
1 Solution
Anonymous
Not applicable

The path in generated .d files is not correct.

To fix this change the definition of MAKE_DEP_FILE in WICED\Wiced-Smart\spar\gcc\rules_cm3_gcc.inc to:

MAKE_DEP_FILE = $(XCC) $(C_FLAGS) $(LIST_OPTIONS) -MM -MP -MF $(@:$(suffix $@)=.d) -MT $@ $<

View solution in original post

1 Reply
Anonymous
Not applicable

The path in generated .d files is not correct.

To fix this change the definition of MAKE_DEP_FILE in WICED\Wiced-Smart\spar\gcc\rules_cm3_gcc.inc to:

MAKE_DEP_FILE = $(XCC) $(C_FLAGS) $(LIST_OPTIONS) -MM -MP -MF $(@:$(suffix $@)=.d) -MT $@ $<