Added the building of linux-doc package.
svn path=/branches/kernel-image-2.6.11/; revision=3280
This commit is contained in:
parent
b05c0a5258
commit
97127f61d8
|
@ -47,7 +47,7 @@ export version abiname ltver kbuildver flavours major uver
|
||||||
patch: debian/patch-stamp
|
patch: debian/patch-stamp
|
||||||
debian/patch-stamp: debian/bin/apply
|
debian/patch-stamp: debian/bin/apply
|
||||||
dh_testdir
|
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.
|
# make-kpkg does this when building kernel-source.
|
||||||
mv scripts/package/Makefile scripts/package/Makefile.dist
|
mv scripts/package/Makefile scripts/package/Makefile.dist
|
||||||
mv scripts/package/builddeb scripts/package/builddeb.dist
|
mv scripts/package/builddeb scripts/package/builddeb.dist
|
||||||
|
@ -57,12 +57,12 @@ debian/patch-stamp: debian/bin/apply
|
||||||
|
|
||||||
unpatch:
|
unpatch:
|
||||||
dh_testdir
|
dh_testdir
|
||||||
if [ -e debian/patch-stamp ]; then \
|
if [ -e debian/patch-stamp ]; then \
|
||||||
override_version=$(release) home=debian/patches \
|
override_version=$(release) home=debian/patches-debian \
|
||||||
debian/bin/apply $(version); \
|
debian/bin/apply $(version); \
|
||||||
cd scripts/package; \
|
cd scripts/package; \
|
||||||
mv Makefile.dist Makefile; \
|
mv Makefile.dist Makefile; \
|
||||||
mv builddeb.dist builddeb; \
|
mv builddeb.dist builddeb; \
|
||||||
fi
|
fi
|
||||||
rm -f debian/patch-stamp
|
rm -f debian/patch-stamp
|
||||||
#
|
#
|
||||||
|
@ -151,6 +151,27 @@ debian/patch-debian-stamp: debian/bin/apply debian/bin/unpatch
|
||||||
dh_md5sums -p$(ppkg)
|
dh_md5sums -p$(ppkg)
|
||||||
dh_builddeb -p$(ppkg)
|
dh_builddeb -p$(ppkg)
|
||||||
touch debian/patch-debian-stamp
|
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
|
unpack: debian/unpack-stamp
|
||||||
debian/unpack-stamp: debian/patch-stamp
|
debian/unpack-stamp: debian/patch-stamp
|
||||||
|
@ -181,7 +202,7 @@ clean: unpatch
|
||||||
rm -rf kernel-source-* build-* install-*
|
rm -rf kernel-source-* build-* install-*
|
||||||
dh_clean
|
dh_clean
|
||||||
|
|
||||||
binary-indep: source tree
|
binary-indep: source tree patch-debian doc
|
||||||
binary-arch: build
|
binary-arch: build
|
||||||
dh_testdir
|
dh_testdir
|
||||||
for i in $(subarchs); do \
|
for i in $(subarchs); do \
|
||||||
|
|
|
@ -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
|
The package serves no purpose outside of the Debian build and
|
||||||
archive infrastructure.
|
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.
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue