X-Git-Url: https://git.libre-soc.org/?p=soc.git;a=blobdiff_plain;f=Makefile;h=cd8c001dce74d25484ef460619d40e756170f96b;hp=da5a74c44acab213e2970d7461e112b97fbad7cd;hb=70ecf8696116f5007ce15e68f77b2fd0590fb102;hpb=7a47aeaf6475115b97c272acfd5b602188d56ff8 diff --git a/Makefile b/Makefile index da5a74c4..cd8c001d 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,58 @@ PYTHON3 ?= "python3" +.PHONY: help Makefile gitupdate install run_sim test htmlupload + gitupdate: git submodule init - git submodule update --recursive + git submodule update --init --recursive --remote + +mkpinmux: + ./mkpinmux.sh + cp pinmux/ls180/ls180_pins.py src/soc/debug + cp pinmux/ls180/ls180_pins.py src/soc/litex/florent/libresoc + +install: develop mkpinmux -install: - python3 setup.py develop # yes, develop, not install +develop: + python3 setup.py develop --user # yes, develop, not install python3 src/soc/decoder/pseudo/pywriter.py +run_sim: install + python3 src/soc/simple/issuer_verilog.py \ + src/soc/litex/florent/libresoc/libresoc.v + python3 src/soc/litex/florent/sim.py --cpu=libresoc + +testgpio_run_sim: + python3 src/soc/simple/issuer_verilog.py \ + src/soc/litex/florent/libresoc/libresoc.v \ + --enable-testgpio + python3 src/soc/litex/florent/sim.py --cpu=libresoc \ + --variant=standardjtagtestgpio + test: install python3 setup.py test # could just run nosetest3... + +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +SPHINXPROJ = Libre-SOC +SOURCEDIR = . +BUILDDIR = build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + mkdir -p "$(SOURCEDIR)"/src/gen + sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/soc + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +htmlupload: clean html + rsync -HPavz --delete build/html/* \ + libre-soc.org:/var/www/libre-soc.org/docs/soc/