Bug#321969: linux-kernel-headers: Please install the 32-bit 'ppc' kernel headers on the ppc64 architecture
Package: linux-kernel-headers
Version: 2.6.13+0rc3-1.1
Severity: wishlist
Tags: patch
Please install the 32-bit 'ppc' kernel headers on the ppc64 architecture.
Those headers will be necessary to build an alternative 32-bit powerpc
library for the 64-bit ppc64 architecture.
The attached patch changes debian/rules to install the ppc kernel headers
on ppc64 in '/usr/include/ppc-linux'. The implementation is similar
as for the amd64 case where the 32-bit i386 kernel headers are installed
in '/usr/include/i386-linux'.
Regards
Andreas Jochens
diff -urN ../tmp-orig/linux-kernel-headers-2.6.12.0/debian/rules ./debian/rules
--- ../tmp-orig/linux-kernel-headers-2.6.12.0/debian/rules 2005-07-20 12:18:53.000000000 +0000
+++ ./debian/rules 2005-07-20 12:17:41.000000000 +0000
@@ -47,6 +47,14 @@
cp -a include/asm-i386 $(includedir)/i386-linux/asm
endif
+ifeq ($(kernel_arch),ppc64)
+ # install the ppc kernel headers in /usr/include/ppc-linux
+ mkdir -p $(includedir)/ppc-linux
+ ln -s ../linux $(includedir)/ppc-linux
+ ln -s ../asm-generic $(includedir)/ppc-linux
+ cp -a include/asm-ppc $(includedir)/ppc-linux/asm
+endif
+
ifeq ($(kernel_arch),arm)
# ARM needs some extra symlinks.
rm -f $(includedir)/asm/proc
Reply to: