aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/switch_endian
diff options
context:
space:
mode:
authorbamvor.zhangjian@huawei.com <bamvor.zhangjian@huawei.com>2016-11-29 19:55:51 +0800
committerShuah Khan <shuahkh@osg.samsung.com>2017-01-05 13:42:17 -0700
commit80d443e8876602be2c130f79c4de81e12e2a700d (patch)
treedbe443dd36f2b043654ccff605dca385f4b8e70a /tools/testing/selftests/powerpc/switch_endian
parentselftests: remove CROSS_COMPILE in dedicated Makefile (diff)
downloadlinux-dev-80d443e8876602be2c130f79c4de81e12e2a700d.tar.xz
linux-dev-80d443e8876602be2c130f79c4de81e12e2a700d.zip
selftests: add EXTRA_CLEAN for clean target
Some testcases need the clean extra data after running. This patch introduce the "EXTRA_CLEAN" variable to address this requirement. After KBUILD_OUTPUT is enabled in later patch, it will be easy to decide to if we need do the cleanup in the KBUILD_OUTPUT path(if the testcase ran immediately after compiled). Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/powerpc/switch_endian/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/testing/selftests/powerpc/switch_endian/Makefile b/tools/testing/selftests/powerpc/switch_endian/Makefile
index bd0122306da6..dbd05ac8dbf7 100644
--- a/tools/testing/selftests/powerpc/switch_endian/Makefile
+++ b/tools/testing/selftests/powerpc/switch_endian/Makefile
@@ -2,6 +2,8 @@ TEST_GEN_PROGS := switch_endian_test
ASFLAGS += -O2 -Wall -g -nostdlib -m64
+EXTRA_CLEAN = *.o check-reversed.S
+
include ../../lib.mk
switch_endian_test: check-reversed.S
@@ -11,6 +13,3 @@ check-reversed.o: check.o
check-reversed.S: check-reversed.o
hexdump -v -e '/1 ".byte 0x%02X\n"' $< > $@
-
-clean:
- $(RM) $(TEST_GEN_PROGS) *.o check-reversed.S