-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (28 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FEMTORV_DIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
PROJECTNAME=femtosoc
VERILOGS=RTL/$(PROJECTNAME).v
include BOARDS/icesugar_nano.mk
.PHONY: all clean terminal testbench
################################################################################
all:
@echo "make one of ICESTICK, ICEFEATHER, ULX3S... (or .synth / .prog)"
clean:
rm -f *.timings *.asc *.bin *.bit *config *.json *.svf \
*~ *.vvp *.dfu *.rpt *.blif femtosoc.txt FIRMWARE/config.mk
TERMS=/dev/ttyUSB1 /dev/ttyUSB0
# Uncomment one of the following lines (pick your favorite term emulator)
#terminal: terminal_miniterm
#terminal: terminal_screen
terminal: terminal_picocom
# # make terminal, rule for miniterm
# # exit: <ctrl> ] package: sudo apt-get install python3-serial
# terminal_miniterm:
# for i in $(TERMS); do miniterm --dtr=0 $$i 115200; done
# # make terminal, rule for screen
# # exit: <ctrl> a \ package: sudo apt-get install screen
# terminal_screen:
# for i in $(TERMS); do screen $$i 115200; done
# make terminal, rule for picocom
# exit: <ctrl> a \ package: sudo apt-get install picocom
#terminal_picocom:
for i in $(TERMS); do picocom -b 115200 $$i --imap lfcrlf,crcrlf --omap delbs,crlf --send-cmd "ascii-xfr -s -l 30 -n"; done