Removed added_patches support, instead the arch

patches are now applied automatically at the
unpacking stage.

svn path=/branches/kernel-image-2.6.11/; revision=3279
This commit is contained in:
Jurij Smakov 2005-05-31 01:17:23 +00:00
parent 8f30e870dc
commit b05c0a5258
2 changed files with 14 additions and 21 deletions

13
debian/Makefile vendored
View File

@ -59,10 +59,6 @@ kpkg_headers_cmd += make-kpkg --append-to-version $(append)$(debnum)
kpkg_headers_cmd += --stem linux kpkg_headers_cmd += --stem linux
kpkg_build_cmd := make-kpkg --append-to-version $(debnum)-@flavour@ kpkg_build_cmd := make-kpkg --append-to-version $(debnum)-@flavour@
kpkg_build_cmd += --stem linux kpkg_build_cmd += --stem linux
ifdef added_patches
kpkg_headers_cmd += --added_patches $(subst @uver@,$(uver),$(added_patches))
kpkg_build_cmd += --added_patches $(subst @uver@,$(uver),$(added_patches))
endif
ifdef build_subarch ifdef build_subarch
kpkg_build_cmd += --subarch $(build_subarch) kpkg_build_cmd += --subarch $(build_subarch)
endif endif
@ -166,6 +162,9 @@ config.%:
cat $(basedir)/$@ >> $@ cat $(basedir)/$@ >> $@
srcfiles := $(filter-out ../debian ../linux-source-$(version), $(shell echo ../*)) srcfiles := $(filter-out ../debian ../linux-source-$(version), $(shell echo ../*))
patches := $(wildcard patches-debian/$(subarch).*)
patches += $(wildcarc patches-debian/$(karch).*)
patches := $(strip $(patches))
$(kdir): post-install-$(subarch) $(controls) $(kdir): post-install-$(subarch) $(controls)
mkdir -p $(tkdir) mkdir -p $(tkdir)
cp -al $(srcfiles) $(tkdir) cp -al $(srcfiles) $(tkdir)
@ -180,7 +179,11 @@ $(kdir): post-install-$(subarch) $(controls)
-e 's/@abiname@/$(abiname)/g' | \ -e 's/@abiname@/$(abiname)/g' | \
sed '/^[[:space:]]*$$/d' | \ sed '/^[[:space:]]*$$/d' | \
sed 's/^Package:/\n&/g' > $(tkdir)/debian/control sed 's/^Package:/\n&/g' > $(tkdir)/debian/control
touch $(tkdir)/debian/official touch $(tkdir)/debian/official
if [ -n '$(patches)' ]; then \
cd $(tkdir); \
cat $(addprefix ../,$(patches)) | patch -p1; \
fi
install post-install-$(subarch) $(tkdir)/debian/post-install install post-install-$(subarch) $(tkdir)/debian/post-install
mv $(tkdir) $@ mv $(tkdir) $@
# #

22
debian/README vendored
View File

@ -12,9 +12,12 @@ Support for arch/subarch-specific patches
----------------------------------------- -----------------------------------------
Patches specific to a particular architecture or subarchitecture and Patches specific to a particular architecture or subarchitecture and
not included into the debian patch set should be placed in the not included into the debian patch set should be placed in the
'patches' subdirectory of arch/<arch> or arch/<arch>/<subarch>. This debian/patches-arch subdirectory. Patch must be named <arch>.diff or
directory is expected to contain the patch files and a file 'list' <subarch>.diff. If such patch is present, it will be automatically
with list of patches to apply. applied during the unpacking of the build tree for a particular
(sub)architecture. Patches present in the debian/patches-arch will also
be included in the kernel-patch-debian package, suitable for building
kernels with make-kpkg.
Config files Config files
------------ ------------
@ -128,19 +131,6 @@ headers_subarch
headers_subarch := sparc64 headers_subarch := sparc64
added_patches
Setting this variable to non-empty value will cause an option
--added_patches to be added to the make-kpkg 'build' and
'kernel-image' calls. The value of the variable will be
given as an argument for the --added-patchs option. The value
of this variable may contain a special string @uver@ which
is going to be expanded into the upstream kernel's version
with dots replaced by underscores (for example, 2_6_11 for the
kernel version 2.6.11). Typical usage:
added_patches := debian,hppa-@uver@
build_subarch build_subarch
Setting this variable to non-empty value will cause an option Setting this variable to non-empty value will cause an option