All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rcutorture: Ignore KBUILD_OUTPUT in kvm.sh
@ 2026-10-16 10:26 Puranjay Mohan
  2026-10-16 15:11 ` Paul E. McKenney
  2026-10-16 17:41 ` Bradley Morgan
  0 siblings, 2 replies; 6+ messages in thread
From: Puranjay Mohan @ 2026-10-16 10:26 UTC (permalink / raw)
  To: rcu
  Cc: Puranjay Mohan, Paul E. McKenney, Josh Triplett, Steven Rostedt,
	Joel Fernandes, Boqun Feng, Frederic Weisbecker

kvm.sh builds the kernel in the source tree, and kvm-build.sh and
configinit.sh expect .config and the build products to land there.
With KBUILD_OUTPUT set in the environment, make instead writes them to
that directory and fails with "The source tree is not clean" or, worse,
clobbers an unrelated build.  Unset it so kvm.sh works from such shells.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
---
 tools/testing/selftests/rcutorture/bin/kvm.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh
index 86dd5c131d226..ee8266156254b 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm.sh
@@ -22,6 +22,10 @@ cd `dirname $scriptname`/../../../../../
 # This script knows only English.
 LANG=en_US.UTF-8; export LANG
 
+# The kernel is built in-tree below, so an out-of-tree KBUILD_OUTPUT in the
+# environment would send .config and the build products somewhere else.
+unset KBUILD_OUTPUT
+
 dur=$((30*60))
 dryrun=""
 RCUTORTURE="`pwd`/tools/testing/selftests/rcutorture"; export RCUTORTURE
-- 
2.53.0-Meta


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-19  0:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-16 10:26 [PATCH] rcutorture: Ignore KBUILD_OUTPUT in kvm.sh Puranjay Mohan
2026-10-16 15:11 ` Paul E. McKenney
2026-10-16 15:22   ` Puranjay Mohan
2026-10-16 16:50     ` Paul E. McKenney
2026-10-19  0:23       ` Joel Fernandes
2026-10-16 17:41 ` Bradley Morgan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.