Skip to content
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

Merged
merged 4 commits into from Apr 8, 2014

Conversation

LudwigKnuepfer
Copy link
Member

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:

  • msba2
  • wsn430-v1_3b
  • msb-430h
  • chronos
  • msb-430
  • pttu
  • mbed_lpc1768
  • native
  • telosb
  • redbee-econotag
  • wsn430-v1_4
  • avsextrem

@LudwigKnuepfer LudwigKnuepfer added this to the Release NEXT MAJOR milestone Feb 25, 2014
@mehlis
Copy link
Contributor

mehlis commented Feb 25, 2014

@Kijewski what do you think?

@LudwigKnuepfer
Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason.

LudwigKnuepfer added a commit to LudwigKnuepfer/RIOT that referenced this pull request Feb 26, 2014
@LudwigKnuepfer
Copy link
Member Author

@haukepetersen could you test this with one board for each remaining family please?

LudwigKnuepfer added a commit to LudwigKnuepfer/RIOT that referenced this pull request Mar 3, 2014
@LudwigKnuepfer
Copy link
Member Author

Rebased and updated because #804 was merged.

LudwigKnuepfer added a commit to LudwigKnuepfer/RIOT that referenced this pull request Mar 5, 2014
@LudwigKnuepfer
Copy link
Member Author

rebased

LudwigKnuepfer added a commit to LudwigKnuepfer/RIOT that referenced this pull request Mar 10, 2014
@LudwigKnuepfer
Copy link
Member Author

rebased

Tested on native, msba2, chronos.

I think it's ready to be merged.

@Kijewski
Copy link
Contributor

ACK.

@LudwigKnuepfer
Copy link
Member Author

@OlegHahm Did you want to test this?

@LudwigKnuepfer
Copy link
Member Author

rebased, cleaned up a bit

@LudwigKnuepfer
Copy link
Member Author

@OlegHahm ping

@OlegHahm
Copy link
Member

OlegHahm commented Apr 8, 2014

ACK

OlegHahm added a commit that referenced this pull request Apr 8, 2014
Make: Prepend path to dependency info files with sed
@OlegHahm OlegHahm merged commit 1e9a43d into RIOT-OS:master Apr 8, 2014
dangnhat pushed a commit to vanhieubk/RIOT that referenced this pull request Apr 25, 2014
@LudwigKnuepfer LudwigKnuepfer deleted the dependency_files branch July 28, 2014 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make: purpose of the dependency info concatenation
5 participants