• Paul E. McKenney's avatar
    torture: Run kernel build in source directory · 6dc82595
    Paul E. McKenney authored
    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: default avatarPeter Zijlstra <peterz@infradead.org>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
    6dc82595
configinit.sh 1.21 KB