Skip to contentSkip to conversation

selftests/gpio: Makefile deletes unnecessary files

PATCH New Thomas Richter 1 participant 1 message Feb 12, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/gpio: Makefile deletes unnecessary files

The Makefile in selftests/gpio deletes several files (../gpio*) which do not exist at all in directory selftests. Instead they are located in directory linux/tools/gpio/ and are built when the gpio test case is built (in case they do not already exist).
Since they are located outside the selftests tree, do not delete them.

---
 tools/testing/selftests/gpio/Makefile | 6 ------
 1 file changed, 6 deletions(-)
tools/testing/selftests/gpio/Makefile +0 -6
index 1bbb47565c55..91a834f6af7b 100644
@@ -3,11 +3,6 @@
 TEST_PROGS := gpio-mockup.sh
 TEST_FILES := gpio-mockup-sysfs.sh $(BINARIES)
 BINARIES := gpio-mockup-chardev
-EXTRA_PROGS := ../gpiogpio-event-mon ../gpiogpio-hammer ../gpiolsgpio
-EXTRA_DIRS := ../gpioinclude/
-EXTRA_OBJS := ../gpiogpio-event-mon-in.o ../gpiogpio-event-mon.o
-EXTRA_OBJS += ../gpiogpio-hammer-in.o ../gpiogpio-utils.o ../gpiolsgpio-in.o
-EXTRA_OBJS += ../gpiolsgpio.o
 
 include ../lib.mk
 
@@ -15,7 +10,6 @@ all: $(BINARIES)
 
 override define CLEAN
 	$(RM) $(BINARIES) $(EXTRA_PROGS) $(EXTRA_OBJS)
-	$(RM) -r $(EXTRA_DIRS)
 endef
 
 CFLAGS += -O2 -g -std=gnu99 -Wall -I../../../../usr/include/
Signature · 1 line
2.14.3