diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-05-11 07:31:52 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2019-05-28 19:06:09 +0300 |
commit | 6dc82595ef0839a45c26075612f304979b6c92c2 (patch) | |
tree | 1cb66cd8af126c8ca011b47d88f7b46d24e802d8 /tools/testing/selftests/rcutorture/bin/cpus2use.sh | |
parent | cd6cb7c8a509b1e785fa67e2eb6bd5003198ac39 (diff) | |
download | linux-6dc82595ef0839a45c26075612f304979b6c92c2.tar.xz |
torture: Run kernel build in source directory
For historical reasons, rcutorture places its build products in a
tools/testing/selftests/rcutorture/b1 directory using the O= kbuild
command-line argument. However, doing this requires that the source
directory be pristine: Not just "make clean" pristine, but instead "make
mrproper" (or, equivalently, "make distclean") pristine. Therefore,
rcutorture executes a "make mrproper" before each build. Unfortunately,
"make mrproper" has the side effect of removing pretty much everything,
including tags files and cscope databases, which can be inconvenient
to people whose workflow centers around a single source tree.
This commit therefore makes rcutorture do the build directly in the
source directory, removing the need for "make mrproper". This works
because all needed build products are moved to their proper place in the
"res" directory immediately after the build completes, so that multiple
rcutorture kernels can still run concurrently.
Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/cpus2use.sh')
0 files changed, 0 insertions, 0 deletions