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>
This commit is contained in:
Michael Ellerman 2020-11-04 21:08:43 +11:00 committed by Shuah Khan
parent b68c1c65de
commit 85128c5bcd

View file

@ -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)