Commit 7570e23
configuration: anchor relative WEST_CONFIG_x paths to "west topdir"
Fixes zephyrproject-rtos#871.
This could strictly speaking be considered as a backwards-compatible
change, but I don't think it should because: 1. who in their sane mind
would have intentionally relied on the behavior of their west commands
to change depending on the current directory!?
I think it is still very unlikely, but: 2. it's a bit more likely that
some people always run west commands from their topdir directory _and_
leveraged that to saved a little bit of typing with a relative
WEST_CONFIG_x definition(s). Or, maybe even used the same relative
$WEST_CONFIG_x value across workspaces, i.e: topdir1/$WEST_CONFIG_x and
topdir2/$WEST_CONFIG_x, etc. ?
This commit breaks 1. but preserves 2.
To be clear: this commit still does not "condone" relative WEST_CONFIG_x
values; I don't think we should document that. But it makes their behavior
_deterministic_ which is what matters.
Signed-off-by: Marc Herbert <[email protected]>1 parent a8ea1d7 commit 7570e23
1 file changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
| 178 | + | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
590 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
591 | 606 | | |
592 | 607 | | |
593 | 608 | | |
| |||
607 | 622 | | |
608 | 623 | | |
609 | 624 | | |
610 | | - | |
| 625 | + | |
611 | 626 | | |
612 | 627 | | |
613 | 628 | | |
| |||
637 | 652 | | |
638 | 653 | | |
639 | 654 | | |
640 | | - | |
| 655 | + | |
641 | 656 | | |
642 | 657 | | |
643 | 658 | | |
644 | 659 | | |
645 | 660 | | |
646 | 661 | | |
647 | 662 | | |
648 | | - | |
| 663 | + | |
649 | 664 | | |
650 | 665 | | |
651 | 666 | | |
| |||
0 commit comments