Openembedded Devel Discussions
 help / color / mirror / Atom feed
* yocto 1.2: 2nd experiences: image building problems
@ 2012-05-03  8:01 Frans Meulenbroeks
  2012-05-03 18:16 ` [yocto] " Saul Wold
  0 siblings, 1 reply; 2+ messages in thread
From: Frans Meulenbroeks @ 2012-05-03  8:01 UTC (permalink / raw)
  To: yocto, openembedded-devel

Dear all,

I'm migrating a project from oe-classic to yocto 1.2.
This goes fairly smoothly. Got some warnings I reported before.

If I build my app it runs fine (with the uclibc from oe-classic that
is already on the board).
Next step was to try to build a complete image.

There I encountered two issues.
The first one was that my image recipe had a few SRC_URI += lines.
This to get the static device table I am using and two files I needed
in my IMAGE_POSTPRCESS_COMMAND.
However yocto immediately goes into do_rootfs, and does not have a
fetch/unpack step (as oe-classic used to have).

I have worked around this by adding

python do_get_src () {
    bb.build.exec_func('base_do_fetch', d)
    bb.build.exec_func('base_do_unpack', d)
}
addtask do_get_src before do_rootfs

to my image recipe. I think it would be nice to have this
automatically done if a non-empty SRC_URI is found (but unfortunately
I am not enough of a python wiz to provide a patch).
Anyway that kept me moving.

The second issue is probably lib related. As I need a small footprint
(not too much storage available) my project uses uclibc.
When building the image I get some 15 or so of these:
| 	rtld(GNU_HASH) is needed by busybox-1.19.4-r6.ppce300c3
| 	rtld(GNU_HASH) is needed by i2c-tools-3.0.3-r0.ppce300c3
| 	rtld(GNU_HASH) is needed by libz1-1.2.6-r1.ppce300c3
...

I noticed that eglibc has this:
meta/recipes-core/eglibc/eglibc-package.inc:RPROVIDES_${PN} =
"glibc${PKGSUFFIX} rtld(GNU_HASH)"

but I did not find a similar RPROVIDES for uclibc.
Not sure whether it is missing there, or whether the dependencies for
the packages like busybox and libz1 are wrong.
Anyone any advice ?

Thanks, Frans



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [yocto] yocto 1.2: 2nd experiences: image building problems
  2012-05-03  8:01 yocto 1.2: 2nd experiences: image building problems Frans Meulenbroeks
@ 2012-05-03 18:16 ` Saul Wold
  0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2012-05-03 18:16 UTC (permalink / raw)
  To: Frans Meulenbroeks; +Cc: yocto, openembedded-devel

On 05/03/2012 01:01 AM, Frans Meulenbroeks wrote:
> Dear all,
>
> I'm migrating a project from oe-classic to yocto 1.2.
> This goes fairly smoothly. Got some warnings I reported before.
>
> If I build my app it runs fine (with the uclibc from oe-classic that
> is already on the board).
> Next step was to try to build a complete image.
>
> There I encountered two issues.
> The first one was that my image recipe had a few SRC_URI += lines.
> This to get the static device table I am using and two files I needed
> in my IMAGE_POSTPRCESS_COMMAND.
> However yocto immediately goes into do_rootfs, and does not have a
> fetch/unpack step (as oe-classic used to have).
>
> I have worked around this by adding
>
> python do_get_src () {
>      bb.build.exec_func('base_do_fetch', d)
>      bb.build.exec_func('base_do_unpack', d)
> }
> addtask do_get_src before do_rootfs
>
> to my image recipe. I think it would be nice to have this
> automatically done if a non-empty SRC_URI is found (but unfortunately
> I am not enough of a python wiz to provide a patch).
> Anyway that kept me moving.
>
Can you file a enhancement bug for the above issue.

> The second issue is probably lib related. As I need a small footprint
> (not too much storage available) my project uses uclibc.
> When building the image I get some 15 or so of these:
> | 	rtld(GNU_HASH) is needed by busybox-1.19.4-r6.ppce300c3
> | 	rtld(GNU_HASH) is needed by i2c-tools-3.0.3-r0.ppce300c3
> | 	rtld(GNU_HASH) is needed by libz1-1.2.6-r1.ppce300c3
> ...
>
> I noticed that eglibc has this:
> meta/recipes-core/eglibc/eglibc-package.inc:RPROVIDES_${PN} =
> "glibc${PKGSUFFIX} rtld(GNU_HASH)"
>
> but I did not find a similar RPROVIDES for uclibc.
> Not sure whether it is missing there, or whether the dependencies for
> the packages like busybox and libz1 are wrong.
> Anyone any advice ?
>
Khem might be able to help with this maybe.

Thanks
	Sau!

> Thanks, Frans
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-03 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03  8:01 yocto 1.2: 2nd experiences: image building problems Frans Meulenbroeks
2012-05-03 18:16 ` [yocto] " Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox