From: Takashi Iwai Subject: Re: alsa-driver 1.0.18 doesn't built on PPC 2.6.27 and 2.6.28 Date: Wed, 05 Nov 2008 08:56:33 +0100 Message-ID: References: <20081104134434.GA4122@bilbo.home.lxtec.de> <20081104172711.GB8872@bilbo.home.lxtec.de> <20081104195114.GC8872@bilbo.home.lxtec.de> <20081104224001.GC4122@bilbo.home.lxtec.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 4218A243EE for ; Wed, 5 Nov 2008 08:56:33 +0100 (CET) In-Reply-To: <20081104224001.GC4122@bilbo.home.lxtec.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Elimar Riesebieter Cc: alsa-devel , pkg-alsa-devel List-Id: alsa-devel@alsa-project.org 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 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 ... > > -- > > checking for kernel asm/hw_irq.h... no > > Creating a dummy ... > > -- > > checking for kernel asm/irq_regs.h... no > > Creating a dummy ... > > > > 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 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