-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make: Prepend path to dependency info files with sed #778
Conversation
@Kijewski what do you think? |
Added change to native as well (which duplicates this code to filter out riot/posix includes). |
@@ -18,7 +18,8 @@ include $(RIOTBASE)/Makefile.base | |||
$(BINDIR)%.o: %.c | |||
$(AD)$(CC) $(CFLAGS) $(filter-out $(EXCLUDES),$(INCLUDES)) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -c $*.c -o $(BINDIR)$*.o | |||
@$(CC) $(CFLAGS) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -MM $*.c > $(BINDIR)$*.d | |||
@printf "$(BINDIR)" | cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d | |||
@# prepend path to dependency info file | |||
$(AD)sed -i -e "1s|^|$(BINDIR)|" $(BINDIR)$*.d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you just pipe the line 20 through sed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason.
addresses: RIOT-OS#778 (comment)
@haukepetersen could you test this with one board for each remaining family please? |
addresses: RIOT-OS#778 (comment)
Rebased and updated because #804 was merged. |
addresses: RIOT-OS#778 (comment)
rebased |
addresses: RIOT-OS#778 (comment)
rebased Tested on native, msba2, chronos. I think it's ready to be merged. |
ACK. |
@OlegHahm Did you want to test this? |
The old way was error prone due to it's use of a fixed path file and confusing. closes RIOT-OS#775
addresses: RIOT-OS#778 (comment)
rebased, cleaned up a bit |
@OlegHahm ping |
ACK |
Make: Prepend path to dependency info files with sed
addresses: RIOT-OS#778 (comment)
The old way was error prone due to it's use of a fixed path file and confusing.
closes #775
buildtest passed - needs testing.
Tested on: