Openembedded Core Discussions
 help / color / mirror / Atom feed
* libc-common.bbclass and uclibc
@ 2012-07-26 21:51 Manuel Bessler
  2012-07-26 22:07 ` Chris Larson
  2012-07-26 22:17 ` Phil Blundell
  0 siblings, 2 replies; 4+ messages in thread
From: Manuel Bessler @ 2012-07-26 21:51 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

I'm one of the (seemingly few) people using OE/Yocto on a uclibc platform.

Since I'm using a vendor-supplied toolchain, I had to make a few changes to
keep the build from trying to build uclibc despite it was being supplied via
the toolchain.

Comparing with the external-csl-toolchain recipe I found that it
"require"s eglibc-package.inc,
so I created a uclibc-package.inc. This fixed the above issue of
trying to build uclibc despite
it was already provided by the external toolchain.

In creating uclibc-package.inc I tried to follow closely how
eglibc-package.inc was implemented.

This has worked for me well until I started on the nativesdk with
external toolchain.
I noticed that my external-toolchain-xxx-cross-canadian_xxx.bb recipe
(which provides
uclibc*, binutils-cross-canadian, and gcc-cross-canadian) created
libc6, libc6-dev, and libc6-dbg
packages.

A quick search revealed meta/classes/libc-common.bbclass referencing libc6.
Function populate_packages_prepend() seems to just overwrite
PKG_${BPN} with libc6.

=========================================
python populate_packages_prepend () {
        if d.getVar('DEBIAN_NAMES', True):
                bpn = d.getVar('BPN', True)
                d.setVar('PKG_'+bpn, 'libc6')
...
=========================================

It does not seem to care about uclibc.
Maybe libc-common.bbclass is only for eglibc and might need a better name?
Since this is checking for "DEBIAN_NAMES" and I guess debian is not
uclibc based,
maybe this code is not really the issue...

Do I just need to create a uclibc-common.bbclass ?

Thanks,
Manuel



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

end of thread, other threads:[~2012-07-27 14:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 21:51 libc-common.bbclass and uclibc Manuel Bessler
2012-07-26 22:07 ` Chris Larson
2012-07-26 22:17 ` Phil Blundell
2012-07-27 13:58   ` Manuel Bessler

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