RFC: unify functions to check if arch has FPU or not
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 fpuget_fpu_setting(bb, d, "--enable-fpu", "--disable-fpu")
Thanks
Joaquim Duran