Added ODROID profile

This commit is contained in:
ptitSeb 2020-04-16 07:52:09 +02:00
parent d8251ec441
commit d5e5cbb393
2 changed files with 15 additions and 2 deletions

View File

@ -10,7 +10,8 @@ option(PYRA "Set to ON if targeting an OpenPandora device" ${PYRA})
option(RPI2 "Set to ON if targeting an RaspberryPI2 device" ${RPI2})
option(RPI3 "Set to ON if targeting an RaspberryPI3 device" ${RPI3})
option(RPI4 "Set to ON if targeting an RaspberryPI4 device" ${RPI4})
option(GAMESHELL "Set to ON if targeting a Gameshell device" ${GAMESHELL})
option(GAMESHELL "Set to ON if targeting a ODROID device" ${GAMESHELL})
option(ODROID "Set to ON if targeting an RaspberryPI4 device" ${ODROID})
option(USE_CCACHE "Set to ON to use ccache if present in the system" ${USE_CCACHE})
option(LD80BITS "Set to ON if host device have 80bits long double (i.e. i386)" ${LD80BITS})
option(NOALIGN "Set to ON if host device doesn't need re-align (i.e. i386)" ${NOALIGN})
@ -78,6 +79,14 @@ if(RPI4)
set(LD80BITS OFF)
set(NOALIGN OFF)
endif()
if(ODROID)
add_definitions(-mcpu=cortex-a9 -mfpu=neon-vfpv4 -mfloat-abi=hard -marm)
set(CMAKE_ASM_FLAGS "-marm -mcpu=cortex-a9 -mfpu=neon-vfpv4 -mfloat-abi=hard")
set(ARM_DYNAREC ON)
set(LD80BITS OFF)
set(NOALIGN OFF)
endif()
if(LD80BITS)
add_definitions(-DHAVE_LD80BITS)

View File

@ -20,9 +20,13 @@ Compiling
_For Pi4. Change to RPI2 or RPI3 for other models._
#### for ODROID
`mkdir build; cd build; cmake .. -DODROID=1; make`
#### for Other ARM Linux
`mkdir build; cd build; cmake .. ; make`
`mkdir build; cd build; cmake .. -DARM_DYNAREC=ON; make`
#### for x86 Linux