selftests: breakpoints: fix installing error on the architecture except x86
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Fri, 14 Aug 2015 13:43:38 +0000 (21:43 +0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 27 Aug 2015 22:05:28 +0000 (16:05 -0600)
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/breakpoints/Makefile

index 1822356402090df03ee6311cb99dd7e2c7db94d7..d27108b4f2081fe2d250e4de8c45bf02f7c73d4f 100644 (file)
@@ -1,22 +1,12 @@
 # Taken from perf makefile
 uname_M := $(shell uname -m 2>/dev/null || echo not)
-ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/)
-ifeq ($(ARCH),i386)
-        ARCH := x86
-endif
-ifeq ($(ARCH),x86_64)
-       ARCH := x86
-endif
+ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
 
-
-all:
 ifeq ($(ARCH),x86)
-       gcc breakpoint_test.c -o breakpoint_test
-else
-       echo "Not an x86 target, can't build breakpoints selftests"
+TEST_PROGS := breakpoint_test
 endif
 
-TEST_PROGS := breakpoint_test
+all:
 
 include ../lib.mk