RIOT/Makefile.include: added indicating of possibe conflicting features on compile#2076
Conversation
|
To give a little motivation for this PR: on stm32f4discovery boards there are the same pins for the |
|
Is it possible to detect different kinds of conflicts? For the stm32f4discovery Board: Can I say something like: Without getting and error for: |
|
@brummer-simon unfortunately no, the conflicting features are just parsed and if two (or more) are present in the required features of the current application the warning will be shown. |
bc44777 to
59588ee
Compare
|
Hm, I think this solution is sub-optimal. By just defining conflicts through their features I fear we end up with more false negatives then actual conflicts. The problem is I don't really have a better idea for now. Fast idea - how about this: |
|
Basically I agree with you. But regarding your solution, isn't it a problem that by defualt the |
|
@haukepetersen I hope that such conflicts are the exception. I don't know, I'm not sticking on this PR. |
|
Yep, @PeterKietzmann you are right. But the same is true for the feature based solution, right? I guess we have to think about it some more... |
|
right |
59588ee to
fbe8879
Compare
|
Ok, I changed the procedure to allow defining groups of conflicting features. The number of groups is not limited. Groups are separated with a whitespace, e.g.: The warning only appears iff all required features are present in a conflict group. |
|
Please add a |
|
(And also a |
|
I do like this solution, is @haukepetersen also happy? A README would be nice, sure... |
fbaed1b to
0e82343
Compare
|
added |
|
Seems like a nice solution. Well done! |
cfd8b1e to
9e47c43
Compare
|
I would ACK this |
9f184dd to
45554bf
Compare
a0bbfd5 to
459b7de
Compare
|
@PeterKietzmann @phiros I removed the test from the |
|
@phiros may I assign you? I like this feature but as there had been some discussions in the past I would like to pass this PR so someone with more experience in all that makefile stuff and with a stronger opinion on that. |
|
Travis says there are several trailing whitespaces... |
|
@PeterKietzmann I removed the trailing whitespaces. |
fc4a9ae to
7f43a6b
Compare
|
@phiros, @PeterKietzmann , @BytesGalore, what's the current state? |
7f43a6b to
3d6f6f3
Compare
|
@PeterKietzmann should I squash? |
|
I hoped that someone with more knowledge in the make system (e.g. @phiros) would give feedback. But as nobody NACKed this PR for a long time and this is optional more or less an optinal feature I would finally ACK this now. Yes, please squash! |
|
@PeterKietzmann, did you try? If yes and it works, let's go |
3d6f6f3 to
f9a79ee
Compare
|
squashed. |
|
Okay, I'll do it now. ACK and go |
RIOT/Makefile.include: added indicating of possibe conflicting features on compile
Using
SPI0andDAC0on thestm32f4discoveryat the same time, may result in unexpected behaviour as theDAC0is internally wired with theSPI0port of the board.With this PR the user is informed during compile time whenever multiple, probably conflicting, features set in the variable
EXPECT_CONFLICTin theMakefile.featuresof the individual board, are also required by a project.