]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: build and run gpio when output directory is the src dir
authorShuah Khan <skhan@linuxfoundation.org>
Fri, 19 Apr 2019 22:31:28 +0000 (16:31 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 22 Apr 2019 23:02:26 +0000 (17:02 -0600)
commitd22373499a4e998d011ad9b7926697ab151b7216
tree40a0fafecebc89a78f6f35b0271474165da77590
parentb47d1c5b39b128d6522b052cb2435bab6c8cd875
selftests: build and run gpio when output directory is the src dir

Build and run gpio when output directory is the src dir.  gpio has
dependency on tools/gpio and builds tools/gpio objects in the src
directory in all cases making the src repo dirty even when object
relocation is specified.

This fixes the following commands from generating gpio objects in
the source repository:

make O=dir kselftest
export KBUILD_OUTPUT=dir; make kselftest
make O=dir -C tools/testing/selftests
expoert KBUILD_OUTPUT=dir; make -C tools/testing/selftests

The following commands still build gpio objects in the source repo
(gpio Makefile needs to fixed):
make O=dir kselftest TARGETS="gpio"
export KBUILD_OUTPUT=dir; make kselftest TARGETS="gpio"
make O=dir -C tools/testing/selftests TARGETS="gpio"
expoert KBUILD_OUTPUT=dir; make -C tools/testing/selftests TARGETS="gpio"

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/Makefile