diff options
author | 2019-10-23 13:29:57 +0200 | |
---|---|---|
committer | 2019-10-23 13:29:57 +0200 | |
commit | 459f7cb9a3b90b1574acc001ad1f6bf5bb748ac7 (patch) | |
tree | 1c673a8a0a4c40754df2eebe6257c34229aaad83 | |
parent | Linux 5.4-rc4 (diff) | |
parent | tools: gpio: Use !building_out_of_srctree to determine srctree (diff) | |
download | linux-dev-459f7cb9a3b90b1574acc001ad1f6bf5bb748ac7.tar.xz linux-dev-459f7cb9a3b90b1574acc001ad1f6bf5bb748ac7.zip |
Merge tag 'gpio-v5.4-rc5-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into fixes
gpio fixes for v5.4-rc5
- fix building gpio selftests
-rw-r--r-- | tools/gpio/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gpio/Makefile b/tools/gpio/Makefile index 6ecdd1067826..1178d302757e 100644 --- a/tools/gpio/Makefile +++ b/tools/gpio/Makefile @@ -3,7 +3,11 @@ include ../scripts/Makefile.include bindir ?= /usr/bin -ifeq ($(srctree),) +# This will work when gpio is built in tools env. where srctree +# isn't set and when invoked from selftests build, where srctree +# is set to ".". building_out_of_srctree is undefined for in srctree +# builds +ifndef building_out_of_srctree srctree := $(patsubst %/,%,$(dir $(CURDIR))) srctree := $(patsubst %/,%,$(dir $(srctree))) endif |