Module out of tree compilation fails due to missing kdoc python module after 992a9df41ad7
Hello,
I have run into an issue after recent commit 992a9df41ad7 ("docs: bring some order to our Python module hierarchy").
When building out-of-tree module with W=1 flag (using headers .deb package built with bindeb-pkg target), kernel-doc.py now tries to:
import from the kdoc
from kdoc.kdoc_files import KernelFiles from kdoc.kdoc_output import RestFormat, ManFormat
PYTHONPATH for kernel-doc.py is set relative to the file itself, which in case of using headers is just ../tools/lib/python but it does not exist.
So the tools/lib/python/kdoc module isn't included in the headers .deb package created by bindeb-pkg target (it only contains objtool under tools/) which causes failures during the build due to missing kdoc module.
Should these Python modules be packaged with kernel-doc.py in the headers .deb package or am I missing something here?
Thanks,
Karol