tools/refresh.sh: Accept defconfig path as argument - #20096
Open
ajuckler wants to merge 1 commit into
Open
Conversation
* Modify refresh.sh to also accept path to defconfig file(s) as argument * Update outdated script documentation and add the new argument Signed-off-by: Antoine Juckler <6445757+ajuckler@users.noreply.github.com>
ajuckler
requested review from
acassis,
jerpelea and
xiaoxiang781216
as code owners
September 9, 2026 10:02
acassis
approved these changes
Sep 9, 2026
jerpelea
approved these changes
Sep 9, 2026
| tools/refresh.sh is a tool for refreshing board configurations | ||
|
|
||
| USAGE: tools/refresh.sh [options] <board>:<config>+ | ||
| [options] <defconfig>+ |
Contributor
There was a problem hiding this comment.
but the origin code already support /path/to/defconfig, why do we need add /path/to?
Contributor
Author
There was a problem hiding this comment.
I believe you mean the opposite: current code supports /path/to but not /path/to/defconfig.
Honestly I didn't notice...
For background, I'm trying to refresh an out-of-tree configuration so I cannot use the <board>:<config> format. When I tried path/to/defconfig it failed so I modified the script to accept this type of argument as well. Supporting the full path doesn't seem harmful, but I can revert the changes in refresh.sh and only update the doc if you prefer.
Contributor
There was a problem hiding this comment.
yes, let's provide one method, but documentation it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
refresh.shto also accept defconfig file path(s) as argumentImpact
No direct impact, current functionalities are preserved
Testing
Run following 2 commands with attached output
$ ./tools/refresh.sh --defaults chip:stm32f7