From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FvavT-0001Rn-Fw for garchives@archives.gentoo.org; Wed, 28 Jun 2006 14:21:55 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k5SEKZ42020757; Wed, 28 Jun 2006 14:20:35 GMT Received: from kivasystems.com (mail.kivasystems.com [204.14.67.10]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k5SEKYen023793 for ; Wed, 28 Jun 2006 14:20:35 GMT Received: from localhost (localhost [127.0.0.1]) by kivasystems.com (Postfix) with ESMTP id DD0DBBFB86A for ; Wed, 28 Jun 2006 10:20:33 -0400 (EDT) Received: from kivasystems.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02281-04 for ; Wed, 28 Jun 2006 10:20:26 -0400 (EDT) Received: from [10.100.4.237] (woodstock.kivasystems.com [10.100.4.237]) by kivasystems.com (Postfix) with ESMTP id 532E6BFB83A for ; Wed, 28 Jun 2006 10:20:26 -0400 (EDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 (Apple Message framework v750) In-Reply-To: <1151456297.8059.12.camel@localhost> References: <80036D36-DA30-457C-A419-EBA5582CC523@kivasystems.com> <84ac67910606261040x194e1d53h5aa2b626acb7355a@mail.gmail.com> <1F1C7BA1-DBC9-4CE1-87AB-7EC237583BF4@kivasystems.com> <84ac67910606261315u6413a0cr9ef10a1bc61ce759@mail.gmail.com> <1151456297.8059.12.camel@localhost> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <20AE4B15-7FDE-4A4F-A3FF-389C63489FFD@kivasystems.com> Content-Transfer-Encoding: 7bit From: Joshua ChaitinPollak Subject: Re: [gentoo-embedded] Specify Kernel Version for Module emerge Date: Wed, 28 Jun 2006 10:20:24 -0400 To: gentoo-embedded@lists.gentoo.org X-Mailer: Apple Mail (2.750) X-Virus-Scanned: by amavisd-new at kivasystems.com X-Archives-Salt: 33097730-76e2-49a1-970d-bac1fa362472 X-Archives-Hash: d43f98919bd1ca895aa6341ea9a32f79 On Jun 27, 2006, at 8:58 PM, Ned Ludd wrote: > On Mon, 2006-06-26 at 16:26 -0400, Joshua ChaitinPollak wrote: >> Yup: >> >> export KERNELPATH=/usr/src/linux >> emerge >> >> Then I had to re-write the Soekris gpio ebuild for the new 2.6 kernel >> drivers. Ugh. > > Correct the gpio ebuild is for 2.4.x > What did you have to rewrite exactly? I'm sure there is a more elegant way to do what I did, but I was in a rush. I would submit a patch, but as you probably could guess from the portage/ busybox patch bug you commented on earlier, I'm neither a portage nor patch expert. Here is a little step-by-step of what I did, I would be happy to zip up what I've done and send it to you if it would be helpful. I created a dev-embedded/gpio-new directory in my portage overlay, and copied the gpio-1.3.2 ebuild into it, renaming it gpio- new-1.3.2.ebuild. I did that because I didn't know if it is possible to differentiate ebuilds based on kernel versions. In the new ebuild, I updated the homepage and src_uri variables for the location of the new code (because it is hosted by a different developer) I set the S variable because the downloaded tarball extracts to $ {WORKDIR}/gpio-1.3.2+trillian0.01 I moved the MODULE_NAMES and BUILD_PARAMS variables into the pkg_setup () function (unneeded I'm sure) Set the BUILD_TARGET variable to be "" instead of "all". Added a line to pkg_setup(): cp ${FILESDIR}/Makefile ./ created gpio-new/files/Makefile, which is the gpio-1.3.2+trillian0.01 Makefile with the following lines appended to it: module: default clean: rm -f *.ko *.o -- Joshua ChaitinPollak Software Engineer Kiva Systems -- gentoo-embedded@gentoo.org mailing list