mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Move all host examples under host/
This commit is contained in:
parent
1213c5673f
commit
7353810199
16 changed files with 104 additions and 143 deletions
|
|
@ -1,21 +0,0 @@
|
|||
# Auto-generate the Arduino example
|
||||
# Arduino cannot set -DUVM32_MEMORY_SIZE, so add a config file
|
||||
# Arduino expects .cpp files
|
||||
|
||||
# make test, runs in qemu
|
||||
|
||||
all:
|
||||
echo '#include "config.h"' > uvm32.cpp
|
||||
cat ../uvm32/uvm32.c >> uvm32.cpp
|
||||
cp ../uvm32/uvm32.h uvm32.h
|
||||
cp ../uvm32/mini-rv32ima.h mini-rv32ima.h
|
||||
cp ../common/uvm32_common_custom.h uvm32_common_custom.h
|
||||
cp ../common/uvm32_sys.h uvm32_sys.h
|
||||
xxd -i ../precompiled/mandel.bin | sed -e "s/unsigned char/const unsigned char/" > mandel.h
|
||||
arduino-cli compile -b arduino:avr:uno -e
|
||||
|
||||
test: all
|
||||
qemu-system-avr -machine uno -bios build/arduino.avr.uno/host-arduino.ino.elf -nographic -serial mon:stdio
|
||||
|
||||
clean:
|
||||
rm -rf uvm32.cpp uvm32.h mini-rv32ima.h uvm32_common_custom.h uvm32_sys.h mandel.h build
|
||||
Loading…
Add table
Add a link
Reference in a new issue