From d98f935131df0f824447a8b9b31ee880da7b7c25 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Mon, 19 Oct 2020 21:54:45 -0700 Subject: [PATCH] [cmake-build] ensure cc2538 uses 'CMAKE_BUILD_TYPE=Release' (#5669) This change ensures the cc2538 cmake build uses the release build type and the compile option `-Os` (optimize for size). This harmonizes the cmake build with automake version. It also helps address an issue with recent PRs failing on cc2538 cmake build with arm-gcc-5 due to reaching flash size limit (without `-Os` option). --- script/cmake-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/cmake-build b/script/cmake-build index 3ceb6574f..a5c7f0ad5 100755 --- a/script/cmake-build +++ b/script/cmake-build @@ -154,7 +154,7 @@ main() OT_CMAKE_NINJA_TARGET=("ot-cli-mtd" "ot-ncp-mtd") options+=("-DCMAKE_TOOLCHAIN_FILE=examples/platforms/${platform}/arm-none-eabi.cmake" "-DCMAKE_BUILD_TYPE=Release") ;; - cc1352 | cc2652 | samr21 | qpg6095) + cc1352 | cc2538 | cc2652 | qpg6095 | samr21) options+=("-DCMAKE_TOOLCHAIN_FILE=examples/platforms/${platform}/arm-none-eabi.cmake" "-DCMAKE_BUILD_TYPE=Release") ;; *)