Return-path: Received: from mail-yw0-f46.google.com ([209.85.213.46]:47638 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755290Ab2EUNPG convert rfc822-to-8bit (ORCPT ); Mon, 21 May 2012 09:15:06 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 21 May 2012 16:15:05 +0300 Message-ID: (sfid-20120521_151529_805431_FC783870) Subject: Re: [Lf_driver_backport] scripts in compat tree From: =?UTF-8?B?T3phbiDDh2HEn2xheWFu?= To: "Luis R. Rodriguez" Cc: linux-kernel@vger.kernel.org, Andy Whitcroft , lf_driver_backport@lists.linux-foundation.org, linux-wireless@vger.kernel.org, linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: > Well kernel.org does not have already built kernels. Ubuntu's PPA > kernels *are* vanilla kernels, in fact that is why they were put up, > they are guaranteed to be built on vanilla kernels. We couldn't get a > more generic approach then. The only thing though is -- the PPA > kernels obviously have the kernels integrated on .debs. There are a > few options here: > >  1) If Ubuntu can dpkg -x the kernels for us onto tarballs that'd be swell >  2) We could write our own script to do this with C code that does > the dpkg -x for us > > There are ways to do 2) suggested in the thread above. ah you are right, we need to have built kernels in order to build the modules. Well then the 2nd solution seems reasonable if we can mimic dpkg -x. I googled a bit and people says that debs are generic .ar archives so it would be easy to take the tarball inside of them. If I succeed this can be used on any distro since that they are vanilla without any patches. But if the PPA disappears one day, we'll have to find another solution :) BTW you also download the kernel images probably for booting into them to test the compat builds. Booting using those images on other distributions can be messy and unsuccessful as initramfs and booting mechanisms differ widely. I'll test those too. -- Ozan Çağlayan