From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [80.91.229.2] (helo=ciao.gmane.org) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1KJteF-0006dp-6O for openembedded-devel@openembedded.org; Fri, 18 Jul 2008 19:21:39 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KJtdP-0007oy-8E for openembedded-devel@openembedded.org; Fri, 18 Jul 2008 17:20:47 +0000 Received: from host217-36-23-196.in-addr.btopenworld.com ([217.36.23.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jul 2008 17:20:47 +0000 Received: from k.kooi by host217-36-23-196.in-addr.btopenworld.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jul 2008 17:20:47 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: openembedded-devel@openembedded.org From: Koen Kooi Date: Fri, 18 Jul 2008 18:20:34 +0100 Message-ID: References: <4880715F.80707@atmel.com> Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: host217-36-23-196.in-addr.btopenworld.com User-Agent: Thunderbird/3.0a2pre (Macintosh; 2008062403) In-Reply-To: <4880715F.80707@atmel.com> Sender: news Subject: Re: How update kernel recipe? X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.10 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: Fri, 18 Jul 2008 17:21:39 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Ulf Samuelsson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have built "gpe-image" for AT91SAM9263EK > after fixing libsvg-cairo manually due to the LT_VERSION problem. > > I would like to upgrade the kernel for AT91SAM9263EK. > I created a recipe for linux-2.6.25.10 called > "packages/linux/linux-atmel_2.6.25.10.bb" (found below) Yuck! There is *absolutely* no need to define linux-we-are-so-cool-we-have-our-company-name-the-kernel-recipe-filename.bb files, you should be perfectly able to reuse the linux_2.6.25 recipe, as avr32 already does. > with DEFAULT_PREFERENCE_at91sam9263ek = "30" > > 2.6.25.10 is properly built when I run: > $ bitbake -b linux-atmel > > When I run > $ bitbake -b gpe-image > it still builds "packages/linux/linux_2.6.20.bb" > with DEFAULT_PREFERENCE_at91sam9263ek = "20" > > The at91sam9263ek.conf file says: > PREFERRED_PROVIDER_virtual/kernel = "linux" > > I have been trying to figure out how the recipe selection > process works, and I assume that all bb files starting > with "linux" will be considered, and then the > highest DEFAULT_PREFERENCE_ will be used > to select linux. > > This obviously is not correct, since 2.6.20 is built. > > Do I need to change PREFERRED_PROVIDER_virtual/kernel > to "linux-atmel"? > In that case, why? > > > > "conf/machine/at91wsam9263ek.conf" > =================================================================== > #@TYPE: Machine > #@Name: Atmel AT91SAM9263EK Development Platform > #@DESCRIPTION: Machine configuration for the at91sam9263ek development > board with a at91sam9263 processor > > TARGET_ARCH = "arm" > PACKAGE_EXTRA_ARCHS = "armv4t armv5te" > > PREFERRED_PROVIDER_virtual/kernel = "linux" > PREFERRED_PROVIDER_xserver = "xserver-kdrive" > > #don't try to access tty1 > USE_VT = "0" > > MACHINE_FEATURES = "kernel26 alsa ext2 usbhost usbgadget screen" > > # used by sysvinit_2 > SERIAL_CONSOLE = "115200 ttyS0" > IMAGE_FSTYPES ?= "jffs2" > EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n" > > require conf/machine/include/tune-arm926ejs.inc > > KERNEL_IMAGETYPE = "uImage" > > > packages/linux/linux-atmel_2.6.25.10.bb > ================================================================= > require linux.inc > > DEFAULT_PREFERENCE = "-1" > DEFAULT_PREFERENCE_at91sam9rl64ek = "30" > DEFAULT_PREFERENCE_at91sam9263ek = "30" > DEFAULT_PREFERENCE_at91sam9261ek = "30" > DEFAULT_PREFERENCE_at91sam9260ek = "30" > DEFAULT_PREFERENCE_at91cap9adk = "30" > DEFAULT_PREFERENCE_kb9202 = "30" > DEFAULT_PREFERENCE_at32stk1000 = "2" > DEFAULT_PREFERENCE_atngw100 = "1" > > BASE_KERNEL_VERSION = "2.6.25" > KERNEL_VERSION = "2.6.25.10" > KERNEL_RELEASE = "2.6.25.10" > > PR = "r2" > > SRC_URI = > "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${BASE_KERNEL_VERSION}.tar.bz2 > > \ > > ${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/patch-${KERNEL_VERSION}.bz2;patch=1 > > \ > ~ " > > SRC_URI_append_at91sam9rl64ek = " > http://maxim.org.za/AT91RM9200/2.6/2.6.25-at91.patch.gz;patch=1 \ > file://defconfig \ > ~ " > > SRC_URI_append_at91sam9263ek = " > http://maxim.org.za/AT91RM9200/2.6/2.6.25-at91.patch.gz;patch=1 \ > file://defconfig \ > ~ " > > SRC_URI_append_at91sam9261ek = " > http://maxim.org.za/AT91RM9200/2.6/2.6.25-at91.patch.gz;patch=1 \ > file://defconfig \ > ~ " > > SRC_URI_append_at91sam9260ek = " > http://maxim.org.za/AT91RM9200/2.6/2.6.25-at91.patch.gz;patch=1 \ > file://defconfig \ > ~ " > > SRC_URI_append_at91cap9adk = " > http://maxim.org.za/AT91RM9200/2.6/2.6.25-at91.patch.gz;patch=1 \ > file://defconfig \ > ~ " > > SRC_URI_append_kb9202 = " > http://maxim.org.za/AT91RM9200/2.6/2.6.25-at91.patch.gz;patch=1 \ > file://defconfig \ > ~ " > > SRC_URI_append_at32stk1000 = " \ > http://avr32linux.org/twiki/pub/Main/LinuxPatches/linux-2.6.25.10.atmel.2.patch.bz2;patch=1 > > \ > file://defconfig \ > " > SRC_URI_append_atngw100 = " \ > http://avr32linux.org/twiki/pub/Main/LinuxPatches/linux-2.6.25.10.atmel.2.patch.bz2;patch=1 > > \ > file://defconfig \ > " > > S = "${WORKDIR}/linux-${KERNEL_VERSION}" > > packages/linux/linux_2.6.20.bb > ================================================================= > require linux.inc > > DEFAULT_PREFERENCE_at91sam9263ek = "20" > DEFAULT_PREFERENCE_at91sam9261ek = "20" > DEFAULT_PREFERENCE_at91sam9260ek = "20" > > PR = "r8" > > SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \ > ~ file://defconfig" > > SRC_URI_append_n2100 = "\ > file://n2100-r8169-parity.patch;patch=1 \ > file://rtc-rs5c372-n2100.patch;patch=1 \ > " > > SRC_URI_append_at91sam9263ek = " \ > > http://maxim.org.za/AT91RM9200/2.6/${PV}-at91.patch.gz;patch=1 \ > > http://www.at91.com/repFichier/Project-217/linux-${PV}-at91-exp.diff.bz2;patch=1 > > \ > ~ " > SRC_URI_append_at91sam9261ek = " \ > > http://maxim.org.za/AT91RM9200/2.6/${PV}-at91.patch.gz;patch=1 \ > > http://www.at91.com/repFichier/Project-217/linux-${PV}-at91-exp.diff.bz2;patch=1 > > \ > ~ " > SRC_URI_append_at91sam9260ek = " \ > > http://maxim.org.za/AT91RM9200/2.6/${PV}-at91.patch.gz;patch=1 \ > > http://www.at91.com/repFichier/Project-217/linux-${PV}-at91-exp.diff.bz2;patch=1 > > \ > ~ " > > > > > BR > Ulf Samuelsson > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.4-svn0 (GNU/Linux) > Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org > > iD8DBQFIgHFfAyRRH5cXxqwRAvNAAJ9Q0LM1sRfCdXjCy+GAtm/VQNddtACfe4EK > pbQY5qpZCBJkbHhw3vx0WBg= > =3NzB > -----END PGP SIGNATURE-----