update submodule
[soc.git] / Makefile
1 PYTHON3 ?= "python3"
2
3 .PHONY: help Makefile gitupdate install run_sim test htmlupload
4
5 gitupdate:
6 git submodule init
7 git submodule update --init --recursive --remote
8
9 mkpinmux:
10 ./mkpinmux.sh
11 cp pinmux/ls180/ls180_pins.py src/soc/debug
12 cp pinmux/ls180/ls180_pins.py src/soc/litex/florent/libresoc
13
14 install: develop mkpinmux
15
16 develop:
17 python3 setup.py develop --user # yes, develop, not install
18 python3 src/soc/decoder/pseudo/pywriter.py
19
20 run_sim: install
21 python3 src/soc/simple/issuer_verilog.py src/soc/litex/florent/\
22 libresoc/libresoc.v
23 python3 src/soc/litex/florent/sim.py --cpu=libresoc
24
25 testgpio_run_sim:
26 python3 src/soc/simple/issuer_verilog.py src/soc/litex/florent/libresoc/\
27 libresoc.v --enable-testgpio
28 python3 src/soc/litex/florent/sim.py --cpu=libresoc --variant=standardjtagtestgpio
29
30 test: install
31 python3 setup.py test # could just run nosetest3...
32
33 # Minimal makefile for Sphinx documentation
34 #
35
36 # You can set these variables from the command line.
37 SPHINXOPTS =
38 SPHINXBUILD = sphinx-build
39 SPHINXPROJ = Libre-SOC
40 SOURCEDIR = .
41 BUILDDIR = build
42
43 # Put it first so that "make" without argument is like "make help".
44 help:
45 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
46
47 # Catch-all target: route all unknown targets to Sphinx using the new
48 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
49 %: Makefile
50 mkdir -p "$(SOURCEDIR)"/src/gen
51 sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/soc
52 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
53
54 htmlupload: clean html
55 rsync -HPavz --delete build/html/* \
56 libre-soc.org:/var/www/libre-soc.org/docs/soc/