of icon indicating copy to clipboard operation
of copied to clipboard

aarch64 support

Open barzilouik opened this issue 8 years ago • 4 comments

I read in the cmake that the architecture aarch64 (for pine64) is not supported. What would it take to make it compliant with such a board ?

barzilouik avatar Jan 28 '17 00:01 barzilouik

it seems that pine64 architecture is pretty similar to Raspberry Pi, so I guess there is no big issue with architecture. CMake should detect itself which arch you're building for but it is assumed in several part that arch is Raspberry Pi, so the main issue will be to find the right library which might not be in the same place as in Raspberry Pi. For example here is a RPi specific statement : https://github.com/ofnode/of/blob/master/CMakeLists.txt#L828-L833

avilleret avatar Jan 28 '17 10:01 avilleret

Concerning 64bit support for arm, this line https://github.com/ofnode/of/blob/master/CMakeLists.txt#L125 should be modified to deduce architecture bit from target architecture.

And concerning armv8 support, we should tweak some statement to either generalize armv7 specific command to other arm* or add armv8 specific statement (like compilation flag here https://github.com/ofnode/of/blob/master/CMakeLists.txt#L1031)

avilleret avatar Jan 28 '17 10:01 avilleret

It seems to be more a concern with the #define TARGET_RASPBERRY_PI in OpenFrameworks : https://github.com/openframeworks/openFrameworks/search?q=TARGET_RASPBERRY_PI

It sounds like a hard task for adding on more board ...

barzilouik avatar Jan 29 '17 03:01 barzilouik

not sure because openframeworks build for generic armv7, which should work on armv8 too. for me the main concern is more 64 bit support (well you could still build 32bit instead).

avilleret avatar Jan 29 '17 12:01 avilleret