diff options
author | Marek Vasut <marex@denx.de> | 2012-10-06 14:04:58 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-15 11:54:14 -0700 |
commit | 30ff89189ba111268cfcde508ac4cc9f83eb9bcd (patch) | |
tree | 74f17d6198cf7b9eab800241a5d1dfc64619d3d6 /tools/kernel-doc/Makefile | |
parent | c50204a5177f80ad10c3b3ce39356cc549bda413 (diff) | |
download | u-boot-imx-30ff89189ba111268cfcde508ac4cc9f83eb9bcd.zip u-boot-imx-30ff89189ba111268cfcde508ac4cc9f83eb9bcd.tar.gz u-boot-imx-30ff89189ba111268cfcde508ac4cc9f83eb9bcd.tar.bz2 |
kerneldoc: Implant DocBook from Linux kernel
Pull slightly modified version of Documentation/DocBook, the related perl
script scripts/kernel-doc and the scripts/docproc.c from Linux kernel and
implant it into U-Boot. This will allow smooth generation of kerneldoc
style documentation.
It was necessary to modify the DocBook/Makefile to work with U-Boot build
system. The changes were only minor though and involved replacing the kbuild
specific parts.
It was also necessary to replace use of variables like KERNEL_VERSION with
U_BOOT_VERSION, strings like Linux kernel with U-Boot Bootloader etc. so
the generated result actually matches.
Finally, it was necessary to adjust docproc.c, since the documentation in
U-Boot is located in doc/DocBook instead of Documentation/DocBook as is in
case of the Linux kernel.
Some parts of the DocBook Makefile are unused, but to allow easier sync with
Linux kernel, these parts are still left in. The targets enabled now are
"htmldocs" "pdfdocs" "psdocs" "xmldocs" and "cleandocs" to remove the results
of documentation build.
Linux scripts/docproc.c:
commit f0f3ca8d967462dafb815412b14ca3339b9817a6
Date: Wed Jun 15 11:53:13 2011 +0200
Linux scripts/kernel-doc:
commit 1b40c1944db445c1de1c47ffd8cd426167f488e8
Date: Sun Aug 12 10:46:15 2012 +0200
Linux Documentation/DocBook:
commit bb8187d35f820671d6dd76700d77a6b55f95e2c5
Date: Thu May 17 19:06:13 2012 -0400
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'tools/kernel-doc/Makefile')
-rw-r--r-- | tools/kernel-doc/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/kernel-doc/Makefile b/tools/kernel-doc/Makefile new file mode 100644 index 0000000..28a3f61 --- /dev/null +++ b/tools/kernel-doc/Makefile @@ -0,0 +1,38 @@ +# +# Copyright (C) 2012 Marek Vasut <marex@denx.de> +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +include $(TOPDIR)/config.mk + +all: $(obj)docproc + +$(obj)docproc: docproc.c + $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ + $(HOSTSTRIP) $@ + +clean: + rm -rf docproc + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +######################################################################### |