Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nrfconnect] Fix Chef build #21481

Merged
merged 1 commit into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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