Added the building of linux-doc package.

svn path=/branches/kernel-image-2.6.11/; revision=3280
This commit is contained in:
Jurij Smakov 2005-05-31 02:16:28 +00:00
parent b05c0a5258
commit 97127f61d8
2 changed files with 29 additions and 21 deletions

37
debian/rules vendored
View File

@ -47,7 +47,7 @@ export version abiname ltver kbuildver flavours major uver
patch: debian/patch-stamp
debian/patch-stamp: debian/bin/apply
dh_testdir
override_version=$(release) home=debian/patches debian/bin/apply
override_version=$(release) home=debian/patches-debian debian/bin/apply
# make-kpkg does this when building kernel-source.
mv scripts/package/Makefile scripts/package/Makefile.dist
mv scripts/package/builddeb scripts/package/builddeb.dist
@ -57,12 +57,12 @@ debian/patch-stamp: debian/bin/apply
unpatch:
dh_testdir
if [ -e debian/patch-stamp ]; then \
override_version=$(release) home=debian/patches \
debian/bin/apply $(version); \
cd scripts/package; \
mv Makefile.dist Makefile; \
mv builddeb.dist builddeb; \
if [ -e debian/patch-stamp ]; then \
override_version=$(release) home=debian/patches-debian \
debian/bin/apply $(version); \
cd scripts/package; \
mv Makefile.dist Makefile; \
mv builddeb.dist builddeb; \
fi
rm -f debian/patch-stamp
#
@ -151,6 +151,27 @@ debian/patch-debian-stamp: debian/bin/apply debian/bin/unpatch
dh_md5sums -p$(ppkg)
dh_builddeb -p$(ppkg)
touch debian/patch-debian-stamp
#
# linux-doc package
#
dbdir := debian/build-doc
dbddir := $(dbdir)/debian
doc: debian/doc-stamp
debian/doc-stamp: debian/patch-stamp
dh_testdir
dh_testroot
# Create a build tree
mkdir -p $(dbdir)
cp -al $(source_files) $(dbdir)
mkdir -p $(dbddir)
cp debian/changelog $(dbddir)
cp debian/control $(dbddir)
cp debian/copyright $(dbddir)
touch $(dbddir)/official
cd $(dbdir) && make-kpkg --stem linux kernel-doc
cat $(dbddir)/files >> debian/files
mv debian/*.deb ..
touch debian/doc-stamp
unpack: debian/unpack-stamp
debian/unpack-stamp: debian/patch-stamp
@ -181,7 +202,7 @@ clean: unpatch
rm -rf kernel-source-* build-* install-*
dh_clean
binary-indep: source tree
binary-indep: source tree patch-debian doc
binary-arch: build
dh_testdir
for i in $(subarchs); do \

View File

@ -65,16 +65,3 @@ Description: Linux kernel source tree for building Debian kernel images
.
The package serves no purpose outside of the Debian build and
archive infrastructure.
Package: linux-scripts-@version@-@abiname@
Architecture: any
Section: devel
Priority: optional
Depends: coreutils | fileutils (>= 4.0)
Description: Architecture-specific header files for Linux kernel @version@
This package provides the architecture-specific support files for Linux
kernel version @version@, generally used for building out-of-tree
kernel modules. It mainly contains the binaries from the script/ kernel
directory, as well as other architecture-dependent files such as
asm-offsets.s.