X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=toolchain%2Fcortex-m0.cmake;h=0ad3d56b1a9d86bcc0f17a31335b11942f61f774;hb=fa3b47a25d4759afc71556478d1e76bfca27e7ea;hp=2536a879674516601bf89fe2e1653ed18ac18605;hpb=902a5091914e0c77c478101e4cdeaea84aff02e6;p=lwext4.git diff --git a/toolchain/cortex-m0.cmake b/toolchain/cortex-m0.cmake index 2536a87..0ad3d56 100644 --- a/toolchain/cortex-m0.cmake +++ b/toolchain/cortex-m0.cmake @@ -1,9 +1,9 @@ -# Name of the target -set(CMAKE_SYSTEM_NAME arm-none-eabi) -set(CMAKE_SYSTEM_PROCESSOR cortex-m0) - -set(MCPU_FLAGS "-mthumb -mcpu=cortex-m0") -set(VFP_FLAGS "") -set(LD_FLAGS "-nostartfiles") - +# Name of the target +set(CMAKE_SYSTEM_NAME Generic) +set(CMAKE_SYSTEM_PROCESSOR cortex-m0) + +set(MCPU_FLAGS "-mthumb -mcpu=cortex-m0") +set(VFP_FLAGS "") +set(LD_FLAGS "-nostartfiles") + include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake) \ No newline at end of file