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

Add default minimal device config files. #2

Merged
merged 2 commits into from
Mar 11, 2025

Conversation

iabdalkader
Copy link
Collaborator

No description provided.

@iabdalkader iabdalkader requested a review from dpgeorge March 11, 2025 08:26
@iabdalkader iabdalkader force-pushed the add_default_cfg_files branch from 5ad076d to 51bbb88 Compare March 11, 2025 09:30
@@ -685,7 +685,7 @@ def main():
parser.add_argument(
"--config-dir",
type=str,
default="",
default=Path(os.path.dirname(__file__)) / "build/config",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Perhaps instead of this, if the config file is not found, search for it in build/config? This way the Makefile could still pass a custom config dir, like the board dir, that contains no files.

Copy link
Member

Choose a reason for hiding this comment

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

I'd rather not have any auto-things, it's too easy for things to go wrong, eg accidentally use the wrong file and you don't realise.

Having a default like you've got it is good.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note though that if you do want to customize a config, you'll have to pass its directory in the Makefile somehow to --config-dir.

This change allows AToC config to use a default config file from
the toolkit's config dir, if custom one is not required (which is
true for most use cases). A custom config file can still be used
and customized by boards, by passing a different `--config-dir`.

Signed-off-by: iabdalkader <[email protected]>
@dpgeorge dpgeorge force-pushed the add_default_cfg_files branch from 51bbb88 to 23f0c5a Compare March 11, 2025 11:06
@dpgeorge dpgeorge merged commit 23f0c5a into out-of-tree Mar 11, 2025
@dpgeorge dpgeorge deleted the add_default_cfg_files branch March 11, 2025 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants