Skip to content

Commit

Permalink
cleaner fix for shell
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinez-silabs committed Feb 4, 2022
1 parent 4ef244c commit a9e1577
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 0 additions & 4 deletions examples/shell/efr32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ efr32_sdk("sdk") {
defines = [
"BOARD_ID=${efr32_board}",
"OPENTHREAD_CONFIG_CLI_TRANSPORT=OT_CLI_TRANSPORT_CONSOLE",
"ENABLE_CHIP_SHELL",

# shell app use openthread but do not have the NETWORK_COMMISSIONING cluster or zap config.
"_NO_NETWORK_COMMISSIONING_DRIVER_",
]
}

Expand Down
1 change: 1 addition & 0 deletions examples/shell/efr32/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ pw_log_BACKEND = "${chip_root}/src/lib/support/pw_log_chip"
pw_assert_BACKEND = "$dir_pw_assert_log"
chip_enable_openthread = true
chip_openthread_ftd = true
chip_build_libshell = true
2 changes: 2 additions & 0 deletions examples/shell/efr32/include/CHIPProjectConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,5 @@
* A size, in bytes, of the individual debug event logging buffer.
*/
#define CHIP_DEVICE_CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE (512)

#define _NO_NETWORK_COMMISSIONING_DRIVER_
2 changes: 0 additions & 2 deletions examples/shell/mbed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ include(${MBED_PATH}/tools/cmake/app.cmake)

project(${APP_TARGET})

# shell app use openthread but do not have the NETWORK_COMMISSIONING cluster or zap config
add_definitions(-D_NO_NETWORK_COMMISSIONING_DRIVER_)

add_subdirectory(${MBED_PATH} ./mbed_build)
add_subdirectory(${MBED_OS_POSIX_SOCKET_PATH} ./mbed_os_posix_socket_build)
Expand Down
4 changes: 4 additions & 0 deletions examples/shell/mbed/main/include/CHIPProjectConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@
// Use a default pairing code if one hasn't been provisioned in flash.
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_PIN_CODE 20202021
#define CHIP_DEVICE_CONFIG_USE_TEST_SETUP_DISCRIMINATOR 0xF00

// shell app use openthread but do not have the NETWORK_COMMISSIONING cluster or zap config
// Do not instanciate the NETWORK_COMMISSIONING thread driver
#define _NO_NETWORK_COMMISSIONING_DRIVER_
4 changes: 4 additions & 0 deletions examples/shell/nrfconnect/CHIPProjectConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@
* 0x4E53: nrfconnect shell
*/
#define CHIP_DEVICE_CONFIG_DEVICE_PRODUCT_ID 0x4E53

// shell app use openthread but do not have the NETWORK_COMMISSIONING cluster or zap config
// Do not instanciate the NETWORK_COMMISSIONING thread driver
#define _NO_NETWORK_COMMISSIONING_DRIVER_
3 changes: 0 additions & 3 deletions examples/shell/nrfconnect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ endif()

project(chip-nrfconnect-shell-example)

# shell app use openthread but do not have the NETWORK_COMMISSIONING cluster or zap config
add_definitions(-D_NO_NETWORK_COMMISSIONING_DRIVER_)

include(${CHIP_ROOT}/config/nrfconnect/app/enable-gnu-std.cmake)

target_compile_options(app PRIVATE -Werror)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#include <platform/ThreadStackManager.h>

#include <limits>
#include <string>
#include <vector>

using namespace chip;
using namespace chip::Thread;
Expand Down

0 comments on commit a9e1577

Please sign in to comment.