diff options
| author | Phong Tran <tranmanphong@gmail.com> | 2014-08-29 18:19:06 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-29 19:28:17 -0400 |
| commit | 498b473af9c20a4cb533297dc43b063f35f86349 (patch) | |
| tree | 6657dea63874c0892a3a565af8fd0b56bb55322f /tools/testing/selftests/kcmp | |
| parent | 8c7b638cece146234b0c0d5f6ba84d1cf6f81e83 (diff) | |
tools: selftests: fix build issue with make kselftests target
Fix the typo of ARCH when running 'make kselftests'. Change the 'X86'
to 'x86'. Test by compilation.
Signed-off-by: Phong Tran <tranmanphong@gmail.com>
Cc: David Herrmann <dh.herrmann@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Shuah Khan <shuah.kh@samsung.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/kcmp')
| -rw-r--r-- | tools/testing/selftests/kcmp/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile index d7d6bbeeff2f..8aabd82db9e4 100644 --- a/tools/testing/selftests/kcmp/Makefile +++ b/tools/testing/selftests/kcmp/Makefile | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | uname_M := $(shell uname -m 2>/dev/null || echo not) | 1 | uname_M := $(shell uname -m 2>/dev/null || echo not) |
| 2 | ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/) | 2 | ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/) |
| 3 | ifeq ($(ARCH),i386) | 3 | ifeq ($(ARCH),i386) |
| 4 | ARCH := X86 | 4 | ARCH := x86 |
| 5 | CFLAGS := -DCONFIG_X86_32 -D__i386__ | 5 | CFLAGS := -DCONFIG_X86_32 -D__i386__ |
| 6 | endif | 6 | endif |
| 7 | ifeq ($(ARCH),x86_64) | 7 | ifeq ($(ARCH),x86_64) |
| 8 | ARCH := X86 | 8 | ARCH := x86 |
| 9 | CFLAGS := -DCONFIG_X86_64 -D__x86_64__ | 9 | CFLAGS := -DCONFIG_X86_64 -D__x86_64__ |
| 10 | endif | 10 | endif |
| 11 | 11 | ||
| @@ -15,7 +15,7 @@ CFLAGS += -I../../../../usr/include/ | |||
| 15 | CFLAGS += -I../../../../arch/x86/include/ | 15 | CFLAGS += -I../../../../arch/x86/include/ |
| 16 | 16 | ||
| 17 | all: | 17 | all: |
| 18 | ifeq ($(ARCH),X86) | 18 | ifeq ($(ARCH),x86) |
| 19 | gcc $(CFLAGS) kcmp_test.c -o kcmp_test | 19 | gcc $(CFLAGS) kcmp_test.c -o kcmp_test |
| 20 | else | 20 | else |
| 21 | echo "Not an x86 target, can't build kcmp selftest" | 21 | echo "Not an x86 target, can't build kcmp selftest" |
