toolchain: add toolchain files for new MCUs & simplify makefile
[lwext4.git] / toolchain / cortex-m7.cmake
diff --git a/toolchain/cortex-m7.cmake b/toolchain/cortex-m7.cmake
new file mode 100644 (file)
index 0000000..1f1b093
--- /dev/null
@@ -0,0 +1,9 @@
+# Name of the target
+set(CMAKE_SYSTEM_NAME Generic)
+set(CMAKE_SYSTEM_PROCESSOR cortex-m4)
+
+set(MCPU_FLAGS "-mthumb -mcpu=cortex-m7")
+set(VFP_FLAGS "-mfloat-abi=hard -mfpu=fpv4-sp-d16")
+set(LD_FLAGS "-nostartfiles")
+
+include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file