diff options
| -rw-r--r-- | tools/testing/selftests/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index b43c5f41fb3e..f2ebf8cf4686 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile | |||
| @@ -99,6 +99,15 @@ ARCH ?= $(SUBARCH) | |||
| 99 | export KSFT_KHDR_INSTALL_DONE := 1 | 99 | export KSFT_KHDR_INSTALL_DONE := 1 |
| 100 | export BUILD | 100 | export BUILD |
| 101 | 101 | ||
| 102 | # build and run gpio when output directory is the src dir. | ||
| 103 | # gpio has dependency on tools/gpio and builds tools/gpio | ||
| 104 | # objects in the src directory in all cases making the src | ||
| 105 | # repo dirty even when objects are relocated. | ||
| 106 | ifneq (1,$(DEFAULT_INSTALL_HDR_PATH)) | ||
| 107 | TMP := $(filter-out gpio, $(TARGETS)) | ||
| 108 | TARGETS := $(TMP) | ||
| 109 | endif | ||
| 110 | |||
| 102 | # set default goal to all, so make without a target runs all, even when | 111 | # set default goal to all, so make without a target runs all, even when |
| 103 | # all isn't the first target in the file. | 112 | # all isn't the first target in the file. |
| 104 | .DEFAULT_GOAL := all | 113 | .DEFAULT_GOAL := all |
