-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zephyr standalone platform update (#34135)
* fix zephyr build (west) * Use different Kconfig In order to let the user choose his own pack of functionality. I guess BLUETOOTH shouldn't be enable by default, because Bluetooth isn't mandatory for a Matter device Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Remove ZephyrSocket Because zephyr has recvmsg now Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Support ip_mreq and ip_mreqn Because Zephyr seems to not have ip_mreq, only ip_mreqn, so add an extra flag in platform config to make the choice. This issue is only meets when doing ipv4 on a Zephyr platform Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Add missing functions to BLE Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Add specific configs and dependencies for Zephyr platform Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Restyled by whitespace * Restyled by clang-format * Restyled by gn * Revert "Remove ZephyrSocket" This reverts commit f283940. Also, fix things discussed with Damian-Nordic Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Don't use ZephyrSocket.h Since zephyr implement recvsg now Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Remove git artifact Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Restyled by whitespace * Restyled by clang-format * Re-add ZephyrSocket.h include Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Remove BLE Read declarations As discussed in conversations Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Allow net_if only with Ethernet or Wifi connection Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Check if Ethernet is defined Because all manufactures don't implement it Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> * Restyled by clang-format --------- Signed-off-by: Caldeira, Quentin <QuentinCaldeira@eaton.com> Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information
1 parent
129081a
commit ea235fd
Showing
12 changed files
with
256 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# | ||
# Copyright (c) 2021 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# Bluetooth Low Energy configs | ||
config BT | ||
bool | ||
default y | ||
|
||
config BT_PERIPHERAL | ||
bool | ||
default y | ||
|
||
config BT_PERIPHERAL_PREF_MIN_INT | ||
int | ||
default 36 | ||
|
||
config BT_PERIPHERAL_PREF_MAX_INT | ||
int | ||
default 36 | ||
|
||
config BT_GAP_AUTO_UPDATE_CONN_PARAMS | ||
bool | ||
default y | ||
|
||
config BT_GATT_DYNAMIC_DB | ||
bool | ||
default y | ||
|
||
config BT_DEVICE_NAME_DYNAMIC | ||
bool | ||
default y | ||
|
||
config BT_DEVICE_NAME_MAX | ||
int | ||
default 15 | ||
|
||
config BT_MAX_CONN | ||
int | ||
default 1 | ||
|
||
config BT_L2CAP_TX_MTU | ||
int | ||
default 247 | ||
|
||
config BT_BUF_ACL_RX_SIZE | ||
int | ||
default 251 | ||
|
||
config BT_BUF_ACL_TX_SIZE | ||
int | ||
default 251 | ||
|
||
config BT_RX_STACK_SIZE | ||
int | ||
default 1200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# | ||
# Copyright (c) 2021 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
if CHIP | ||
|
||
config MBEDTLS | ||
default y | ||
|
||
config MBEDTLS_ENTROPY_ENABLED | ||
default y | ||
|
||
config MBEDTLS_ENTROPY_ENABLED | ||
default y | ||
|
||
config MBEDTLS_ZEPHYR_ENTROPY | ||
default y | ||
|
||
config MBEDTLS_ENABLE_HEAP | ||
default y | ||
|
||
config MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED | ||
default y | ||
|
||
config MBEDTLS_ECP_ALL_ENABLED | ||
default y | ||
|
||
config MBEDTLS_ECP_C | ||
default y | ||
|
||
config MBEDTLS_PKCS5_C | ||
default y | ||
|
||
config MBEDTLS_HKDF_C | ||
default y | ||
|
||
config MBEDTLS_CIPHER_CCM_ENABLED | ||
default y | ||
|
||
config MBEDTLS_CTR_DRBG_ENABLED | ||
default y | ||
|
||
config MBEDTLS_CIPHER_AES_ENABLED | ||
default y | ||
|
||
config MBEDTLS_ECDH_C | ||
default y | ||
|
||
config MBEDTLS_ECDSA_C | ||
default y | ||
|
||
endif #CHIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.