summaryrefslogtreecommitdiff
path: root/examples/imx7_colibri_m4/demo_apps/hello_world_qspi/armgcc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/imx7_colibri_m4/demo_apps/hello_world_qspi/armgcc/CMakeLists.txt')
-rw-r--r--examples/imx7_colibri_m4/demo_apps/hello_world_qspi/armgcc/CMakeLists.txt156
1 files changed, 0 insertions, 156 deletions
diff --git a/examples/imx7_colibri_m4/demo_apps/hello_world_qspi/armgcc/CMakeLists.txt b/examples/imx7_colibri_m4/demo_apps/hello_world_qspi/armgcc/CMakeLists.txt
deleted file mode 100644
index a5b36f5..0000000
--- a/examples/imx7_colibri_m4/demo_apps/hello_world_qspi/armgcc/CMakeLists.txt
+++ /dev/null
@@ -1,156 +0,0 @@
-INCLUDE(CMakeForceCompiler)
-
-# CROSS COMPILER SETTING
-SET(CMAKE_SYSTEM_NAME Generic)
-CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
-
-# THE VERSION NUMBER
-SET (Tutorial_VERSION_MAJOR 1)
-SET (Tutorial_VERSION_MINOR 0)
-
-# ENABLE ASM
-ENABLE_LANGUAGE(ASM)
-
-SET(CMAKE_STATIC_LIBRARY_PREFIX)
-SET(CMAKE_STATIC_LIBRARY_SUFFIX)
-
-SET(CMAKE_EXECUTABLE_LIBRARY_PREFIX)
-SET(CMAKE_EXECUTABLE_LIBRARY_SUFFIX)
-
-
-# CURRENT DIRECTORY
-SET(ProjDirPath ${CMAKE_CURRENT_SOURCE_DIR})
-
-# DEBUG LINK FILE
-set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -T${ProjDirPath}/../../../../../platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_QSPIA.ld -static")
-
-# RELEASE LINK FILE
-set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -T${ProjDirPath}/../../../../../platform/devices/MCIMX7D/linker/gcc/MCIMX7D_M4_QSPIA.ld -static")
-
-# DEBUG ASM FLAGS
-SET(CMAKE_ASM_FLAGS_DEBUG "${CMAKE_ASM_FLAGS_DEBUG} -g -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99")
-
-# DEBUG C FLAGS
-SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -MMD -MP -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99")
-
-# DEBUG LD FLAGS
-SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -g -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__stack_size__=0x400 -Xlinker --defsym=__heap_size__=0x200")
-
-# RELEASE ASM FLAGS
-SET(CMAKE_ASM_FLAGS_RELEASE "${CMAKE_ASM_FLAGS_RELEASE} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99")
-
-# RELEASE C FLAGS
-SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -MMD -MP -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mapcs -std=gnu99")
-
-# RELEASE LD FLAGS
-SET(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nano.specs -lm -Wall -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -Os -mthumb -mapcs -Xlinker --gc-sections -Xlinker -static -Xlinker -z -Xlinker muldefs -Xlinker --defsym=__stack_size__=0x400 -Xlinker --defsym=__heap_size__=0x200")
-
-# ASM MACRO
-SET(CMAKE_ASM_FLAGS_DEBUG "${CMAKE_ASM_FLAGS_DEBUG} -D__DEBUG")
-
-# C MACRO
-SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D__DEBUG")
-SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DCPU_IMX7D_M4")
-SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -D__NDEBUG")
-SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DCPU_IMX7D_M4")
-
-# CXX MACRO
-
-# INCLUDE_DIRECTORIES
-IF(CMAKE_BUILD_TYPE MATCHES Debug)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../..)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/portable/GCC/ARM_CM4F)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/CMSIS/Include)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/devices)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/devices/MCIMX7D/include)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/devices/MCIMX7D/startup)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/drivers/inc)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/utilities/inc)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../..)
-ELSEIF(CMAKE_BUILD_TYPE MATCHES Release)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../..)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/portable/GCC/ARM_CM4F)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/CMSIS/Include)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/devices)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/devices/MCIMX7D/include)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/devices/MCIMX7D/startup)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/drivers/inc)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../../../../platform/utilities/inc)
- INCLUDE_DIRECTORIES(${ProjDirPath}/../../..)
-ENDIF()
-
-# ADD_EXECUTABLE
-ADD_EXECUTABLE(hello_world_qspi
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h"
- "${ProjDirPath}/../../../../../platform/devices/MCIMX7D/startup/gcc/startup_MCIMX7D_M4.S"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/portable/MemMang/heap_2.c"
- "${ProjDirPath}/../../../FreeRTOSConfig.h"
- "${ProjDirPath}/../../hello_world/main.c"
- "${ProjDirPath}/../../../../../platform/drivers/src/uart_imx.c"
- "${ProjDirPath}/../../../../../platform/drivers/inc/uart_imx.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/croutine.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/event_groups.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/FreeRTOS.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/list.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/mpu_wrappers.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/portable.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/projdefs.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/queue.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/semphr.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/StackMacros.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/task.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/include/timers.h"
- "${ProjDirPath}/../../../../../platform/drivers/inc/ccm_analog_imx7d.h"
- "${ProjDirPath}/../../../../../platform/drivers/inc/ccm_imx7d.h"
- "${ProjDirPath}/../../../../../platform/drivers/inc/rdc.h"
- "${ProjDirPath}/../../../../../platform/drivers/inc/rdc_defs_imx7d.h"
- "${ProjDirPath}/../../../../../platform/drivers/inc/wdog_imx.h"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/croutine.c"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/event_groups.c"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/list.c"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/queue.c"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/tasks.c"
- "${ProjDirPath}/../../../../../rtos/FreeRTOS/Source/timers.c"
- "${ProjDirPath}/../../../../../platform/drivers/src/ccm_analog_imx7d.c"
- "${ProjDirPath}/../../../../../platform/drivers/src/ccm_imx7d.c"
- "${ProjDirPath}/../../../../../platform/drivers/src/rdc.c"
- "${ProjDirPath}/../../../../../platform/drivers/src/wdog_imx.c"
- "${ProjDirPath}/../../../../../platform/utilities/src/debug_console_imx.c"
- "${ProjDirPath}/../../../../../platform/utilities/inc/debug_console_imx.h"
- "${ProjDirPath}/../../../../../platform/utilities/src/print_scan.c"
- "${ProjDirPath}/../../../../../platform/utilities/src/print_scan.h"
- "${ProjDirPath}/../../../../../platform/devices/MCIMX7D/startup/system_MCIMX7D_M4.c"
- "${ProjDirPath}/../../../../../platform/devices/MCIMX7D/startup/system_MCIMX7D_M4.h"
- "${ProjDirPath}/../../../pin_mux.c"
- "${ProjDirPath}/../../../pin_mux.h"
- "${ProjDirPath}/../../../board.c"
- "${ProjDirPath}/../../../board.h"
- "${ProjDirPath}/../../../clock_freq.c"
- "${ProjDirPath}/../../../clock_freq.h"
- "${ProjDirPath}/../../hello_world/hardware_init.c"
-)
-SET_TARGET_PROPERTIES(hello_world_qspi PROPERTIES OUTPUT_NAME "hello_world_qspi.elf")
-
-TARGET_LINK_LIBRARIES(hello_world_qspi -Wl,--start-group)
-# LIBRARIES
-IF(CMAKE_BUILD_TYPE MATCHES Debug)
-ELSEIF(CMAKE_BUILD_TYPE MATCHES Release)
-ENDIF()
-
-# SYSTEM LIBRARIES
-TARGET_LINK_LIBRARIES(hello_world_qspi m)
-TARGET_LINK_LIBRARIES(hello_world_qspi c)
-TARGET_LINK_LIBRARIES(hello_world_qspi gcc)
-TARGET_LINK_LIBRARIES(hello_world_qspi nosys)
-TARGET_LINK_LIBRARIES(hello_world_qspi -Wl,--end-group)
-
-# MAP FILE
-SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -Xlinker -Map=debug/hello_world_qspi.map")
-SET(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -Xlinker -Map=release/hello_world_qspi.map")
-
-# BIN AND HEX
-ADD_CUSTOM_COMMAND(TARGET hello_world_qspi POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Oihex ${EXECUTABLE_OUTPUT_PATH}/hello_world_qspi.elf ${EXECUTABLE_OUTPUT_PATH}/hello_world_qspi.hex)
-ADD_CUSTOM_COMMAND(TARGET hello_world_qspi POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Obinary ${EXECUTABLE_OUTPUT_PATH}/hello_world_qspi.elf ${EXECUTABLE_OUTPUT_PATH}/hello_world_qspi.bin)