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.

Makefile: move KERNELDOC macro to the main Makefile

As kernel-doc script is used not only on Documentation, but
also on scripts and drivers/drm Makefiles, move it to the
main makefile, as otherwise sub-makefiles may not have it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <bb3ea3b49e76aee51dae7762db10c4d38cd67afe.1745453655.git.mchehab+huawei@kernel.org>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
110214e4 76a9b592

+5 -1
-1
Documentation/Makefile
··· 60 60 # Internal variables. 61 61 PAPEROPT_a4 = -D latex_paper_size=a4 62 62 PAPEROPT_letter = -D latex_paper_size=letter 63 - KERNELDOC = $(srctree)/scripts/kernel-doc.py 64 63 ALLSPHINXOPTS = -D kerneldoc_srctree=$(srctree) -D kerneldoc_bin=$(KERNELDOC) 65 64 ALLSPHINXOPTS += $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) 66 65 ifneq ($(wildcard $(srctree)/.config),)
+5
Makefile
··· 458 458 HOSTRUSTC = rustc 459 459 HOSTPKG_CONFIG = pkg-config 460 460 461 + # the KERNELDOC macro needs to be exported, as scripts/Makefile.build 462 + # has a logic to call it 463 + KERNELDOC = $(srctree)/scripts/kernel-doc.py 464 + export KERNELDOC 465 + 461 466 KBUILD_USERHOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \ 462 467 -O2 -fomit-frame-pointer -std=gnu11 463 468 KBUILD_USERCFLAGS := $(KBUILD_USERHOSTCFLAGS) $(USERCFLAGS)