summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2019-02-11 14:27:05 +0100
committerIngo Molnar <mingo@kernel.org>2019-02-11 14:27:05 +0100
commit41b8687191cfd0326db03b0e82fb09d8c98ca641 (patch)
treea214babca0a181c67c25a615d608465a5f92f8c4 /Kbuild
parent49262de2270e09882d7bd8866a691cdd69ab32f6 (diff)
parentbdf37b4dd35d2517cadc10735cd33022da7df133 (diff)
downloadlinux-41b8687191cfd0326db03b0e82fb09d8c98ca641.tar.bz2
Merge branch 'locking/atomics' into locking/core, to pick up WIP commits
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'Kbuild')
-rw-r--r--Kbuild18
1 files changed, 16 insertions, 2 deletions
diff --git a/Kbuild b/Kbuild
index 65db5bef2e36..4a4c47c38d1d 100644
--- a/Kbuild
+++ b/Kbuild
@@ -6,7 +6,8 @@
# 2) Generate timeconst.h
# 3) Generate asm-offsets.h (may need bounds.h and timeconst.h)
# 4) Check for missing system calls
-# 5) Generate constants.py (may need bounds.h)
+# 5) check atomics headers are up-to-date
+# 6) Generate constants.py (may need bounds.h)
#####
# 1) Generate bounds.h
@@ -59,7 +60,20 @@ missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE
$(call cmd,syscalls)
#####
-# 5) Generate constants for Python GDB integration
+# 5) Check atomic headers are up-to-date
+#
+
+always += old-atomics
+targets += old-atomics
+
+quiet_cmd_atomics = CALL $<
+ cmd_atomics = $(CONFIG_SHELL) $<
+
+old-atomics: scripts/atomic/check-atomics.sh FORCE
+ $(call cmd,atomics)
+
+#####
+# 6) Generate constants for Python GDB integration
#
extra-$(CONFIG_GDB_SCRIPTS) += build_constants_py