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/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/testing/selftests/size/Makefile b/tools/testing/selftests/size/Makefile
new file mode 100644
index 000000000000..04dc25e4fa92
--- /dev/null
+++ b/tools/testing/selftests/size/Makefile
@@ -0,0 +1,12 @@
+CC = $(CROSS_COMPILE)gcc
+
+all: get_size
+
+get_size: get_size.c
+ $(CC) -static -ffreestanding -nostartfiles -s $< -o $@
+
+run_tests: all
+ ./get_size
+
+clean:
+ $(RM) get_size