[oe] RFC: unify functions to check if arch has FPU or not

Joaquim Duran joaquinduran at adtelecom.es
Fri Jan 11 08:30:14 UTC 2008


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




More information about the Openembedded-devel mailing list