webosbrew / hyperion-webos

hyperion.ng video grabber for webOS
MIT License
153 stars 30 forks source link

Change toolchain back to buildroot #97

Closed TBSniller closed 2 years ago

TBSniller commented 2 years ago

As per @throwaway96 analysis, you should explicitly add -mfpu=neon to CFLAGS and/or -DLIBYUV_NEON (which is correctly handled only in the gyp build).

buildroot-nc4 doesn't do that by default because it targets a generic CPU by default (-mcpu and -mtune are not set). Therefore, setting either -mcpu/-mtune is also a viable alternative.


@smx-smx: I think I need some smart advise from you. I can't manage to probably add these flags. Can you please tell me where I have to put them?

sundermann commented 2 years ago

I would suggest adding this to the cmake call and also in libyuv/CMakeLists.txt: -DCMAKE_C_FLAGS="-mcpu=cortex-a9 "

sundermann commented 2 years ago

Adding those might also add some more optimization -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -mtune=cortex-a9