From 906da410f1efd05db8080c8a0a417c2de54518fc Mon Sep 17 00:00:00 2001 From: Daniel Anderberg Date: Fri, 27 Nov 2020 12:08:43 +0100 Subject: Remove CPU build flags from driver Using a cpu without proper interrupt handling is not really usefull in this context, so remove that option. Change-Id: Ie94fd9025c918eef72272e14ad5b0a95ea7dc4a4 --- CMakeLists.txt | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a4589ef..b364716 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,26 +36,6 @@ set_property(CACHE ETHOSU_LOG_SEVERITY PROPERTY STRINGS ${LOG_NAMES}) # Global settings # -if(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m0") - add_compile_definitions(CPU_CORTEX_M0) -elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m1") - add_compile_definitions(CPU_CORTEX_M1) -elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m23") - add_compile_definitions(CPU_CORTEX_M23) -elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m3") - add_compile_definitions(CPU_CORTEX_M3) -elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m33") - add_compile_definitions(CPU_CORTEX_M33) -elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m4") - add_compile_definitions(CPU_CORTEX_M4) -elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m55") - add_compile_definitions(CPU_CORTEX_M55) -elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m7") - add_compile_definitions(CPU_CORTEX_M7) -else() - message(FATAL_ERROR "Unsupported compiler ${CMAKE_SYSTEM_PROCESSOR}.") -endif() - # Check that ETHOSU_LOG_SEVERITY has one of the supported levels list(FIND LOG_NAMES ${ETHOSU_LOG_SEVERITY} LOG_SEVERITY) if (${LOG_SEVERITY} EQUAL -1) -- cgit v1.2.1