kbuild: move scripts/basic/docproc.c to scripts/docproc.c
Subsystems (2)
PATCH 1/2 kbuild: move scripts/basic/docproc.c to scripts/docproc.c
From: Peter Foley <[email protected]>
Move docproc from scripts/basic to scripts so it is only built for *doc targets instead of every time the kernel is built.
Signed-off-by Peter Foley <[email protected]>
---
Documentation/DocBook/Makefile | 2 +-
Makefile | 1 +
scripts/.gitignore | 1 +
scripts/Makefile | 11 +++++++----
scripts/basic/.gitignore | 2 --
scripts/basic/Makefile | 3 +--
scripts/{basic => }/docproc.c | 0
7 files changed, 11 insertions(+), 9 deletions(-)
rename scripts/{basic => }/docproc.c (100%)Documentation/DocBook/Makefile +1 -1
@@ -73,7 +73,7 @@ installmandocs: mandocs ### #External programs used KERNELDOC = $(srctree)/scripts/kernel-doc -DOCPROC = $(objtree)/scripts/basic/docproc +DOCPROC = $(objtree)/scripts/docproc XMLTOFLAGS = -m $(srctree)/Documentation/DocBook/stylesheet.xsl XMLTOFLAGS += --skip-validation
Makefile +1 -0
@@ -1290,6 +1290,7 @@ $(help-board-dirs): help-%: # Documentation targets # --------------------------------------------------------------------------- %docs: scripts_basic FORCE + $(Q)$(MAKE) $(build)=scripts build_docproc $(Q)$(MAKE) $(build)=Documentation/DocBook $@ else # KBUILD_EXTMOD
scripts/.gitignore +1 -0
@@ -8,3 +8,4 @@ bin2c unifdef ihex2fw recordmcount +docproc
scripts/Makefile +7 -3
@@ -5,7 +5,8 @@ # kallsyms: Find all symbols in vmlinux # pnmttologo: Convert pnm files to logo files # conmakehash: Create chartable -# conmakehash: Create arrays for initializing the kernel console tables +# conmakehash: Create arrays for initializing the kernel console tables +# docproc: Used in Documentation/DocBook hostprogs-$(CONFIG_KALLSYMS) += kallsyms hostprogs-$(CONFIG_LOGO) += pnmtologo
@@ -16,12 +17,14 @@ hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount always := $(hostprogs-y) $(hostprogs-m) # The following hostprogs-y programs are only build on demand -hostprogs-y += unifdef +hostprogs-y += unifdef docproc -# This target is used internally to avoid "is up to date" messages -PHONY += build_unifdef +# These targets are used internally to avoid "is up to date" messages +PHONY += build_unifdef build_docproc build_unifdef: scripts/unifdef FORCE @: +build_docproc: scripts/docproc FORCE + @: subdir-$(CONFIG_MODVERSIONS) += genksyms subdir-y += mod
scripts/basic/.gitignore +0 -2
@@ -1,3 +1 @@ -hash fixdep -docproc
scripts/basic/Makefile +1 -1
@@ -7,9 +7,8 @@ # .config is included by main Makefile. # --------------------------------------------------------------------------- # fixdep: Used to generate dependency information during build process -# docproc: Used in Documentation/DocBook -hostprogs-y := fixdep docproc +hostprogs-y := fixdep always := $(hostprogs-y) # fixdep is needed to compile other host programs
scripts/docproc.c renamed from scripts/basic/docproc.c +0 -0
Signature · 1 line
1.7.5.rc1