mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Initial test framework
Clean up makefiles Everything buildable under docker (or natively)
This commit is contained in:
parent
5a0c70a017
commit
da7f70c456
48 changed files with 7254 additions and 293 deletions
13
test/example_1/rom/Makefile
Normal file
13
test/example_1/rom/Makefile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
TOPDIR=../../../
|
||||
PROJECT:=$(shell basename ${PWD})
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
|
||||
all: all_common
|
||||
# Convert ROM to C file and header
|
||||
xxd -i ${PROJECT}.bin > ${PROJECT}-header.c
|
||||
echo "extern unsigned char ${PROJECT}_bin[]; extern int ${PROJECT}_bin_len;" > ${PROJECT}-header.h
|
||||
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
rm -f ${PROJECT}-header.h ${PROJECT}-header.c
|
||||
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
6
test/example_1/rom/rom.c
Normal file
6
test/example_1/rom/rom.c
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#include "uvm32_target.h"
|
||||
|
||||
void main(void) {
|
||||
println("Hello world");
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue