From: Takashi Iwai Subject: Re: Adding a new architecture to alsa-driver Date: Mon, 10 Apr 2006 12:19:23 +0200 Message-ID: References: <1144510532.10642.1.camel@localhost.localdomain> <1144512218.22490.146.camel@mindpipe> <1144542208.10642.9.camel@localhost.localdomain> <1144544652.22490.181.camel@mindpipe> <1144579821.9248.0.camel@localhost.localdomain> <1144585566.9248.5.camel@localhost.localdomain> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1144585566.9248.5.camel@localhost.localdomain> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Adrian McMenamin Cc: Jaroslav Kysela , Lee Revell , alsa-devel List-Id: alsa-devel@alsa-project.org At Sun, 09 Apr 2006 13:26:06 +0100, Adrian McMenamin wrote: > > On Sun, 2006-04-09 at 13:24 +0200, Jaroslav Kysela wrote: > > On Sun, 9 Apr 2006, Adrian McMenamin wrote: > > > > > On Sat, 2006-04-08 at 21:04 -0400, Lee Revell wrote: > > > > On Sun, 2006-04-09 at 01:23 +0100, Adrian McMenamin wrote: > > > > > The changes you suggest simply are inadequate. There is no makefile > > > > > without configure and even though I have managed to patch the > > > > > configure > > > > > file so it will create a Makefile, a make simply builds the alsa core > > > > > and doesn't touch the sh sub directory despite having this in the > > > > > makefile: > > > > > > > > > > > > > Did you patch alsa-driver/configure.in? > > > > > > > > $ grep CONFIG_PARISC configure.in > > > > #elif defined(CONFIG_PARISC) > > > > AC_SUBST(CONFIG_PARISC) > > > > > > > > I don't know autoconf well enough to know exactly what this is doing but > > > > it seems like you could just copy/paste and s/PARISC/SUPERH/... > > > > > > > > > > I had to patch it in about 6 or 7 places and that was one of them > > > > Do you have a valid Kconfig file with your driver? The dependencies are > > parsed from Kconfig files. > > > Yes, though I have put it in alsa-kernel for the build as Lee suggested > (the writing a driver document doesn't say that though) My document is not a bible that tells everything. Don't believe in it blindly. For adding a new architecture, currently, you'd need to patch alsa-kernel/Kconfig. Or, an ugly hack, e.g. by including "../sh/Kconfig" from alsa-driver/acore/Kconfig. I'll fix this issue later. But honestly, it's a quite time-cusuming thing that you ask us questions without showing your code. I strongly advise you to post a patch. You can create an all-in-one patch by % diff -ruN old-tree new-tree This will include changes for unnecessary files (like configure, config.*, */Makefile...), and you'll need to cut them manually via a text editor. A more clever way is, if you compare two CVS trees, % diff -ruN --exclude=CVS --exclude='.#*' \ --exclude-from=.cvsignore \ old-tree new-tree or, using "cvs diff" on the new CVS tree, % cvs diff -u -N In the latter case, you need to add the new files via "cvs add". Otherwise "cvs diff" won't make a diff. Takashi ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642