[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 17:31:25 CET 2008


At Wed, 05 Nov 2008 08:56:33 +0100,
I wrote:
> 
> 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?

Apparently not enough.
I fixed now my git tree, so that it works at least for 2.6.28 x86*.
Hopefully this also fixes PPC issues.


Takashi


More information about the Alsa-devel mailing list