set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR Cortex-A7)

set(CMAKE_C_COMPILER_WORKS 1)
set(CMAKE_CXX_COMPILER_WORKS 1)

set(CMAKE_C_COMPILER arm-none-eabi-gcc)
set(CMAKE_CXX_COMPILER arm-none-eabi-g++)

set(CORTEX_A7_FLAGS "-Os -mcpu=cortex-a7 -mtune=cortex-a7 -mthumb")
set(CMAKE_C_FLAGS "${CORTEX_A7_FLAGS}" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS "${CORTEX_A7_FLAGS}" CACHE STRING "" FORCE)
