X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=toolchain%2Fcortex-m4.cmake;h=fef16ed0d20f42d73d2a937d8c4e8685dd33049d;hb=85a64ca0685fe854e830c0b25565e5ca015d2dd3;hp=697376a85f1f16e3f1f765c474525928fd96eb53;hpb=51f1e57ab39213c2a84155f9383f87d483dad769;p=lwext4.git diff --git a/toolchain/cortex-m4.cmake b/toolchain/cortex-m4.cmake index 697376a..fef16ed 100644 --- a/toolchain/cortex-m4.cmake +++ b/toolchain/cortex-m4.cmake @@ -1,9 +1,9 @@ -# Name of the target -set(CMAKE_SYSTEM_NAME arm-none-eabi) -set(CMAKE_SYSTEM_PROCESSOR cortex-m4) - -set(MCPU_FLAGS "-mthumb -mcpu=cortex-m4") -set(VFP_FLAGS "-mfloat-abi=hard -mfpu=fpv4-sp-d16") - - +# Name of the target +set(CMAKE_SYSTEM_NAME Generic) +set(CMAKE_SYSTEM_PROCESSOR cortex-m4) + +set(MCPU_FLAGS "-mthumb -mcpu=cortex-m4") +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