* No /sbin/init when deriving m7y own image
@ 2012-10-12 15:27 Hervé Fache
2012-10-12 15:31 ` Denys Dmytriyenko
0 siblings, 1 reply; 7+ messages in thread
From: Hervé Fache @ 2012-10-12 15:27 UTC (permalink / raw)
To: meta-ti
Hi guys,
I am new to Poky and have created the following recipe:
require recipes-graphics/images/core-image-x11.bb
IMAGE_INSTALL += "omapdrmtest"
I have stored it at
meta-ti/recipes-graphics/images/core-image-x11-drmtest.bb for now, and
am building using:
bitbake -k core-image-x11-drmtest
If I comment out the IMAGE_INSTALL line then everything is fine, but if
I leave it in then I am missing files in the filesystem, including
/sbin/init.
Can some one please let me know what I am doing wrong?
Thanks in advance,
Hervé
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: No /sbin/init when deriving m7y own image
2012-10-12 15:27 No /sbin/init when deriving m7y own image Hervé Fache
@ 2012-10-12 15:31 ` Denys Dmytriyenko
2012-10-12 15:58 ` Hervé Fache
0 siblings, 1 reply; 7+ messages in thread
From: Denys Dmytriyenko @ 2012-10-12 15:31 UTC (permalink / raw)
To: Herv? Fache; +Cc: meta-ti
On Fri, Oct 12, 2012 at 05:27:43PM +0200, Herv? Fache wrote:
> Hi guys,
>
> I am new to Poky and have created the following recipe:
> require recipes-graphics/images/core-image-x11.bb
> IMAGE_INSTALL += "omapdrmtest"
Can you try adding to CORE_IMAGE_EXTRA_INSTALL instead of IMAGE_INSTALL?
--
Denys
> I have stored it at
> meta-ti/recipes-graphics/images/core-image-x11-drmtest.bb for now, and
> am building using:
> bitbake -k core-image-x11-drmtest
>
> If I comment out the IMAGE_INSTALL line then everything is fine, but if
> I leave it in then I am missing files in the filesystem, including
> /sbin/init.
>
> Can some one please let me know what I am doing wrong?
>
> Thanks in advance,
> Herv?
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: No /sbin/init when deriving m7y own image
2012-10-12 15:31 ` Denys Dmytriyenko
@ 2012-10-12 15:58 ` Hervé Fache
2012-10-12 16:19 ` Denys Dmytriyenko
0 siblings, 1 reply; 7+ messages in thread
From: Hervé Fache @ 2012-10-12 15:58 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: meta-ti
On 10/12/2012 05:31 PM, Denys Dmytriyenko wrote:
> On Fri, Oct 12, 2012 at 05:27:43PM +0200, Herv? Fache wrote:
>> Hi guys,
>>
>> I am new to Poky and have created the following recipe:
>> require recipes-graphics/images/core-image-x11.bb
>> IMAGE_INSTALL += "omapdrmtest"
> Can you try adding to CORE_IMAGE_EXTRA_INSTALL instead of IMAGE_INSTALL?
>
Thanks a lot, that did it!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: No /sbin/init when deriving m7y own image
2012-10-12 15:58 ` Hervé Fache
@ 2012-10-12 16:19 ` Denys Dmytriyenko
2012-10-12 16:31 ` Gary Thomas
2012-10-15 7:24 ` Hervé Fache
0 siblings, 2 replies; 7+ messages in thread
From: Denys Dmytriyenko @ 2012-10-12 16:19 UTC (permalink / raw)
To: Herv? Fache; +Cc: meta-ti
On Fri, Oct 12, 2012 at 05:58:39PM +0200, Herv? Fache wrote:
> On 10/12/2012 05:31 PM, Denys Dmytriyenko wrote:
> > On Fri, Oct 12, 2012 at 05:27:43PM +0200, Herv? Fache wrote:
> >> Hi guys,
> >>
> >> I am new to Poky and have created the following recipe:
> >> require recipes-graphics/images/core-image-x11.bb
> >> IMAGE_INSTALL += "omapdrmtest"
> > Can you try adding to CORE_IMAGE_EXTRA_INSTALL instead of IMAGE_INSTALL?
> >
> Thanks a lot, that did it!
I'm glad it worked for you.
But I'm still baffled why IMAGE_INSTALL didn't work. The only 2 reasons I can
see for that are:
1. If you made a typo and used '=' instead of '+=', which would re-assign
IMAGE_INSTALL, instead of appending to it, losing its current value.
2. Or if you tried to append to IMAGE_INSTALL before loading the base image
recipe with 'require' (effectively, swapping the 2 lines of your recipe) - in
that case you'd append to an empty IMAGE_INSTALL first and inside the
core-image class it uses conditional assignment to pre-set that variable with
system defaults. But since you already assigned to it early on, it won't be
populated with system defaults...
Other than that, the example you showed above seems to work for me here...
--
Denys
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: No /sbin/init when deriving m7y own image
2012-10-12 16:19 ` Denys Dmytriyenko
@ 2012-10-12 16:31 ` Gary Thomas
2012-10-12 16:37 ` Denys Dmytriyenko
2012-10-15 7:24 ` Hervé Fache
1 sibling, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2012-10-12 16:31 UTC (permalink / raw)
To: meta-ti
On 2012-10-12 10:19, Denys Dmytriyenko wrote:
> On Fri, Oct 12, 2012 at 05:58:39PM +0200, Herv? Fache wrote:
>> On 10/12/2012 05:31 PM, Denys Dmytriyenko wrote:
>>> On Fri, Oct 12, 2012 at 05:27:43PM +0200, Herv? Fache wrote:
>>>> Hi guys,
>>>>
>>>> I am new to Poky and have created the following recipe:
>>>> require recipes-graphics/images/core-image-x11.bb
>>>> IMAGE_INSTALL += "omapdrmtest"
>>> Can you try adding to CORE_IMAGE_EXTRA_INSTALL instead of IMAGE_INSTALL?
>>>
>> Thanks a lot, that did it!
>
> I'm glad it worked for you.
>
> But I'm still baffled why IMAGE_INSTALL didn't work. The only 2 reasons I can
> see for that are:
Most likely case is a missing separator. Since += adds no space, omapdrmtest
is being glued to whatever is already in that list, making the last two
packages go missing. I'll bet that this also works:
IMAGE_INSTALL += " omapdrmtest "
I always add those spaces since they are free :-)
>
> 1. If you made a typo and used '=' instead of '+=', which would re-assign
> IMAGE_INSTALL, instead of appending to it, losing its current value.
>
> 2. Or if you tried to append to IMAGE_INSTALL before loading the base image
> recipe with 'require' (effectively, swapping the 2 lines of your recipe) - in
> that case you'd append to an empty IMAGE_INSTALL first and inside the
> core-image class it uses conditional assignment to pre-set that variable with
> system defaults. But since you already assigned to it early on, it won't be
> populated with system defaults...
>
> Other than that, the example you showed above seems to work for me here...
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: No /sbin/init when deriving m7y own image
2012-10-12 16:31 ` Gary Thomas
@ 2012-10-12 16:37 ` Denys Dmytriyenko
0 siblings, 0 replies; 7+ messages in thread
From: Denys Dmytriyenko @ 2012-10-12 16:37 UTC (permalink / raw)
To: Gary Thomas; +Cc: meta-ti
On Fri, Oct 12, 2012 at 10:31:21AM -0600, Gary Thomas wrote:
> On 2012-10-12 10:19, Denys Dmytriyenko wrote:
> >On Fri, Oct 12, 2012 at 05:58:39PM +0200, Herv? Fache wrote:
> >>On 10/12/2012 05:31 PM, Denys Dmytriyenko wrote:
> >>>On Fri, Oct 12, 2012 at 05:27:43PM +0200, Herv? Fache wrote:
> >>>>Hi guys,
> >>>>
> >>>>I am new to Poky and have created the following recipe:
> >>>> require recipes-graphics/images/core-image-x11.bb
> >>>> IMAGE_INSTALL += "omapdrmtest"
> >>>Can you try adding to CORE_IMAGE_EXTRA_INSTALL instead of IMAGE_INSTALL?
> >>>
> >>Thanks a lot, that did it!
> >
> >I'm glad it worked for you.
> >
> >But I'm still baffled why IMAGE_INSTALL didn't work. The only 2 reasons I can
> >see for that are:
>
> Most likely case is a missing separator. Since += adds no space, omapdrmtest
> is being glued to whatever is already in that list, making the last two
> packages go missing. I'll bet that this also works:
> IMAGE_INSTALL += " omapdrmtest "
>
> I always add those spaces since they are free :-)
That's not exactly correct. You are mistaking += and =+ with .= and =. :)
+= and =+ append and prepend with spaces, while .= and =. append and prepend
without spaces:
http://docs.openembedded.org/bitbake/html/ch02.html#id397587
Plus, there's plenty of space already in IMAGE_INSTALL, as it is handled as a
multi-line assignment with plenty of indentation inside core-image class...
--
Denys
> >1. If you made a typo and used '=' instead of '+=', which would re-assign
> >IMAGE_INSTALL, instead of appending to it, losing its current value.
> >
> >2. Or if you tried to append to IMAGE_INSTALL before loading the base image
> >recipe with 'require' (effectively, swapping the 2 lines of your recipe) - in
> >that case you'd append to an empty IMAGE_INSTALL first and inside the
> >core-image class it uses conditional assignment to pre-set that variable with
> >system defaults. But since you already assigned to it early on, it won't be
> >populated with system defaults...
> >
> >Other than that, the example you showed above seems to work for me here...
> >
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: No /sbin/init when deriving m7y own image
2012-10-12 16:19 ` Denys Dmytriyenko
2012-10-12 16:31 ` Gary Thomas
@ 2012-10-15 7:24 ` Hervé Fache
1 sibling, 0 replies; 7+ messages in thread
From: Hervé Fache @ 2012-10-15 7:24 UTC (permalink / raw)
To: Denys Dmytriyenko; +Cc: meta-ti
Hello,
On 10/12/2012 06:19 PM, Denys Dmytriyenko wrote:
> On Fri, Oct 12, 2012 at 05:58:39PM +0200, Herv? Fache wrote:
>> On 10/12/2012 05:31 PM, Denys Dmytriyenko wrote:
>>> On Fri, Oct 12, 2012 at 05:27:43PM +0200, Herv? Fache wrote:
>>>> Hi guys,
>>>>
>>>> I am new to Poky and have created the following recipe:
>>>> require recipes-graphics/images/core-image-x11.bb
>>>> IMAGE_INSTALL += "omapdrmtest"
>>> Can you try adding to CORE_IMAGE_EXTRA_INSTALL instead of IMAGE_INSTALL?
>>>
>> Thanks a lot, that did it!
> I'm glad it worked for you.
>
> But I'm still baffled why IMAGE_INSTALL didn't work. The only 2 reasons I can
> see for that are:
>
> 1. If you made a typo and used '=' instead of '+=', which would re-assign
> IMAGE_INSTALL, instead of appending to it, losing its current value.
>
> 2. Or if you tried to append to IMAGE_INSTALL before loading the base image
> recipe with 'require' (effectively, swapping the 2 lines of your recipe) - in
> that case you'd append to an empty IMAGE_INSTALL first and inside the
> core-image class it uses conditional assignment to pre-set that variable with
> system defaults. But since you already assigned to it early on, it won't be
> populated with system defaults...
>
> Other than that, the example you showed above seems to work for me here...
Well, I just copied and pasted into the e-mail, so what you see it what
I had :-)
And FWIW I also tried to add spaces everywhere to no avail!
Hervé
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-10-15 7:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 15:27 No /sbin/init when deriving m7y own image Hervé Fache
2012-10-12 15:31 ` Denys Dmytriyenko
2012-10-12 15:58 ` Hervé Fache
2012-10-12 16:19 ` Denys Dmytriyenko
2012-10-12 16:31 ` Gary Thomas
2012-10-12 16:37 ` Denys Dmytriyenko
2012-10-15 7:24 ` Hervé Fache
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.