summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/size/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/size/Makefile')
-rw-r--r--tools/testing/selftests/size/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/testing/selftests/size/Makefile b/tools/testing/selftests/size/Makefile
index 04dc25e4fa92..bbd0b5398b61 100644
--- a/tools/testing/selftests/size/Makefile
+++ b/tools/testing/selftests/size/Makefile
@@ -1,12 +1,11 @@
-CC = $(CROSS_COMPILE)gcc
-
all: get_size
get_size: get_size.c
$(CC) -static -ffreestanding -nostartfiles -s $< -o $@
-run_tests: all
- ./get_size
+TEST_PROGS := get_size
+
+include ../lib.mk
clean:
$(RM) get_size