[RFC PATCH v2 0/2] call check-atomics.sh only if prerequisites change

Vincent Mailhol posted 2 patches 4 years, 1 month ago
Kbuild                          | 7 ++++---
Makefile                        | 3 ++-
scripts/atomic/check-atomics.sh | 9 +++++++--
3 files changed, 13 insertions(+), 6 deletions(-)
[RFC PATCH v2 0/2] call check-atomics.sh only if prerequisites change
Posted by Vincent Mailhol 4 years, 1 month ago
Currently, check-atomics.sh is executed unconditionally despite the
fact that most developers do not need this to execute this check on
each iterative make instance.

This series first make check-atomics.sh raise an error instead of a
warning when CONFIG_WERROR is set. The second and last patch modifies
Kbuild so that the script is only called when dependencies are
changed.


* Changelog *

v1 -> v2

  * drop the changes on checksyscalls.sh. v1 assumed that
    checksyscalls.sh would only be called from ./Kbuild. It appears
    that there is another user: arch/mips/Makefile c.f. kernel test
    robot's report:
    https://lore.kernel.org/llvm/202205030015.JCmg5yPS-lkp@intel.com/

  * add a patch to the to make Kbuild stop if check-atomics fails and
    if CONFIG_WERROR is set.

Vincent Mailhol (2):
  check-atomiscs: stop build if CONFIG_WERROR=y
  kbuild: call check-atomics.sh only if prerequisites change

 Kbuild                          | 7 ++++---
 Makefile                        | 3 ++-
 scripts/atomic/check-atomics.sh | 9 +++++++--
 3 files changed, 13 insertions(+), 6 deletions(-)

-- 
2.35.1