aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/kcmp/Makefile18
1 files changed, 2 insertions, 16 deletions
diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile
index 4f00c0524501..ff0eefdc6ceb 100644
--- a/tools/testing/selftests/kcmp/Makefile
+++ b/tools/testing/selftests/kcmp/Makefile
@@ -1,21 +1,7 @@
1uname_M := $(shell uname -m 2>/dev/null || echo not) 1CC := $(CROSS_COMPILE)$(CC)
2ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/)
3ifeq ($(ARCH),i386)
4 ARCH := x86
5 CFLAGS := -DCONFIG_X86_32 -D__i386__
6endif
7ifeq ($(ARCH),x86_64)
8 ARCH := x86
9 CFLAGS := -DCONFIG_X86_64 -D__x86_64__
10endif
11CFLAGS += -I../../../../usr/include/ 2CFLAGS += -I../../../../usr/include/
12 3
13all: 4all: kcmp_test
14ifeq ($(ARCH),x86)
15 gcc $(CFLAGS) kcmp_test.c -o kcmp_test
16else
17 echo "Not an x86 target, can't build kcmp selftest"
18endif
19 5
20run_tests: all 6run_tests: all
21 @./kcmp_test || echo "kcmp_test: [FAIL]" 7 @./kcmp_test || echo "kcmp_test: [FAIL]"