This has bitted me today when building a custom kernel with kernel-package....
I have applied the patch suggested by Mihail and it works. I have changed the logic on the first line of the patch to match kernels 3.x and above (who knows when Linus will decide to release kernel 4.x) so we avoid having this issue another time in the not-so-long future. I am attaching the patch here. The patch is above commit 3ead01d of the git repository of the package git://git.debian.org/~srivasta/debian/kernel-package.git Regards! -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Carlos Alberto Lopez Perez http://neutrino.es Igalia - Free Software Engineering http://www.igalia.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
commit ec02b476e5037b22e5f3060a6703f8a93770eb11 Author: Carlos Alberto Lopez Perez <clo...@igalia.com> Date: Wed Feb 1 03:52:49 2012 +0100 Kernel headers: match kernels from 2.6.23 (including 3.x and above) * Closes #635563 * Closes #639123 diff --git a/kernel/ruleset/targets/headers.mk b/kernel/ruleset/targets/headers.mk index ec3975c..ec1c730 100644 --- a/kernel/ruleset/targets/headers.mk +++ b/kernel/ruleset/targets/headers.mk @@ -31,7 +31,7 @@ ############################################################################### LINK_ARCH=$(KERNEL_ARCH) -ifeq ($(shell if [ $(PATCHLEVEL) -eq 6 ] && [ $(SUBLEVEL) -gt 23 ] ; then \ +ifeq ($(shell if [ $(VERSION) -ge 3 ] || [ $(PATCHLEVEL) -eq 6 -a $(SUBLEVEL) -gt 23 ] ; then \ if [ $(KERNEL_ARCH) = "i386" ] || [ $(KERNEL_ARCH) = "x86_64" ] ; then \ echo "yes" ; fi ; fi ),yes) LINK_ARCH=x86 @@ -101,7 +101,7 @@ debian/stamp/install/$(h_package): -tar cfh - scripts | (cd $(SRCDIR); umask 000; tar xsf -) test ! -e arch/powerpc/lib/crtsavres.o || \ tar cfh - arch/powerpc/lib/crtsavres.o | (cd $(SRCDIR); umask 000; tar xsf -) - (cd $(SRCDIR)/include; rm -rf asm; ln -s asm-$(LINK_ARCH) asm) + (cd $(SRCDIR)/include; rm -rf asm; ln -s ../arch/$(LINK_ARCH)/include/asm asm) find . -path './scripts/*' -prune -o -path './Documentation/*' -prune -o \ -path './debian/*' -prune -o -type f \ \( -name Makefile -o -name 'Kconfig*' \) -print | \ @@ -115,7 +115,7 @@ debian/stamp/install/$(h_package): -tar cf - scripts | (cd $(SRCDIR); umask 000; tar xsf -) test ! -e arch/powerpc/lib/crtsavres.o || \ tar cfh - arch/powerpc/lib/crtsavres.o | (cd $(SRCDIR); umask 000; tar xsf -) - (cd $(SRCDIR)/include; rm -f asm; ln -s asm-$(LINK_ARCH) asm) + (cd $(SRCDIR)/include; rm -f asm; ln -s ../arch/$(LINK_ARCH)/include/asm asm) find . -path './scripts/*' -prune -o -path './Documentation/*' -prune -o \ -path './debian/*' -prune -o -type f \ \( -name Makefile -o -name 'Kconfig*' \) -print | \
signature.asc
Description: OpenPGP digital signature