Skip to content

Commit

Permalink
[nrfconnect] Fix Chef build (#21481)
Browse files Browse the repository at this point in the history
Remove obsolete OpenThread workaround causing the build failure.

Signed-off-by: Damian Krolik <[email protected]>
  • Loading branch information
Damian-Nordic authored and pull[bot] committed Aug 21, 2023
1 parent 6af9683 commit 1582242
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 49 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,31 +79,30 @@ jobs:
run: |
./scripts/run_in_build_env.sh "./examples/chef/chef.py --ci -t esp32"
# https://github.com/project-chip/connectedhomeip/issues/21465
# chef_nrfconnect:
# name: Chef - NRFConnect CI Examples
# runs-on: ubuntu-latest
# if: github.actor != 'restyled-io[bot]'
chef_nrfconnect:
name: Chef - NRFConnect CI Examples
runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

# container:
# image: connectedhomeip/chip-build-nrf-platform:0.5.91
# options: --user root
container:
image: connectedhomeip/chip-build-nrf-platform:0.5.91
options: --user root

# steps:
# - uses: Wandalen/[email protected]
# name: Checkout
# with:
# action: actions/checkout@v3
# with: |
# token: ${{ github.token }}
# attempt_limit: 3
# attempt_delay: 2000
# - name: Checkout submodules
# run: scripts/checkout_submodules.py --shallow --platform nrfconnect
# - name: Bootstrap
# timeout-minutes: 10
# run: scripts/build/gn_bootstrap.sh
# - name: CI Examples NRFConnect
# shell: bash
# run: |
# ./scripts/run_in_build_env.sh "./examples/chef/chef.py --ci -t nrfconnect"
steps:
- uses: Wandalen/[email protected]
name: Checkout
with:
action: actions/checkout@v3
with: |
token: ${{ github.token }}
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform nrfconnect
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
- name: CI Examples NRFConnect
shell: bash
run: |
./scripts/run_in_build_env.sh "./examples/chef/chef.py --ci -t nrfconnect"
11 changes: 0 additions & 11 deletions examples/chef/nrfconnect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,6 @@ chip_configure_data_model(app
GEN_DIR ${GEN_DIR}
)


# 1) The example needs be linked with openthread command line interpreter (required by cmd_otcli.cpp)
# 2) Zephyr shell must be disabled not to interfere with the example
# We can't achieve 1 and 2 with Kconfig since CONFIG_OPENTHREAD_SHELL implies CONFIG_SHELL.
# Hence the workaround below.
if(CONFIG_OPENTHREAD_FTD)
target_link_libraries(app INTERFACE openthread-cli-ftd)
elseif(CONFIG_OPENTHREAD_MTD)
target_link_libraries(app INTERFACE openthread-cli-mtd)
endif()

include(${CHIP_ROOT}/config/nrfconnect/app/flashing.cmake)


Expand Down
2 changes: 1 addition & 1 deletion examples/chef/nrfconnect/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ CONFIG_CHIP_ENABLE_PAIRING_AUTOSTART=y

# Configure CHIP shell
CONFIG_CHIP_LIB_SHELL=y
CONFIG_OPENTHREAD_SHELL=n
CONFIG_OPENTHREAD_SHELL=y

# Disable factory data support.
CONFIG_CHIP_FACTORY_DATA=n
Expand Down
10 changes: 0 additions & 10 deletions examples/shell/nrfconnect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,4 @@ target_sources(app PRIVATE
${APP_ROOT}/standalone/main.cpp
)

# 1) The example needs be linked with openthread command line interpreter (required by cmd_otcli.cpp)
# 2) Zephyr shell must be disabled not to interfere with the example
# We can't achieve 1 and 2 with Kconfig since CONFIG_OPENTHREAD_SHELL implies CONFIG_SHELL.
# Hence the workaround below.
if(CONFIG_OPENTHREAD_FTD)
target_link_libraries(app INTERFACE openthread-cli-ftd)
elseif(CONFIG_OPENTHREAD_MTD)
target_link_libraries(app INTERFACE openthread-cli-mtd)
endif()

include(${CHIP_ROOT}/config/nrfconnect/app/flashing.cmake)
2 changes: 1 addition & 1 deletion examples/shell/nrfconnect/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CONFIG_DK_LIBRARY=y

# Configure CHIP shell
CONFIG_CHIP_LIB_SHELL=y
CONFIG_OPENTHREAD_SHELL=n
CONFIG_OPENTHREAD_SHELL=y

# Some shell commands require OpenThread FTD configuration
CONFIG_OPENTHREAD_MTD=n
Expand Down

0 comments on commit 1582242

Please sign in to comment.