Skip to contentSkip to conversation

locking/atomics: Fix out-of-tree build

PATCH New Borislav Petkov 2 participants 2 messages Nov 8, 2018 – Nov 9, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 locking/atomics: Fix out-of-tree build

From: Borislav Petkov <[email protected]>

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")
Cc arnd at arndb.de
Cc aryabinin at virtuozzo.com
Cc Boqun Feng <[email protected]>
Cc catalin.marinas at arm.com
Cc dvyukov at google.com
Cc glider at google.com
Cc Ingo Molnar <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc linuxdrivers at attotech.com
Cc Mark Rutland <[email protected]>
Cc Peter Zijlstra (Intel) <[email protected]>
Cc Will Deacon <[email protected]>
---
 Kbuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Kbuild +1 -1
index 47c9fe175bd9..780048056ac5 100644
@@ -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)
Signature · 1 line
2.19.1
#1 lore raw
locking/atomics: Fix out-of-tree build
Commit-ID:  bdf37b4dd35d2517cadc10735cd33022da7df133
Gitweb:     https://git.kernel.org/tip/bdf37b4dd35d2517cadc10735cd33022da7df133
Author:     Borislav Petkov <[email protected]>
AuthorDate: Thu, 8 Nov 2018 20:41:28 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 9 Nov 2018 09:06:01 +0100

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/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.

---
 Kbuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Kbuild +1 -1
index 47c9fe175bd9..780048056ac5 100644
@@ -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)