From c1d609a03cf3cc7ba934df7bf716762bb622a5b0 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Sat, 25 Mar 2023 21:35:20 -0700 Subject: [PATCH] Add hello world to baremetal tests --- tests/Makefile | 3 ++- tests/hello.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tests/hello.c diff --git a/tests/Makefile b/tests/Makefile index 54959bf0..8756350d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -6,7 +6,8 @@ LDFLAGS= -static include libgloss.mk PROGRAMS = pwm blkdev accum charcount nic-loopback big-blkdev pingd \ - streaming-passthrough streaming-fir nvdla spiflashread spiflashwrite fft gcd + streaming-passthrough streaming-fir nvdla spiflashread spiflashwrite fft gcd \ + hello spiflash.img: spiflash.py python3 $< diff --git a/tests/hello.c b/tests/hello.c new file mode 100644 index 00000000..28d667e0 --- /dev/null +++ b/tests/hello.c @@ -0,0 +1,6 @@ +#include + +int main(void) { + printf("Hello world\n"); + return 0; +}