From 1703e9d1b7e5c0e60ba664dddd7c1705f56e3df0 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 22 Nov 2020 18:41:05 +0100 Subject: [PATCH] Refined CMakeList a bit --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 80900ade..2588f7f9 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,10 +60,12 @@ if(PANDORA) #add_definitions(-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -fsingle-precision-constant -ffast-math) endif() if(GAMESHELL) + add_definitions(-DGAMEHELL) add_definitions(-marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard) set(CMAKE_ASM_FLAGS "-marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard") endif() if(PYRA) + add_definitions(-DPYRA) add_definitions(-mcpu=cortex-a15 -mfpu=neon -mfloat-abi=hard -marm) set(CMAKE_ASM_FLAGS "-marm -mcpu=cortex-a15 -mfpu=neon -mfloat-abi=hard") endif() @@ -81,15 +83,17 @@ if(RPI3) endif() if(RPI4) add_definitions(-DRPI) - add_definitions(-DRPI3) + add_definitions(-DRPI4) add_definitions(-marm -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard) set(CMAKE_ASM_FLAGS "-marm -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard") endif() if(ODROID) + add_definitions(-DODROID) 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") endif() if(RK3399) + add_definitions(-DRK3399) add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a72+crypto) set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a72+crypto") endif()