X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=toolchain%2Fcortex-m0.cmake;h=0ad3d56b1a9d86bcc0f17a31335b11942f61f774;hb=764793f1afc98c2819e03aa06c2d449dc693df4e;hp=90863d373dc0839ca484a923d121697cb92b42a4;hpb=51f1e57ab39213c2a84155f9383f87d483dad769;p=lwext4.git diff --git a/toolchain/cortex-m0.cmake b/toolchain/cortex-m0.cmake index 90863d3..0ad3d56 100644 --- a/toolchain/cortex-m0.cmake +++ b/toolchain/cortex-m0.cmake @@ -1,8 +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 "") - +# 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