summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/size
diff options
context:
space:
mode:
authorbamvor.zhangjian@huawei.com <bamvor.zhangjian@huawei.com>2016-11-29 12:55:49 +0100
committerShuah Khan <shuahkh@osg.samsung.com>2017-01-05 21:42:01 +0100
commit7d758af257bc40a8a599a0aaa4768b30fb463e9c (patch)
tree00c4ae2a68d491c2d8849564211b1121cdd9cc2d /tools/testing/selftests/size
parentselftests: remove useless TEST_DIRS (diff)
downloadlinux-7d758af257bc40a8a599a0aaa4768b30fb463e9c.tar.xz
linux-7d758af257bc40a8a599a0aaa4768b30fb463e9c.zip
selftests: add default rules for c source file
There are difference rules for compiling c source file in different testcases. In order to enable KBUILD_OUTPUT support in later patch, this patch introduce the default rules in "tools/testing/selftest/lib.mk" and remove the existing rules in each testcase. Acked-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/size')
-rw-r--r--tools/testing/selftests/size/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/testing/selftests/size/Makefile b/tools/testing/selftests/size/Makefile
index c67f3577e888..4685b3e421fc 100644
--- a/tools/testing/selftests/size/Makefile
+++ b/tools/testing/selftests/size/Makefile
@@ -1,6 +1,4 @@
-
-get_size: get_size.c
- $(CC) -static -ffreestanding -nostartfiles -s $< -o $@
+CFLAGS := -static -ffreestanding -nostartfiles -s
TEST_GEN_PROGS := get_size