paulgazz / kmax

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

Prioritize architectures of compilation units in arch/ directories #188

Closed paulgazz closed 2 years ago

paulgazz commented 2 years ago

klocalizer uses a fixed-order list of architectures to try to localize when the architecture is not provided by the user. Optimize this ordering by looking for files given to include-mutex that are in the arch/ directories by putting those architectures first in the list.

Example:

git checkout 35d02493dba1ae6386fac07072908717affc3ff8
git show > patch.diffa
make defconfig
cp .config defconfig
klocalizer --repair defconfig --include-mutex patch.diff
koverage --config patch.diff --check-patch patch.diff -o coverage.json --arch s390