summaryrefslogtreecommitdiffstats
path: root/kernel/tools/testing/selftests/size/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tools/testing/selftests/size/Makefile')
-rw-r--r--kernel/tools/testing/selftests/size/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/tools/testing/selftests/size/Makefile b/kernel/tools/testing/selftests/size/Makefile
new file mode 100644
index 000000000..bbd0b5398
--- /dev/null
+++ b/kernel/tools/testing/selftests/size/Makefile
@@ -0,0 +1,11 @@
+all: get_size
+
+get_size: get_size.c
+ $(CC) -static -ffreestanding -nostartfiles -s $< -o $@
+
+TEST_PROGS := get_size
+
+include ../lib.mk
+
+clean:
+ $(RM) get_size