diff options
| author | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-11 00:06:01 -0400 |
|---|---|---|
| committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-03-19 14:38:51 -0400 |
| commit | 6faeeea44b84ce24fc6c1f1beb07ee5de9885dc8 (patch) | |
| tree | ee9e473870eea00b5672564825bfab7e374fed3b /tools/testing/selftests/powerpc/stringloops/Makefile | |
| parent | 5744de542dd4b963c2975e6f70844ce2899864e4 (diff) | |
selftests: Add install support for the powerpc tests
The bulk of the selftests are actually below the powerpc sub directory.
This adds support for installing them, when on a powerpc machine, or if
ARCH and CROSS_COMPILE are set appropriately.
This is a little more complicated because of the sub directory structure
under powerpc, but much of the common logic in lib.mk is still used. The
net effect of the patch is still a reduction in code.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/powerpc/stringloops/Makefile')
| -rw-r--r-- | tools/testing/selftests/powerpc/stringloops/Makefile | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/testing/selftests/powerpc/stringloops/Makefile b/tools/testing/selftests/powerpc/stringloops/Makefile index 506d77346477..2a728f4d2873 100644 --- a/tools/testing/selftests/powerpc/stringloops/Makefile +++ b/tools/testing/selftests/powerpc/stringloops/Makefile | |||
| @@ -2,19 +2,14 @@ | |||
| 2 | CFLAGS += -m64 | 2 | CFLAGS += -m64 |
| 3 | CFLAGS += -I$(CURDIR) | 3 | CFLAGS += -I$(CURDIR) |
| 4 | 4 | ||
| 5 | PROGS := memcmp | 5 | TEST_PROGS := memcmp |
| 6 | EXTRA_SOURCES := memcmp_64.S ../harness.c | 6 | EXTRA_SOURCES := memcmp_64.S ../harness.c |
| 7 | 7 | ||
| 8 | all: $(PROGS) | 8 | all: $(TEST_PROGS) |
| 9 | 9 | ||
| 10 | $(PROGS): $(EXTRA_SOURCES) | 10 | $(TEST_PROGS): $(EXTRA_SOURCES) |
| 11 | 11 | ||
| 12 | run_tests: all | 12 | include ../../lib.mk |
| 13 | @-for PROG in $(PROGS); do \ | ||
| 14 | ./$$PROG; \ | ||
| 15 | done; | ||
| 16 | 13 | ||
| 17 | clean: | 14 | clean: |
| 18 | rm -f $(PROGS) *.o | 15 | rm -f $(TEST_PROGS) *.o |
| 19 | |||
| 20 | .PHONY: all run_tests clean | ||
