* PREFERRED_VERSION confusion
@ 2011-03-24 16:40 Gary Thomas
2011-03-24 17:07 ` Gary Thomas
0 siblings, 1 reply; 2+ messages in thread
From: Gary Thomas @ 2011-03-24 16:40 UTC (permalink / raw)
To: Poky
I'm having trouble selecting between different versions of a package
(in this case virtual/kernel). I have these recipes
.../linux/linux-am_2.6.31.bb
.../linux/linux-am_2.6.32.bb
.../linux/linux-am_2.6.37.bb
with some associated patch files for various platforms I'm building.
In my DISTRO.conf, I have this:
PREFERRED_PROVIDER_virtual/kernel = "linux-am"
which indeed selects from my set of kernel recipes. However, I
can't seem to get it to be able to build from one of the older
recipes - it always chooses the 2.6.37 version which causes much
confusion (some of my targets have only been ported to older kernels)
In MACHINE.conf, I have this line
PREFERRED_VERSION_linux-am = "2.6.31"
I get warnings such as
NOTE: preferred version 2.6.31 of linux-am not available (for item virtual/kernel)
NOTE: preferred version 2.6.31 of linux-am not available (for item kernel-image)
NOTE: preferred version 2.6.31 of linux-am not available (for item kernel-base)
Why? Also, it falls apart like this (my actual machine is called mx25p80 and there
is only a patch for the 2.6.31 version .../linux/linux-am-2.6.31/mx25p80/mx25p80.patch:
NOTE: Running task 657 of 829 (ID: 4, /home/local/poky-amltd/meta-amltd/packages/linux/linux-am_2.6.31.bb, do_fetch)
ERROR: Function 'Fetcher failure for URL: 'file://mx25p80.patch'. Unable to fetch URL file://mx25p80.patch from any source.' failed
ERROR: Logfile of failure stored in: /home/local/mx25_poky/tmp/work/mx25p80-poky-linux-gnueabi/linux-am-2.6.37-r0/temp/log.do_fetch.6646
Notice that even though it's executing linux-am_2.6.31.bb, it's looking in linux-am-2.6.37!!
What am I missing? How do I get it to select only the 2.6.31 version?
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PREFERRED_VERSION confusion
2011-03-24 16:40 PREFERRED_VERSION confusion Gary Thomas
@ 2011-03-24 17:07 ` Gary Thomas
0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2011-03-24 17:07 UTC (permalink / raw)
To: Poky
On 03/24/2011 10:40 AM, Gary Thomas wrote:
> I'm having trouble selecting between different versions of a package
> (in this case virtual/kernel). I have these recipes
> .../linux/linux-am_2.6.31.bb
> .../linux/linux-am_2.6.32.bb
> .../linux/linux-am_2.6.37.bb
> with some associated patch files for various platforms I'm building.
>
> In my DISTRO.conf, I have this:
> PREFERRED_PROVIDER_virtual/kernel = "linux-am"
> which indeed selects from my set of kernel recipes. However, I
> can't seem to get it to be able to build from one of the older
> recipes - it always chooses the 2.6.37 version which causes much
> confusion (some of my targets have only been ported to older kernels)
>
> In MACHINE.conf, I have this line
> PREFERRED_VERSION_linux-am = "2.6.31"
> I get warnings such as
> NOTE: preferred version 2.6.31 of linux-am not available (for item virtual/kernel)
> NOTE: preferred version 2.6.31 of linux-am not available (for item kernel-image)
> NOTE: preferred version 2.6.31 of linux-am not available (for item kernel-base)
>
> Why? Also, it falls apart like this (my actual machine is called mx25p80 and there
> is only a patch for the 2.6.31 version .../linux/linux-am-2.6.31/mx25p80/mx25p80.patch:
> NOTE: Running task 657 of 829 (ID: 4, /home/local/poky-amltd/meta-amltd/packages/linux/linux-am_2.6.31.bb, do_fetch)
> ERROR: Function 'Fetcher failure for URL: 'file://mx25p80.patch'. Unable to fetch URL file://mx25p80.patch from any source.' failed
> ERROR: Logfile of failure stored in: /home/local/mx25_poky/tmp/work/mx25p80-poky-linux-gnueabi/linux-am-2.6.37-r0/temp/log.do_fetch.6646
> Notice that even though it's executing linux-am_2.6.31.bb, it's looking in linux-am-2.6.37!!
>
> What am I missing? How do I get it to select only the 2.6.31 version?
Turns out this was stupid cockpit error :-( My linux-am-2.6.31.bb recipe
was cloned from the linux-am-2.6.37.bb version and contained the line
PV = "2.6.37"
Fixing this made it all happy.
Sorry for the noise.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-24 17:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-24 16:40 PREFERRED_VERSION confusion Gary Thomas
2011-03-24 17:07 ` Gary Thomas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.