path: root/Kbuild
diff options
authorBorislav Petkov <>2018-11-08 20:41:28 +0100
committerIngo Molnar <>2018-11-09 09:06:01 +0100
commitbdf37b4dd35d2517cadc10735cd33022da7df133 (patch)
treef3ccffe3e7a9c71ab848bf20623ca7dbaf0d3d77 /Kbuild
parent4d8e5cd233db0c11e6ad35b0e40f4a2d284e1e18 (diff)
locking/atomics: Fix out-of-tree build
Building a kernel out of tree with: make O=/tmp/b oldconfig cd /tmp/b make gives this error: CALL /mnt/kernel/kernel/linux/scripts/atomic/ /bin/bash: scripts/atomic/ No such file or directory make[3]: *** [/mnt/kernel/kernel/linux/./Kbuild:86: old-atomics] Error 127 make[3]: *** Waiting for unfinished jobs.... Make the command use the proper build prerequisite which is the absolute path to the script. Reported-by: Stephen Rothwell <> Signed-off-by: Borislav Petkov <> Cc: Boqun Feng <> Cc: Linus Torvalds <> Cc: Mark Rutland <> Cc: Peter Zijlstra <> Cc: Thomas Gleixner <> Cc: Will Deacon <> Cc: Cc: Cc: Cc: Cc: Cc: Cc: Fixes: 8d32588077bd ("locking/atomics: Check generated headers are up-to-date") Link: Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'Kbuild')
1 files changed, 1 insertions, 1 deletions
diff --git a/Kbuild b/Kbuild
index 47c9fe175bd9..780048056ac5 100644
--- a/Kbuild
+++ b/Kbuild
@@ -80,7 +80,7 @@ always += old-atomics
targets += old-atomics
quiet_cmd_atomics = CALL $<
- cmd_atomics = $(CONFIG_SHELL) scripts/atomic/
+ cmd_atomics = $(CONFIG_SHELL) $<
old-atomics: scripts/atomic/ FORCE
$(call cmd,atomics)