[alsa-devel] alsa-driver 1.0.18 doesn't built on PPC 2.6.27 and 2.6.28

Takashi Iwai tiwai at suse.de
Wed Nov 5 08:56:33 CET 2008


At Tue, 4 Nov 2008 23:40:01 +0100,
Elimar Riesebieter wrote:
> 
> * Elimar Riesebieter [081104 21:00 +0100]
> > * Takashi Iwai [081104 19:00 +0100]
> > [...] 
> > > Does sound-2.6.git tree work with 2.6.28-rc3?
> > >     git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git
> > > 
> > > Pull master branch on 2.6.28-rc3 git.
> > > If so, possibly it's a missing include path for asm/*.h or so...
> > 
> > Building 2.6.28-rc3 inline drivers works.
> > 
> > > Or, just try to add #include <linux/kernel.h> before the inclusion of
> > > linux/module.h in alsa-driver/include/adriver.h.
> > 
> > That doesn't work either.
> > 
> > In 2.6.27, 2.6.28-rc? and sound-2.6.git we are missing
> > include/asm-powerpc which configure is looking for:
> > 
> > checking for kernel linux/devfs_fs_kernel.h... no
> > Creating a dummy <linux/devfs_fs_kernel.h>...
> > --
> > checking for kernel asm/hw_irq.h... no
> > Creating a dummy <asm/hw_irq.h>...
> > --
> > checking for kernel asm/irq_regs.h... no
> > Creating a dummy <asm/irq_regs.h>...
> > 
> > configure links include/asm-arch to asm, though.
> > hw_irq.h and irq_regs.h, where local_irq_save and local_irq_restore
> > is defined, I found in /arch/powerpc/include/asm.
> 
> My temporaire solution:
> 
> 1. put #include <linux/mm.h> in alsa-driver/include/adriver.h
> 2. copy arch/powerpc/include/asm/* into include asm-powerpc
> 3. build suceeded
> 
> At this moment I need an idea how to patch configure script to do
> that.

How about the patch below?

> > But devfs_fs_kernel.h I found in none of 2.6.2[6-8]?
> We don't use devfs anymore ;)

A dummy header is created automatically.


thanks,

Takashi

---
diff --git a/configure.in b/configure.in
index d5962c6..b9b1462 100644
--- a/configure.in
+++ b/configure.in
@@ -1266,6 +1266,21 @@ EOF
     ;;
 esac
 
+if test -n "$ARCH"; then
+   case "$ARCH" in
+   i?86|x86_64)
+      if test -d $CONFIG_SND_KERNELDIR/arch/x86/include; then
+      	 KERNEL_INC="$KERNEL_INC -I$CONFIG_SND_KERNELDIR/arch/x86/include"
+      fi
+      ;;
+   *)
+      if test -d $CONFIG_SND_KERNELDIR/arch/$ARCH/include; then
+      	 KERNEL_INC="$KERNEL_INC -I$CONFIG_SND_KERNELDIR/arch/$ARCH/include"
+      fi
+      ;;
+   esac
+fi
+
 dnl set ia32 (X86)
 mach_dir=""
 case "$processor" in


More information about the Alsa-devel mailing list