mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 22:00:19 +00:00
[posix-app] simplify makefiles (#3975)
* [cli] ensure legacy callback APIs are defined as `OT_TOOL_WEAK` * [posix-app] simplify the makefile (link in ncp lib). This commit simplifies the posix-app makefiles by removing the `inc_<module>` source files (which included certain modules from the `ncp` folder). Instead the library `libopenthread-ncp-ftd.a` is included when linking thethe final posix-app executables `ot-ncp`, `ot-cli` and/or, `o-daemon`. * [posix-app] ensure header files from ncp folder have "ncp/" prefix This commit changes the posix-app platform makefile such that the header files from `src/ncp` folder require "ncp/" prefix.
This commit is contained in:
committed by
Jonathan Hui
parent
21221d9903
commit
d92733661c
+3
-3
@@ -3611,17 +3611,17 @@ exit:
|
||||
} // namespace ot
|
||||
|
||||
#if OPENTHREAD_ENABLE_LEGACY
|
||||
extern "C" void otNcpRegisterLegacyHandlers(const otNcpLegacyHandlers *aHandlers)
|
||||
OT_TOOL_WEAK void otNcpRegisterLegacyHandlers(const otNcpLegacyHandlers *aHandlers)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aHandlers);
|
||||
}
|
||||
|
||||
extern "C" void otNcpHandleDidReceiveNewLegacyUlaPrefix(const uint8_t *aUlaPrefix)
|
||||
OT_TOOL_WEAK void otNcpHandleDidReceiveNewLegacyUlaPrefix(const uint8_t *aUlaPrefix)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aUlaPrefix);
|
||||
}
|
||||
|
||||
extern "C" void otNcpHandleLegacyNodeDidJoin(const otExtAddress *aExtAddr)
|
||||
OT_TOOL_WEAK void otNcpHandleLegacyNodeDidJoin(const otExtAddress *aExtAddr)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aExtAddr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user