skiffos / SkiffOS

Any Linux distribution, anywhere.
https://skiffos.com
MIT License
685 stars 50 forks source link

persist changes made with menuconfig to overrides/ #270

Open realnedsanders opened 1 year ago

realnedsanders commented 1 year ago

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 commented 1 year ago

@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.

realnedsanders commented 1 year ago

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 commented 1 year ago

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