[PATCH v3 1/2] scripts/kernel-doc.py: don't create *.pyc files
Andy Shevchenko
andriy.shevchenko at intel.com
Wed Apr 16 09:23:01 UTC 2025
On Wed, Apr 16, 2025 at 05:19:17PM +0800, Mauro Carvalho Chehab wrote:
> Em Wed, 16 Apr 2025 11:34:16 +0300
> Jani Nikula <jani.nikula at linux.intel.com> escreveu:
> > On Wed, 16 Apr 2025, Mauro Carvalho Chehab <mchehab+huawei at kernel.org> wrote:
...
> > > quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@)
> > > cmd_hdrtest = \
> > > $(CC) $(c_flags) -fsyntax-only -x c /dev/null -include $< -include $<; \
> > > - $(srctree)/scripts/kernel-doc -none $(if $(CONFIG_WERROR)$(CONFIG_DRM_WERROR),-Werror) $<; \
> > > + PYTHONDONTWRITEBYTECODE=1 $(KERNELDOC) -none $(if $(CONFIG_WERROR)$(CONFIG_DRM_WERROR),-Werror) $<; \
> >
> > KERNELDOC is not set here.
>
> >
> > /bin/sh: 1: -none: not found
>
> Weird. This is set on Documentation/Makefile:
>
> $ grep KERNELDOC Documentation/Makefile
> KERNELDOC = $(srctree)/scripts/kernel-doc.py
> ...
>
> drivers/gpu/drm/Makefile should be able to see this variable there...
Does it work in the case of `make drivers/gpu/drm` ? This is probably how Jani
tried it.
> > > touch $@
--
With Best Regards,
Andy Shevchenko
More information about the Intel-gfx
mailing list