jwinarske / meta-flutter

Yocto meta layer for recipes related to using Google Flutter Engine
MIT License
45 stars 22 forks source link

armv7 tuning #23

Closed jwinarske closed 3 years ago

jwinarske commented 3 years ago

Tuning parameter needs to be filtered to prevent softfp, such as: -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -mthumb -mfpu=neon. For now tuning parameter is being set empty to prevent this.

jwinarske commented 3 years ago

Clang is having trouble with:

arm_tune = "arm+vfp+cortexa7+neon+vfpv4+thumb+callconvention-hard"
arm_float_abi = "hard"

It defaults to softfp.

Removing arm and vfp enables the build, but doesn't change "-mfloat-abi=softfp". See https://github.com/flutter/flutter/issues/84133

To enable build use either:

arm_tune = "cortexa7+neon+vfpv4"
arm_float_abi = "hard"

arm_tune = "cortexa7+neon+vfpv4+thumb+callconvention-hard"
arm_float_abi = "hard"

To enable arm_float_abi = "hard" see the above referenced issue

jwinarske commented 3 years ago

worked around this in 150d204e7211b445399cddb0a766644b128d27b5