[PATCH 1/1] selftests/powerpc: fix TARGETS in powerpc selftests makefile
Sam Bobroff
sam.bobroff at au1.ibm.com
Wed Jun 25 15:18:40 EST 2014
This patch changes the name of a make variable (TARGETS) to prevent it
from colliding with a value set by the user on the command line (as
they are recommended to do by tools/testing/selftests/README.txt).
Before this patch, "make -C tools/testing/selftests TARGETS=powerpc"
would fail.
Signed-off-by: Sam Bobroff <sam.bobroff at au1.ibm.com>
---
tools/testing/selftests/powerpc/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tools/testing/selftests/powerpc/Makefile b/tools/testing/selftests/powerpc/Makefile
index 54833a7..84795c0 100644
--- a/tools/testing/selftests/powerpc/Makefile
+++ b/tools/testing/selftests/powerpc/Makefile
@@ -13,22 +13,22 @@ CFLAGS := -Wall -O2 -flto -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(CUR
export CC CFLAGS
-TARGETS = pmu copyloops mm tm
+SUB_TARGETS = pmu copyloops mm tm
endif
all:
- @for TARGET in $(TARGETS); do \
+ @for TARGET in $(SUB_TARGETS); do \
$(MAKE) -C $$TARGET all; \
done;
run_tests: all
- @for TARGET in $(TARGETS); do \
+ @for TARGET in $(SUB_TARGETS); do \
$(MAKE) -C $$TARGET run_tests; \
done;
clean:
- @for TARGET in $(TARGETS); do \
+ @for TARGET in $(SUB_TARGETS); do \
$(MAKE) -C $$TARGET clean; \
done;
rm -f tags
--
1.9.0
More information about the Linuxppc-dev
mailing list