From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.multimedia-labs.de ([82.149.226.172]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1PrgM5-0001CN-6P for openembedded-devel@lists.openembedded.org; Tue, 22 Feb 2011 01:43:53 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.multimedia-labs.de (Postfix) with ESMTP id BD984314DEC4 for ; Tue, 22 Feb 2011 01:42:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.multimedia-labs.de Received: from mail.multimedia-labs.de ([127.0.0.1]) by localhost (mail.multimedia-labs.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kW0fekUz-Obf for ; Tue, 22 Feb 2011 01:42:32 +0100 (CET) Received: from [172.22.22.61] (ip-94-79-168-47.unitymediagroup.de [94.79.168.47]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.multimedia-labs.de (Postfix) with ESMTPSA id 4A634314DEC2 for ; Tue, 22 Feb 2011 01:42:32 +0100 (CET) Message-ID: <4D630677.7090507@opendreambox.org> Date: Tue, 22 Feb 2011 01:42:31 +0100 From: Andreas Oberritter User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110208 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: openembedded-devel@lists.openembedded.org References: <1297429349-5526-1-git-send-email-obi@opendreambox.org> <4D5538BE.1080309@opendreambox.org> In-Reply-To: <4D5538BE.1080309@opendreambox.org> Subject: Re: [PATCH] kernel.bbclass: provide virtual/kernel-${PV} X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 00:43:53 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Ping. Is there any reason not to apply this patch? Is there a better way to solve the problem? On 02/11/2011 02:25 PM, Andreas Oberritter wrote: > On 02/11/2011 02:18 PM, Koen Kooi wrote: >> On 11-02-11 14:02, Andreas Oberritter wrote: >>> * Allow precompiled modules to depend on a specific kernel version. >> >>> Signed-off-by: Andreas Oberritter >>> --- >>> classes/kernel.bbclass | 2 +- >>> 1 files changed, 1 insertions(+), 1 deletions(-) >> >>> diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass >>> index 0d1b4ad..55e3ca0 100644 >>> --- a/classes/kernel.bbclass >>> +++ b/classes/kernel.bbclass >>> @@ -1,6 +1,6 @@ >>> inherit linux-kernel-base module_strip >> >>> -PROVIDES += "virtual/kernel" >>> +PROVIDES += "virtual/kernel virtual/kernel-${PV}" >>> DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules bluez-dtl1-workaround" >> >>> # we include gcc above, we dont need virtual/libc >> >> How is PV know before the kernel is built? The line below has a >> workaround for that, so I guess it also needs one in PROVIDES, no? > > KERNEL_VERSION is what's unknown until after the build. PV is the > version set by the recipe. The line below uses PV to derive 2.4 or 2.6 > from that. > > Regards, > Andreas > > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel