aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/gpio
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2020-11-04 21:08:43 +1100
committerShuah Khan <skhan@linuxfoundation.org>2020-11-10 14:40:13 -0700
commit85128c5bcdf9bd9b574d7cbafa49170a39fed2e1 (patch)
tree30246d0b248f15dbfa4256177b2ab34fbf400240 /tools/testing/selftests/gpio
parentselftests/gpio: Fix build when source tree is read only (diff)
downloadlinux-dev-85128c5bcdf9bd9b574d7cbafa49170a39fed2e1.tar.xz
linux-dev-85128c5bcdf9bd9b574d7cbafa49170a39fed2e1.zip
selftests/gpio: Add to CLEAN rule rather than overriding
Rather than overriding the CLEAN rule we can just append to it. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/gpio')
-rw-r--r--tools/testing/selftests/gpio/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/testing/selftests/gpio/Makefile b/tools/testing/selftests/gpio/Makefile
index acf4088a9891..41582fe485ee 100644
--- a/tools/testing/selftests/gpio/Makefile
+++ b/tools/testing/selftests/gpio/Makefile
@@ -20,10 +20,7 @@ GPIODIR := $(realpath ../../../gpio)
GPIOOUT := $(OUTPUT)/tools-gpio/
GPIOOBJ := $(GPIOOUT)/gpio-utils.o
-override define CLEAN
- $(RM) $(TEST_GEN_PROGS_EXTENDED)
- $(RM) -rf $(GPIOOUT)
-endef
+CLEAN += ; $(RM) -rf $(GPIOOUT)
$(TEST_GEN_PROGS_EXTENDED): $(GPIOOBJ)