aboutsummaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2019-07-22 11:15:13 -0400
committerBruce Ashfield <bruce.ashfield@gmail.com>2019-07-22 11:15:13 -0400
commitc7f55a28286aeebf0d03d7a95852aa788b1485f1 (patch)
treeb4a80cfd4193bd255c8949c668abb6aae1e15bcc /Kbuild
parent113a670ce2eb3daca9fa9c4f43d064d002db7c9b (diff)
parente9b75c60f91a359cb0e1b2d0a9ed1c81485215e2 (diff)
downloadlinux-yocto-master.tar.gz
linux-yocto-master.tar.bz2
linux-yocto-master.zip
Merge branch 'master-5.2'HEADmaster
Diffstat (limited to 'Kbuild')
-rw-r--r--Kbuild29
1 files changed, 12 insertions, 17 deletions
diff --git a/Kbuild b/Kbuild
index 65db5bef2e36..8637fd14135f 100644
--- a/Kbuild
+++ b/Kbuild
@@ -1,15 +1,9 @@
# SPDX-License-Identifier: GPL-2.0
#
# Kbuild for top-level directory of the kernel
-# This file takes care of the following:
-# 1) Generate bounds.h
-# 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)
#####
-# 1) Generate bounds.h
+# Generate bounds.h
bounds-file := include/generated/bounds.h
@@ -20,7 +14,7 @@ $(bounds-file): kernel/bounds.s FORCE
$(call filechk,offsets,__LINUX_BOUNDS_H__)
#####
-# 2) Generate timeconst.h
+# Generate timeconst.h
timeconst-file := include/generated/timeconst.h
@@ -32,8 +26,7 @@ $(timeconst-file): kernel/time/timeconst.bc FORCE
$(call filechk,gentimeconst)
#####
-# 3) Generate asm-offsets.h
-#
+# Generate asm-offsets.h
offsets-file := include/generated/asm-offsets.h
@@ -46,8 +39,7 @@ $(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s FORCE
$(call filechk,offsets,__ASM_OFFSETS_H__)
#####
-# 4) Check for missing system calls
-#
+# Check for missing system calls
always += missing-syscalls
targets += missing-syscalls
@@ -59,13 +51,16 @@ missing-syscalls: scripts/checksyscalls.sh $(offsets-file) FORCE
$(call cmd,syscalls)
#####
-# 5) Generate constants for Python GDB integration
-#
+# Check atomic headers are up-to-date
+
+always += old-atomics
+targets += old-atomics
-extra-$(CONFIG_GDB_SCRIPTS) += build_constants_py
+quiet_cmd_atomics = CALL $<
+ cmd_atomics = $(CONFIG_SHELL) $<
-build_constants_py: $(timeconst-file) $(bounds-file)
- @$(MAKE) $(build)=scripts/gdb/linux $@
+old-atomics: scripts/atomic/check-atomics.sh FORCE
+ $(call cmd,atomics)
# Keep these three files during make clean
no-clean-files := $(bounds-file) $(offsets-file) $(timeconst-file)