64 Commits

Author SHA1 Message Date
653745911f [build] rename posix-app to posix (#4661) 2020-03-11 11:42:30 -07:00
f4775fe13a [build] enhancements for OpenThread border router (#4604)
This commit makes a few small changes so that the cmake build files
can be used by project depending on this project.
2020-02-28 22:08:02 -08:00
b01754cabf [mle] add enhanced keep-alive (#4325)
This commit introduces the first Thread 1.2 feature - enhanced keep
alive.

This commit also introduces the build config
OPENTHREAD_CONFIG_THREAD_VERSION to include/exclude Thread 1.2 code.
2020-02-24 21:03:19 -08:00
50e094865b [cmake] add additional compiler options (#4500) 2020-02-07 08:26:10 -08:00
c75533fd15 [cmake] add OT_CONFIG to specify project core config header file (#4374)
This commit adds new parameter `OT_CONFIG` to main `CMakeLists.txt`
file. This parameter allows users to specify a project-specific core
config header file (mapped to `OPENTHREAD_PROJECT_CORE_CONFIG_FILE`)
during build configuration.

The default value for this parameter is "none". When not specified
(value is "none"), a platform cmake file may choose to change
`OT_COFNIG` variable to provide its own core config header file. This
commit updates platform 'posix' and 'cc2548' cmake files to provide
platform specific header files when `OT_CONFIG` is not specified by
user.
2019-12-11 09:26:32 -08:00
f7555a54f3 [posix-host] add cmake support (#4379) 2019-12-06 09:03:17 -08:00
889584c42c [cmake] move generated header file to PROJECT_BINARY_DIR (#4112)
Credit to Robert Lubos for the suggestion.
2019-11-26 00:53:35 +08:00
11074f7829 [cmake] fix version code generation (#4112) 2019-11-26 00:53:35 +08:00
96be52fd38 [cmake] add all important cflags in the toolchain file, remove platform.cmake (#4112)
This is important for allowing cmake to properly configure itself,
knowing what cflags will be passed. Also I removed all of the
public modifications of CMAKE_CXX_FLAGS, to better control where
the flags are actually applied.

The linker file is an exception to the toolchain file, as it
depends on symbols that are declared in the startup file
(startup-gcc.c for cc2538). Therefore it has been added as a
PUBLIC requirement for the cc2538 platform layer.
2019-11-26 00:53:35 +08:00
a51e501b6a [cmake] create functions.cmake file to abstract useful functions (#4112) 2019-11-26 00:53:35 +08:00
71b567c329 [cmake] remove unnecessary cmake step (#4112) 2019-11-26 00:53:35 +08:00
e65880ecf3 [cmake] remove unnecessary cmake variable (#4112) 2019-11-26 00:53:35 +08:00
6a00ea0cdb [cmake] remove directory scoped add_definitions calls (#4112)
These won't work well if a parent project includes openthread as a
subproject, and aren't as well abstracted as the target-based
definitions.
2019-11-26 00:53:35 +08:00
b598fa337c [cmake] initial implementation (#4112) 2019-11-26 00:53:35 +08:00