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

persist changes made with menuconfig to overrides/ #270

Open
realnedsanders opened this issue Feb 24, 2023 · 3 comments
Open

persist changes made with menuconfig to overrides/ #270

realnedsanders opened this issue Feb 24, 2023 · 3 comments

Comments

@realnedsanders
Copy link

Using make br/menuconfig
saved to default config file workspaces/$workspace/.config
does not override any buildroot config options contained in any of the packages.

@paralin
Copy link
Collaborator

paralin commented Feb 24, 2023

@realnedsanders the changes you make with menuconfig are not persisted and will be overridden the next time "make configure" runs.

Instead, add a file at ./overrides/buildroot/myconfig and add the configuration options there. BR2_PACKAGE_NANO=y for example.

Then run "make configure" and it will apply the overrides.

I'll rename this issue because I've been thinking of a way to detect what was changed in menuconfig and automatically store it under overrides. Please use the approach above in the meantime.

@paralin paralin changed the title Workspace buildroot config does not override packages persist changes made with menuconfig to overrides/ Feb 24, 2023
@realnedsanders
Copy link
Author

Ahhh, that makes sense, I feel foolish.
Persisting the menuconfig options to overrides/ would be very convenient.
diff <(sort workspaces/.config_$workspace/final/buildroot) <(sort workspaces/$workspace/.config)
after the user exits menuconfig might be useful.

@paralin
Copy link
Collaborator

paralin commented Feb 24, 2023

In the kernel there's a script named diffconfig that generates those diffs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants