We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d194c2 + 4a6a6f5 commit 459f7cbCopy full SHA for 459f7cb
tools/gpio/Makefile
@@ -3,7 +3,11 @@ include ../scripts/Makefile.include
3
4
bindir ?= /usr/bin
5
6
-ifeq ($(srctree),)
+# This will work when gpio is built in tools env. where srctree
7
+# isn't set and when invoked from selftests build, where srctree
8
+# is set to ".". building_out_of_srctree is undefined for in srctree
9
+# builds
10
+ifndef building_out_of_srctree
11
srctree := $(patsubst %/,%,$(dir $(CURDIR)))
12
srctree := $(patsubst %/,%,$(dir $(srctree)))
13
endif
0 commit comments