paulgazz / kmax

A collection of analysis tools for Kconfig and Kbuild constraints.
42 stars 21 forks source link

Preserve 'm' in klocalizer output #253

Open paulgazz opened 6 months ago

paulgazz commented 6 months ago

Right now, klocalizer always sets to y by default. Add an option to look at the input configuration options to decide when to use m instead of y.

This will help with preserving the input configuration file and also help when using diff to see dependent configuration options as in the following example:

git checkout 6fc88c354f3af83ffa2c285b86e76c759755693f
make defconfig
cp .config defconfig
klocalizer --repair defconfig --define CONFIG_MEM_SOFT_DIRTY
make olddefconfig
cp .config repaired_defconfig
diff defconfig repaired_defconfig