Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: Makefile: Inherit PYTHONPYCACHEPREFIX setting as env variable

Commit 6c2f0b28d76e ("docs: Makefile: store __pycache__ at the output
directory") assigns a new path to PYTHONPYCACHEPREFIX for building
kernel documentation.

However, it is not necessarily optimal for everyone.

If you find PYTHONPYCACHEPREFIX is already set, it strongly suggests
that the developer has selected the setting as best suited for one's own
workflow.

Use "?=" in the assignment to PYTHONPYCACHEPREFIX so that the path of
$(abspath $(BUILDDIR)/__pycache__) works only as a safeguard.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <0253ce98-960c-4498-8ace-a4354e3ebc26@gmail.com>

authored by

Akira Yokosawa and committed by
Jonathan Corbet
a5b57bd9 40e71e32

+3 -1
+3 -1
Documentation/Makefile
··· 82 82 # $5 reST source folder relative to $(src), 83 83 # e.g. "userspace-api/media" for the linux-tv book-set at ./Documentation/userspace-api/media 84 84 85 + PYTHONPYCACHEPREFIX ?= $(abspath $(BUILDDIR)/__pycache__) 86 + 85 87 quiet_cmd_sphinx = SPHINX $@ --> file://$(abspath $(BUILDDIR)/$3/$4) 86 88 cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/userspace-api/media $2 && \ 87 - PYTHONPYCACHEPREFIX=$(abspath $(BUILDDIR)/__pycache__) \ 89 + PYTHONPYCACHEPREFIX="$(PYTHONPYCACHEPREFIX)" \ 88 90 BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(src)/$5/$(SPHINX_CONF)) \ 89 91 $(PYTHON3) $(srctree)/scripts/jobserver-exec \ 90 92 $(CONFIG_SHELL) $(srctree)/Documentation/sphinx/parallel-wrapper.sh \