All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC: unify functions to check if arch has FPU or not
@ 2008-01-11  8:30 Joaquim Duran
  0 siblings, 0 replies; only message in thread
From: Joaquim Duran @ 2008-01-11  8:30 UTC (permalink / raw)
  To: openembedded-devel

Hello,

There are several packages that at .bb file is checked if the
architecture includes or not a FPU to configure compilation parameters,
like gtk+, cairo, alsa.

The idea is create a function similar to the existing ones with to added
parameters: one should be returned when there is FPU in the architecture
and the other when there is no FPU.

Example:

def get_fpu_setting(bb, d, fpu, nofpu):
        if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
                return nofpu
        return fpu

get_fpu_setting(bb, d, "--enable-fpu", "--disable-fpu")


Thanks
Joaquim Duran



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-11  8:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11  8:30 RFC: unify functions to check if arch has FPU or not Joaquim Duran

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.