[PATCH] locking/atomics: Fix out-of-tree build

2018-11-08 Thread Borislav Petkov
From: Borislav Petkov 

Building a kernel out of tree with:

  make O=/tmp/b oldconfig
  cd /tmp/b
  make

gives this:

  CALL/mnt/kernel/kernel/linux/scripts/atomic/check-atomics.sh
/bin/bash: scripts/atomic/check-atomics.sh: 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.

Fixes: 8d32588077bd ("locking/atomics: Check generated headers are up-to-date")
Signed-off-by: Borislav Petkov 
Cc: a...@arndb.de
Cc: aryabi...@virtuozzo.com
Cc: Boqun Feng 
Cc: catalin.mari...@arm.com
Cc: dvyu...@google.com
Cc: gli...@google.com
Cc: Ingo Molnar 
Cc: linux-arm-ker...@lists.infradead.org
Cc: linuxdriv...@attotech.com
Cc: Mark Rutland 
Cc: Peter Zijlstra (Intel) 
Cc: Will Deacon 
---
 Kbuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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/check-atomics.sh
+  cmd_atomics = $(CONFIG_SHELL) $<
 
 old-atomics: scripts/atomic/check-atomics.sh FORCE
$(call cmd,atomics)
-- 
2.19.1



[PATCH] locking/atomics: Fix out-of-tree build

2018-11-08 Thread Borislav Petkov
From: Borislav Petkov 

Building a kernel out of tree with:

  make O=/tmp/b oldconfig
  cd /tmp/b
  make

gives this:

  CALL/mnt/kernel/kernel/linux/scripts/atomic/check-atomics.sh
/bin/bash: scripts/atomic/check-atomics.sh: 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.

Fixes: 8d32588077bd ("locking/atomics: Check generated headers are up-to-date")
Signed-off-by: Borislav Petkov 
Cc: a...@arndb.de
Cc: aryabi...@virtuozzo.com
Cc: Boqun Feng 
Cc: catalin.mari...@arm.com
Cc: dvyu...@google.com
Cc: gli...@google.com
Cc: Ingo Molnar 
Cc: linux-arm-ker...@lists.infradead.org
Cc: linuxdriv...@attotech.com
Cc: Mark Rutland 
Cc: Peter Zijlstra (Intel) 
Cc: Will Deacon 
---
 Kbuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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/check-atomics.sh
+  cmd_atomics = $(CONFIG_SHELL) $<
 
 old-atomics: scripts/atomic/check-atomics.sh FORCE
$(call cmd,atomics)
-- 
2.19.1