Linux-ARM-Kernel Archive on
 help / color / Atom feed
From: (Borislav Petkov)
Subject: [PATCH] locking/atomics: Fix out-of-tree build
Date: Thu,  8 Nov 2018 20:41:28 +0100
Message-ID: <> (raw)

From: Borislav Petkov <>

Building a kernel out of tree with:

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

gives this:

  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.

Fixes: 8d32588077bd ("locking/atomics: Check generated headers are up-to-date")
Signed-off-by: Borislav Petkov <>
Cc: arnd at
Cc: aryabinin at
Cc: Boqun Feng <>
Cc: catalin.marinas at
Cc: dvyukov at
Cc: glider at
Cc: Ingo Molnar <>
Cc: linux-arm-kernel at
Cc: linuxdrivers at
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/
+      cmd_atomics = $(CONFIG_SHELL) $<
 old-atomics: scripts/atomic/ FORCE
 	$(call cmd,atomics)

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-ARM-Kernel Archive on

Archives are clonable:
	git clone --mirror linux-arm-kernel/git/0.git
	git clone --mirror linux-arm-kernel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-kernel linux-arm-kernel/ \
	public-inbox-index linux-arm-kernel

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone