diff options
| author | 2019-11-12 10:34:00 +0100 | |
|---|---|---|
| committer | 2019-11-12 10:34:00 +0100 | |
| commit | 5be85ec0de8425fb22c7b38fbaf4f245e41a5dca (patch) | |
| tree | 4148d2f8aa56b75488fbd568048ac81fa786ae9a /tools | |
| parent | Merge tag 'v5.4-rc6' into gpio/for-next (diff) | |
| parent | Merge branch 'devel' into for-next (diff) | |
Merge remote-tracking branch 'linusw/for-next' into gpio/for-next
Diffstat (limited to 'tools')
| -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 |
