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>
This commit is contained in:
bamvor.zhangjian@huawei.com
2016-11-29 19:55:49 +08:00
committed by Shuah Khan
parent 5fe5979935
commit 7d758af257
6 changed files with 10 additions and 21 deletions

View File

@@ -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