linux-stable/tools/gpio
Shuah Khan 66d53cd683 tools: gpio: Use !building_out_of_srctree to determine srctree
commit 4a6a6f5c4a upstream.

make TARGETS=gpio kselftest fails with:

Makefile:23: tools/build/Makefile.include: No such file or directory

When the gpio tool make is invoked from tools Makefile, srctree is
cleared and the current logic check for srctree equals to empty
string to determine srctree location from CURDIR.

When the build in invoked from selftests/gpio Makefile, the srctree
is set to "." and the same logic used for srctree equals to empty is
needed to determine srctree.

Check building_out_of_srctree undefined as the condition for both
cases to fix "make TARGETS=gpio kselftest" build failure.

Cc: stable@vger.kernel.org
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-12 19:20:37 +01:00
..
.gitignore gpio: tools: add .gitignore for generated files 2017-01-11 16:18:09 +01:00
Build tools/gpio: move to tools buildsystem 2016-06-23 11:07:13 +02:00
gpio-event-mon.c tools/gpio/gpio-event-mon: fix warning 2018-03-01 15:26:58 +01:00
gpio-hammer.c gpio-hammer: fix make consumer_label suitable to work on gpio-nails 2017-01-26 16:29:09 +01:00
gpio-utils.c tools: gpio: Print error string on IOCTL failures 2017-10-07 00:03:14 +02:00
gpio-utils.h tools/gpio: add gpio basic opereations 2016-10-24 16:33:11 +02:00
lsgpio.c tools/gpio: Add missing initialization of device_name 2016-03-31 11:51:30 +02:00
Makefile tools: gpio: Use !building_out_of_srctree to determine srctree 2019-11-12 19:20:37 +01:00