Skip to contentSkip to conversation

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

DISCUSSION Joaquim Duran 1 participant 1 message Jan 11, 2008

lore
Share & tools
lore
#0 lore raw

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