diff options
author | Mark Rutland <mark.rutland@arm.com> | 2018-09-04 06:48:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-11-01 06:01:10 -0400 |
commit | 8d32588077bdc390420cfa6946f407033a20d7a8 (patch) | |
tree | 8826038ca127335c11514bb308179ad2d6e83d69 /Kbuild | |
parent | aa525d063851a98e020b827fdd1d7776ae652301 (diff) |
locking/atomics: Check generated headers are up-to-date
Now that all the generated atomic headers are in place, it would be good
to ensure that:
a) the headers are up-to-date when scripting changes.
b) developers don't directly modify the generated headers.
To ensure both of these properties, let's add a Kbuild step to check
that the generated headers are up-to-date.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: catalin.marinas@arm.com
Cc: Will Deacon <will.deacon@arm.com>
Cc: linuxdrivers@attotech.com
Cc: dvyukov@google.com
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: arnd@arndb.de
Cc: aryabinin@virtuozzo.com
Cc: glider@google.com
Link: http://lkml.kernel.org/r/20180904104830.2975-6-mark.rutland@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'Kbuild')
-rw-r--r-- | Kbuild | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -6,7 +6,8 @@ | |||
6 | # 2) Generate timeconst.h | 6 | # 2) Generate timeconst.h |
7 | # 3) Generate asm-offsets.h (may need bounds.h and timeconst.h) | 7 | # 3) Generate asm-offsets.h (may need bounds.h and timeconst.h) |
8 | # 4) Check for missing system calls | 8 | # 4) Check for missing system calls |
9 | # 5) Generate constants.py (may need bounds.h) | 9 | # 5) check atomics headers are up-to-date |
10 | # 6) Generate constants.py (may need bounds.h) | ||
10 | 11 | ||
11 | ##### | 12 | ##### |
12 | # 1) Generate bounds.h | 13 | # 1) Generate bounds.h |
@@ -72,7 +73,20 @@ missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE | |||
72 | $(call cmd,syscalls) | 73 | $(call cmd,syscalls) |
73 | 74 | ||
74 | ##### | 75 | ##### |
75 | # 5) Generate constants for Python GDB integration | 76 | # 5) Check atomic headers are up-to-date |
77 | # | ||
78 | |||
79 | always += old-atomics | ||
80 | targets += old-atomics | ||
81 | |||
82 | quiet_cmd_atomics = CALL $< | ||
83 | cmd_atomics = $(CONFIG_SHELL) scripts/atomic/check-atomics.sh | ||
84 | |||
85 | old-atomics: scripts/atomic/check-atomics.sh FORCE | ||
86 | $(call cmd,atomics) | ||
87 | |||
88 | ##### | ||
89 | # 6) Generate constants for Python GDB integration | ||
76 | # | 90 | # |
77 | 91 | ||
78 | extra-$(CONFIG_GDB_SCRIPTS) += build_constants_py | 92 | extra-$(CONFIG_GDB_SCRIPTS) += build_constants_py |