summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mk/cocotb.mk22
-rw-r--r--mk/tools.mk2
2 files changed, 12 insertions, 12 deletions
diff --git a/mk/cocotb.mk b/mk/cocotb.mk
index 240d808..e1289f6 100644
--- a/mk/cocotb.mk
+++ b/mk/cocotb.mk
@@ -1,9 +1,9 @@
-targets += pydoc test
+targets += pdoc test
target/test/prepare = $(prepare_verilator_target)
cocotb_modules = $(call per_target,cocotb_modules)
-pydoc_modules = $(call per_target,pydoc_modules)
+pdoc_modules = $(call per_target,pdoc_modules)
cocotb_pythonpath_decl = PYTHONPATH="$(subst $(space),:,$(strip $(cocotb_pythonpath)) $$PYTHONPATH)"
@@ -20,13 +20,13 @@ define cocotb_setup_common
endif
endef
-define target/pydoc/setup
+define target/pdoc/setup
$(cocotb_setup_common)
- $$(call target_var,pydoc_modules) := $$(strip $$(core_info/$$(rule_top)/pydoc_modules))
+ $$(call target_var,pdoc_modules) := $$(strip $$(core_info/$$(rule_top)/pdoc_modules))
- ifeq (,$$(pydoc_modules))
- $$(error core '$$(rule_top)' has no modules for pydoc to cover)
+ ifeq (,$$(pdoc_modules))
+ $$(error core '$$(rule_top)' has no modules for pdoc to cover)
endif
endef
@@ -41,13 +41,13 @@ define target/test/setup
-lcocotbvpi_verilator -lgpi -lcocotb -lgpilog -lcocotbutils $$(cocotb_libpython)
endef
-define target/pydoc/rules
- .PHONY: $$(rule_top_path)/pydoc
+define target/pdoc/rules
+ .PHONY: $$(rule_top_path)/pdoc
- $$(rule_top_path)/pydoc: | $$(obj)
- $$(call run,PYDOC) cd $$(obj) && $$(cocotb_pythonpath_decl) $$(PYDOC3) -w $$(pydoc_modules)
+ $$(rule_top_path)/pdoc: | $$(obj)
+ $$(call run,PDOC) cd $$(obj) && $$(cocotb_pythonpath_decl) $$(PDOC3) --html $$(pdoc_modules)
- $(call target_entrypoint,$$(rule_top_path)/pydoc)
+ $(call target_entrypoint,$$(rule_top_path)/pdoc)
endef
define target/test/rules
diff --git a/mk/tools.mk b/mk/tools.mk
index 177b956..5e4b87e 100644
--- a/mk/tools.mk
+++ b/mk/tools.mk
@@ -5,7 +5,7 @@ define find_tools_lazy
$(call find_command_lazy,ninja,NINJA)
$(call find_command_lazy,peakrdl,PEAKRDL)
$(call find_command_lazy,pkg-config,PKG_CONFIG)
- $(call find_command_lazy,pydoc3,PYDOC3)
+ $(call find_command_lazy,pdoc3,PDOC3)
$(call find_command_lazy,python3,PYTHON3)
$(call find_command_lazy,qsys-generate,QSYS_GENERATE)
$(call find_command_lazy,quartus,QUARTUS)