Hello!
I use this patch to solve the issue with broken symlinks and kernel version 3.x:
hamer@h13e:~/download/kernel-package$ cat kernel-package_headers.diff
diff -Naurb kernel-package-12.036+nmu1.orig//kernel/ruleset/targets/headers.mk
kernel-package-12.036+nmu1.1//kernel/ruleset/targets/headers.mk
--- kernel-package-12.036+nmu1.orig//kernel/ruleset/targets/headers.mk
2009-09-11 17:24:42.000000000 +0300
+++ kernel-package-12.036+nmu1.1//kernel/ruleset/targets/headers.mk
2011-10-10 12:24:47.734584775 +0300
@@ -31,7 +31,7 @@
###############################################################################
LINK_ARCH=$(KERNEL_ARCH)
-ifeq ($(shell if [ $(PATCHLEVEL) -eq 6 ] && [ $(SUBLEVEL) -gt 23 ] ; then \
+ifeq ($(shell if [ $(VERSION) -eq 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 @@
-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 @@
-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 |
\
WBR,
Mihail.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]