cmake: How does one disable the MTD, NCP and RCP builds? #10685
Unanswered
sjlongland
asked this question in
Q&A
Replies: 3 comments 3 replies
-
Hi @sjlongland, Could you try this after removing the cache?
|
Beta Was this translation helpful? Give feedback.
1 reply
-
What's the version(commit) of your openthread? I just tried locally and it can work. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@sjlongland, I think you can check the option(OT_APP_CLI "enable CLI app" ON)
option(OT_APP_NCP "enable NCP app" ON)
option(OT_APP_RCP "enable RCP app" ON)
option(OT_FTD "enable FTD" ON)
option(OT_MTD "enable MTD" ON)
option(OT_RCP "enable RCP" ON) As an example of how these are used to build different configs, I can suggest taking a look at |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm trying to port a project over from using the old
autotools
infrastructure for building OpenThread tocmake
and I'm hitting an annoyance in the new build system…The old system had options we needed to explicitly turn on:
--enable-mtd
,--enable-ftd
,--enable-cli
,--enable-ncp
,--enable-radio
.For the project here, I only need
--enable-ftd
and--enable-cli
.I tried setting
OT_NCP
,OT_RCP
andOT_MTD
toOFF
, but those components still build. Not harmful, but it does slow down the build unnecessarily. I also haveOT_APP_NCP
andOT_APP_RCP
turned off.CMakeCache.txt
shows they've been turned off, but it appears these parameters are being ignored.How does one tell
cmake
to turn these off completely?Beta Was this translation helpful? Give feedback.
All reactions