From 8686f210408dc7f5d609537ef2a7501c4ad87993 Mon Sep 17 00:00:00 2001 From: Wang Qixiang <43193572+wqx6@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:52:35 +0800 Subject: [PATCH] Fix examples building when enabling external platform (#31188) * Add extra include directory for external platform * Add external platform build task CI for ESP32 lighting app * Fix some headers including * Update examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn Co-authored-by: Boris Zbarsky --------- Co-authored-by: Boris Zbarsky --- .github/workflows/examples-esp32.yaml | 3 + config/esp32/components/chip/CMakeLists.txt | 1 + config/esp32/components/chip/Kconfig | 6 + .../esp32/sdkconfig.ext_plat.defaults | 70 ++++++++ .../ESP32_custom/BLEManagerImpl.h | 1 + .../external_platform/ESP32_custom/BUILD.gn | 162 ++++++++++++++++++ .../ESP32_custom/BlePlatformConfig.h | 1 + .../ESP32_custom/CHIPDevicePlatformConfig.h | 1 + .../ESP32_custom/CHIPDevicePlatformEvent.h | 1 + .../ESP32_custom/CHIPPlatformConfig.h | 1 + .../ESP32_custom/ChipDeviceScanner.h | 1 + .../ESP32_custom/ConfigurationManagerImpl.cpp | 1 + .../ESP32_custom/ConfigurationManagerImpl.h | 1 + .../ESP32_custom/ConnectivityManagerImpl.cpp | 1 + .../ESP32_custom/ConnectivityManagerImpl.h | 1 + .../ConnectivityManagerImpl_Ethernet.cpp | 1 + .../ConnectivityManagerImpl_WiFi.cpp | 1 + .../DiagnosticDataProviderImpl.cpp | 1 + .../ESP32_custom/DiagnosticDataProviderImpl.h | 1 + .../ESP32_custom/DnssdImpl.cpp | 1 + .../ESP32_custom/ESP32CHIPCryptoPAL.cpp | 1 + .../ESP32_custom/ESP32CHIPCryptoPAL.h | 1 + .../ESP32_custom/ESP32Config.cpp | 1 + .../ESP32_custom/ESP32Config.h | 1 + .../ESP32_custom/ESP32DeviceInfoProvider.cpp | 1 + .../ESP32_custom/ESP32DeviceInfoProvider.h | 1 + .../ESP32_custom/ESP32FactoryDataProvider.cpp | 1 + .../ESP32_custom/ESP32FactoryDataProvider.h | 1 + .../ESP32SecureCertDACProvider.cpp | 1 + .../ESP32_custom/ESP32SecureCertDACProvider.h | 1 + .../ESP32_custom/ESP32Utils.cpp | 1 + .../ESP32_custom/ESP32Utils.h | 1 + .../ESP32_custom/InetPlatformConfig.h | 1 + .../ESP32_custom/KeyValueStoreManagerImpl.cpp | 1 + .../ESP32_custom/KeyValueStoreManagerImpl.h | 1 + .../ESP32_custom/Logging.cpp | 1 + .../ESP32_custom/LwIPCoreLock.cpp | 1 + .../NetworkCommissioningDriver.cpp | 1 + .../ESP32_custom/NetworkCommissioningDriver.h | 1 + .../NetworkCommissioningDriver_Ethernet.cpp | 1 + .../ESP32_custom/OTAImageProcessorImpl.cpp | 1 + .../ESP32_custom/OTAImageProcessorImpl.h | 1 + .../ESP32_custom/OpenthreadLauncher.cpp | 1 + .../ESP32_custom/OpenthreadLauncher.h | 1 + .../ESP32_custom/PlatformManagerImpl.cpp | 1 + .../ESP32_custom/PlatformManagerImpl.h | 1 + .../ESP32_custom/ScopedNvsHandle.h | 1 + .../ESP32_custom/SystemPlatformConfig.h | 1 + .../ESP32_custom/SystemTimeSupport.cpp | 1 + .../ESP32_custom/SystemTimeSupport.h | 1 + .../ESP32_custom/ThreadStackManagerImpl.cpp | 1 + .../ESP32_custom/ThreadStackManagerImpl.h | 1 + .../ESP32_custom/WarmPlatformConfig.h | 1 + .../ESP32_custom/WiFiDnssdImpl.cpp | 1 + .../ESP32_custom/WiFiDnssdImpl.h | 1 + .../external_platform/ESP32_custom/bluedroid | 1 + .../external_platform/ESP32_custom/nimble | 1 + .../external_platform/ESP32_custom/route_hook | 1 + src/BUILD.gn | 5 + src/platform/device.gni | 1 + 60 files changed, 301 insertions(+) create mode 100644 examples/lighting-app/esp32/sdkconfig.ext_plat.defaults create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/BLEManagerImpl.h create mode 100644 examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/BlePlatformConfig.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/CHIPDevicePlatformConfig.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/CHIPDevicePlatformEvent.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/CHIPPlatformConfig.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ChipDeviceScanner.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ConfigurationManagerImpl.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ConfigurationManagerImpl.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl_Ethernet.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl_WiFi.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/DiagnosticDataProviderImpl.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/DiagnosticDataProviderImpl.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/DnssdImpl.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32CHIPCryptoPAL.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32CHIPCryptoPAL.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32Config.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32Config.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32DeviceInfoProvider.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32DeviceInfoProvider.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32FactoryDataProvider.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32FactoryDataProvider.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32SecureCertDACProvider.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32SecureCertDACProvider.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32Utils.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ESP32Utils.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/InetPlatformConfig.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/KeyValueStoreManagerImpl.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/KeyValueStoreManagerImpl.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/Logging.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/LwIPCoreLock.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver_Ethernet.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/OTAImageProcessorImpl.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/OTAImageProcessorImpl.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/OpenthreadLauncher.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/OpenthreadLauncher.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/PlatformManagerImpl.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/PlatformManagerImpl.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ScopedNvsHandle.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/SystemPlatformConfig.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/SystemTimeSupport.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/SystemTimeSupport.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ThreadStackManagerImpl.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/ThreadStackManagerImpl.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/WarmPlatformConfig.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/WiFiDnssdImpl.cpp create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/WiFiDnssdImpl.h create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/bluedroid create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/nimble create mode 120000 examples/platform/esp32/external_platform/ESP32_custom/route_hook diff --git a/.github/workflows/examples-esp32.yaml b/.github/workflows/examples-esp32.yaml index 48ffb63425f611..0579d79647dd99 100644 --- a/.github/workflows/examples-esp32.yaml +++ b/.github/workflows/examples-esp32.yaml @@ -162,3 +162,6 @@ jobs: - name: Build example Light Switch App (Target:ESP32C3) run: scripts/examples/esp_example.sh light-switch-app sdkconfig.defaults.esp32c3 + + - name: Build example Lighting App (external platform) + run: scripts/examples/esp_example.sh lighting-app sdkconfig.ext_plat.defaults diff --git a/config/esp32/components/chip/CMakeLists.txt b/config/esp32/components/chip/CMakeLists.txt index 0ce9cb54933bed..a3ad2d9c438619 100644 --- a/config/esp32/components/chip/CMakeLists.txt +++ b/config/esp32/components/chip/CMakeLists.txt @@ -224,6 +224,7 @@ if (CONFIG_CHIP_ENABLE_EXTERNAL_PLATFORM) chip_gn_arg_append("chip_shell_platform" "\"esp32\"") endif() chip_gn_arg_append("chip_platform_target" "\"//${CONFIG_CHIP_EXTERNAL_PLATFORM_DIR}\"") + chip_gn_arg_append("chip_external_platform_include_dir" "\"//${CONFIG_CHIP_EXTERNAL_PLATFORM_INCLUDE_DIR}\"") endif() # Set up CHIP project configuration file diff --git a/config/esp32/components/chip/Kconfig b/config/esp32/components/chip/Kconfig index e0576a38051650..8ba2c1b3986e15 100644 --- a/config/esp32/components/chip/Kconfig +++ b/config/esp32/components/chip/Kconfig @@ -1070,6 +1070,12 @@ menu "CHIP Device Layer" help The directory of the external platform. + config CHIP_EXTERNAL_PLATFORM_INCLUDE_DIR + string "The external platform including directory" + depends on CHIP_ENABLE_EXTERNAL_PLATFORM + help + The including directory of the external platform. + endmenu menu "Matter Manufacturing Options" diff --git a/examples/lighting-app/esp32/sdkconfig.ext_plat.defaults b/examples/lighting-app/esp32/sdkconfig.ext_plat.defaults new file mode 100644 index 00000000000000..7fbda2c04f8dc7 --- /dev/null +++ b/examples/lighting-app/esp32/sdkconfig.ext_plat.defaults @@ -0,0 +1,70 @@ +# +# Copyright (c) 2021 Project CHIP Authors +# All rights reserved. +# +# 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. +# +# Description: +# Some useful defaults for the demo app configuration. +# + +# Default to 921600 baud when flashing and monitoring device +CONFIG_ESPTOOLPY_BAUD_921600B=y +CONFIG_ESPTOOLPY_BAUD=921600 +CONFIG_ESPTOOLPY_COMPRESSED=y +CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B=y +CONFIG_ESPTOOLPY_MONITOR_BAUD=115200 + +#enable BT +CONFIG_BT_ENABLED=y +CONFIG_BT_NIMBLE_ENABLED=y + +#disable BT connection reattempt +CONFIG_BT_NIMBLE_ENABLE_CONN_REATTEMPT=n + +#enable lwip ipv6 autoconfig +CONFIG_LWIP_IPV6_AUTOCONFIG=y + +#enable debug shell +CONFIG_ENABLE_CHIP_SHELL=y + +# Use a custom partition table +CONFIG_PARTITION_TABLE_CUSTOM=y +CONFIG_PARTITION_TABLE_FILENAME="partitions.csv" + +#enable lwIP route hooks +CONFIG_LWIP_HOOK_IP6_ROUTE_DEFAULT=y +CONFIG_LWIP_HOOK_ND6_GET_GW_DEFAULT=y + +# Serial Flasher config +CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y +CONFIG_ESPTOOLPY_FLASHSIZE="4MB" + +# Disable softap support by default +CONFIG_ESP_WIFI_SOFTAP_SUPPORT=n +# This example uses the older version of RMT driver to work with both +# idf-v4.4.3 and idf-v5.0, so suppressing the warnings by setting below option +CONFIG_RMT_SUPPRESS_DEPRECATE_WARN=y + +# Enable HKDF in mbedtls +CONFIG_MBEDTLS_HKDF_C=y + +# Disable Read Client +CONFIG_DISABLE_READ_CLIENT=y + +# Increase LwIP IPv6 address number +CONFIG_LWIP_IPV6_NUM_ADDRESSES=6 + +CONFIG_CHIP_ENABLE_EXTERNAL_PLATFORM=y +CONFIG_CHIP_EXTERNAL_PLATFORM_DIR="../../examples/platform/esp32/external_platform/ESP32_custom/" +CONFIG_CHIP_EXTERNAL_PLATFORM_INCLUDE_DIR="../../examples/platform/esp32/" diff --git a/examples/platform/esp32/external_platform/ESP32_custom/BLEManagerImpl.h b/examples/platform/esp32/external_platform/ESP32_custom/BLEManagerImpl.h new file mode 120000 index 00000000000000..7129a703b1d093 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/BLEManagerImpl.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/BLEManagerImpl.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn b/examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn new file mode 100644 index 00000000000000..d8d2f92b542ac7 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/BUILD.gn @@ -0,0 +1,162 @@ +# Copyright (c) 2023 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. + +import("//build_overrides/chip.gni") + +import("${chip_root}/build/chip/buildconfig_header.gni") +import("${chip_root}/src/platform/device.gni") + +declare_args() { + # By default use default/example implementation of CommissionableDataProvider, + # DeviceAttestationCredentialsProvider and DeviceInstanceInfoProvider + chip_use_transitional_commissionable_data_provider = true + chip_use_factory_data_provider = false + chip_use_device_info_provider = false + chip_config_software_version_number = 0 + chip_enable_chipoble = true + chip_bt_nimble_enabled = true + chip_bt_bluedroid_enabled = true + chip_max_discovered_ip_addresses = 5 + chip_enable_route_hook = false +} + +buildconfig_header("custom_buildconfig") { + header = "CHIPDeviceBuildConfig.h" + header_dir = "platform" + + defines = [ + "CHIP_DEVICE_CONFIG_ENABLE_WPA=false", + "CHIP_ENABLE_OPENTHREAD=${chip_enable_openthread}", + "CHIP_DEVICE_CONFIG_THREAD_FTD=${chip_openthread_ftd}", + "OPENTHREAD_CONFIG_ENABLE_TOBLE=false", + "CHIP_BYPASS_RENDEZVOUS=false", + "CHIP_STACK_LOCK_TRACKING_ENABLED=true", + "CHIP_STACK_LOCK_TRACKING_ERROR_FATAL=false", + "CHIP_ENABLE_ADDITIONAL_DATA_ADVERTISING=false", + "CHIP_DEVICE_CONFIG_RUN_AS_ROOT=false", + "CHIP_DEVICE_LAYER_TARGET_ESP32=1", + "CHIP_DEVICE_LAYER_TARGET=ESP32_custom", + "CHIP_USE_TRANSITIONAL_COMMISSIONABLE_DATA_PROVIDER=1", + "BLE_PLATFORM_CONFIG_INCLUDE=", + "CHIP_DEVICE_PLATFORM_CONFIG_INCLUDE=", + "CHIP_PLATFORM_CONFIG_INCLUDE=", + "INET_CONFIG_INCLUDE=", + "SYSTEM_PLATFORM_CONFIG_INCLUDE=", + "EXTERNAL_CONFIGURATIONMANAGERIMPL_HEADER=", + "EXTERNAL_CHIPDEVICEPLATFORMEVENT_HEADER=", + "EXTERNAL_CONNECTIVITYMANAGERIMPL_HEADER=", + "EXTERNAL_BLEMANAGERIMPL_HEADER=", + "EXTERNAL_KEYVALUESTOREMANAGERIMPL_HEADER=", + "EXTERNAL_PLATFORMMANAGERIMPL_HEADER=", + "CHIP_CONFIG_SOFTWARE_VERSION_NUMBER=${chip_config_software_version_number}", + "CHIP_DEVICE_CONFIG_MAX_DISCOVERED_IP_ADDRESSES=${chip_max_discovered_ip_addresses}", + ] + + if (chip_enable_ota_requestor) { + defines += [ "CHIP_DEVICE_CONFIG_ENABLE_OTA_REQUESTOR=1" ] + } +} + +group("platform_buildconfig") { + public_deps = [ ":custom_buildconfig" ] +} + +static_library("ESP32_custom") { + sources = [ + "${chip_root}/src/platform/SingletonConfigurationManager.cpp", + "CHIPDevicePlatformConfig.h", + "CHIPDevicePlatformEvent.h", + "ConfigurationManagerImpl.cpp", + "ConfigurationManagerImpl.h", + "ConnectivityManagerImpl.cpp", + "ConnectivityManagerImpl.h", + "DiagnosticDataProviderImpl.cpp", + "DiagnosticDataProviderImpl.h", + "ESP32Config.cpp", + "ESP32Config.h", + "ESP32Utils.cpp", + "ESP32Utils.h", + "KeyValueStoreManagerImpl.cpp", + "KeyValueStoreManagerImpl.h", + "Logging.cpp", + "LwIPCoreLock.cpp", + "PlatformManagerImpl.cpp", + "PlatformManagerImpl.h", + "SystemTimeSupport.cpp", + "SystemTimeSupport.h", + ] + + deps = [ + "${chip_root}/src/lib/dnssd:platform_header", + "${chip_root}/src/platform/logging:headers", + "${chip_root}/src/setup_payload", + ] + + public_deps = [ + ":platform_buildconfig", + "${chip_root}/src/crypto", + "${chip_root}/src/platform:platform_base", + ] + + if (chip_enable_ota_requestor) { + sources += [ + "OTAImageProcessorImpl.cpp", + "OTAImageProcessorImpl.h", + ] + } + + if (chip_enable_chipoble) { + sources += [ "BLEManagerImpl.h" ] + } + + if (chip_bt_nimble_enabled) { + sources += [ "nimble/BLEManagerImpl.cpp" ] + } + + if (chip_bt_bluedroid_enabled) { + sources += [ "bluedroid/BLEManagerImpl.cpp" ] + } + + if (chip_enable_wifi) { + sources += [ + "ConnectivityManagerImpl_WiFi.cpp", + "NetworkCommissioningDriver.cpp", + "NetworkCommissioningDriver.h", + "route_hook/ESP32RouteHook.c", + "route_hook/ESP32RouteHook.h", + "route_hook/ESP32RouteTable.c", + "route_hook/ESP32RouteTable.h", + ] + if (chip_mdns == "platform") { + sources += [ + "DnssdImpl.cpp", + "DnssdImpl.h", + ] + } + } + + if (chip_use_factory_data_provider) { + sources += [ + "ESP32FactoryDataProvider.cpp", + "ESP32FactoryDataProvider.h", + ] + } + + if (chip_use_device_info_provider) { + sources += [ + "ESP32DeviceInfoProvider.cpp", + "ESP32DeviceInfoProvider.h", + ] + } +} diff --git a/examples/platform/esp32/external_platform/ESP32_custom/BlePlatformConfig.h b/examples/platform/esp32/external_platform/ESP32_custom/BlePlatformConfig.h new file mode 120000 index 00000000000000..88b9238f1dff1a --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/BlePlatformConfig.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/BlePlatformConfig.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/CHIPDevicePlatformConfig.h b/examples/platform/esp32/external_platform/ESP32_custom/CHIPDevicePlatformConfig.h new file mode 120000 index 00000000000000..0b3e0a2b7c2d40 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/CHIPDevicePlatformConfig.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/CHIPDevicePlatformConfig.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/CHIPDevicePlatformEvent.h b/examples/platform/esp32/external_platform/ESP32_custom/CHIPDevicePlatformEvent.h new file mode 120000 index 00000000000000..671567847dfb79 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/CHIPDevicePlatformEvent.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/CHIPDevicePlatformEvent.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/CHIPPlatformConfig.h b/examples/platform/esp32/external_platform/ESP32_custom/CHIPPlatformConfig.h new file mode 120000 index 00000000000000..a19cb5a9147297 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/CHIPPlatformConfig.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/CHIPPlatformConfig.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ChipDeviceScanner.h b/examples/platform/esp32/external_platform/ESP32_custom/ChipDeviceScanner.h new file mode 120000 index 00000000000000..a3143f531bfe8a --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ChipDeviceScanner.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ChipDeviceScanner.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ConfigurationManagerImpl.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ConfigurationManagerImpl.cpp new file mode 120000 index 00000000000000..c7b36223a61f69 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ConfigurationManagerImpl.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ConfigurationManagerImpl.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ConfigurationManagerImpl.h b/examples/platform/esp32/external_platform/ESP32_custom/ConfigurationManagerImpl.h new file mode 120000 index 00000000000000..a2cbf092d1ba34 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ConfigurationManagerImpl.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ConfigurationManagerImpl.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl.cpp new file mode 120000 index 00000000000000..7e6399b9e9ae38 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ConnectivityManagerImpl.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl.h b/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl.h new file mode 120000 index 00000000000000..4c554bcdef1d3f --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ConnectivityManagerImpl.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl_Ethernet.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl_Ethernet.cpp new file mode 120000 index 00000000000000..f926c765f6ff9f --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl_Ethernet.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ConnectivityManagerImpl_Ethernet.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl_WiFi.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl_WiFi.cpp new file mode 120000 index 00000000000000..116c3e5c5c47d8 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ConnectivityManagerImpl_WiFi.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ConnectivityManagerImpl_WiFi.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/DiagnosticDataProviderImpl.cpp b/examples/platform/esp32/external_platform/ESP32_custom/DiagnosticDataProviderImpl.cpp new file mode 120000 index 00000000000000..d524c289905e28 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/DiagnosticDataProviderImpl.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/DiagnosticDataProviderImpl.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/DiagnosticDataProviderImpl.h b/examples/platform/esp32/external_platform/ESP32_custom/DiagnosticDataProviderImpl.h new file mode 120000 index 00000000000000..0907c51000c987 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/DiagnosticDataProviderImpl.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/DiagnosticDataProviderImpl.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/DnssdImpl.cpp b/examples/platform/esp32/external_platform/ESP32_custom/DnssdImpl.cpp new file mode 120000 index 00000000000000..bcaed4bf2d9a54 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/DnssdImpl.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/DnssdImpl.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32CHIPCryptoPAL.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ESP32CHIPCryptoPAL.cpp new file mode 120000 index 00000000000000..1f56d3eeb4ccfe --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32CHIPCryptoPAL.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32CHIPCryptoPAL.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32CHIPCryptoPAL.h b/examples/platform/esp32/external_platform/ESP32_custom/ESP32CHIPCryptoPAL.h new file mode 120000 index 00000000000000..9924892d2f54b2 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32CHIPCryptoPAL.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32CHIPCryptoPAL.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32Config.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ESP32Config.cpp new file mode 120000 index 00000000000000..9c526a870ed73c --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32Config.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32Config.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32Config.h b/examples/platform/esp32/external_platform/ESP32_custom/ESP32Config.h new file mode 120000 index 00000000000000..61bc2f26d73741 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32Config.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32Config.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32DeviceInfoProvider.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ESP32DeviceInfoProvider.cpp new file mode 120000 index 00000000000000..9b8767680a29b4 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32DeviceInfoProvider.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32DeviceInfoProvider.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32DeviceInfoProvider.h b/examples/platform/esp32/external_platform/ESP32_custom/ESP32DeviceInfoProvider.h new file mode 120000 index 00000000000000..6e28d68e54bfcb --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32DeviceInfoProvider.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32DeviceInfoProvider.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32FactoryDataProvider.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ESP32FactoryDataProvider.cpp new file mode 120000 index 00000000000000..8671013e9eddd7 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32FactoryDataProvider.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32FactoryDataProvider.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32FactoryDataProvider.h b/examples/platform/esp32/external_platform/ESP32_custom/ESP32FactoryDataProvider.h new file mode 120000 index 00000000000000..f3bf2b8f148af2 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32FactoryDataProvider.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32FactoryDataProvider.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32SecureCertDACProvider.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ESP32SecureCertDACProvider.cpp new file mode 120000 index 00000000000000..7de3f7e69cbb10 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32SecureCertDACProvider.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32SecureCertDACProvider.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32SecureCertDACProvider.h b/examples/platform/esp32/external_platform/ESP32_custom/ESP32SecureCertDACProvider.h new file mode 120000 index 00000000000000..a7586c58fc8992 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32SecureCertDACProvider.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32SecureCertDACProvider.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32Utils.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ESP32Utils.cpp new file mode 120000 index 00000000000000..6df008433ad193 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32Utils.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32Utils.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ESP32Utils.h b/examples/platform/esp32/external_platform/ESP32_custom/ESP32Utils.h new file mode 120000 index 00000000000000..3920a8b21357b9 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ESP32Utils.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ESP32Utils.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/InetPlatformConfig.h b/examples/platform/esp32/external_platform/ESP32_custom/InetPlatformConfig.h new file mode 120000 index 00000000000000..c432407b3f5f08 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/InetPlatformConfig.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/InetPlatformConfig.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/KeyValueStoreManagerImpl.cpp b/examples/platform/esp32/external_platform/ESP32_custom/KeyValueStoreManagerImpl.cpp new file mode 120000 index 00000000000000..4745d4f5051df3 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/KeyValueStoreManagerImpl.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/KeyValueStoreManagerImpl.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/KeyValueStoreManagerImpl.h b/examples/platform/esp32/external_platform/ESP32_custom/KeyValueStoreManagerImpl.h new file mode 120000 index 00000000000000..e59f2676ab863d --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/KeyValueStoreManagerImpl.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/KeyValueStoreManagerImpl.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/Logging.cpp b/examples/platform/esp32/external_platform/ESP32_custom/Logging.cpp new file mode 120000 index 00000000000000..ac8bb7aa62c7ab --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/Logging.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/Logging.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/LwIPCoreLock.cpp b/examples/platform/esp32/external_platform/ESP32_custom/LwIPCoreLock.cpp new file mode 120000 index 00000000000000..bff18cb8f310ee --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/LwIPCoreLock.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/LwIPCoreLock.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver.cpp b/examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver.cpp new file mode 120000 index 00000000000000..fd81bbe8e6f6f6 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/NetworkCommissioningDriver.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver.h b/examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver.h new file mode 120000 index 00000000000000..b4b6357574d2de --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/NetworkCommissioningDriver.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver_Ethernet.cpp b/examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver_Ethernet.cpp new file mode 120000 index 00000000000000..05122ba08d4401 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/NetworkCommissioningDriver_Ethernet.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/NetworkCommissioningDriver_Ethernet.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/OTAImageProcessorImpl.cpp b/examples/platform/esp32/external_platform/ESP32_custom/OTAImageProcessorImpl.cpp new file mode 120000 index 00000000000000..0b90b02bd98277 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/OTAImageProcessorImpl.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/OTAImageProcessorImpl.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/OTAImageProcessorImpl.h b/examples/platform/esp32/external_platform/ESP32_custom/OTAImageProcessorImpl.h new file mode 120000 index 00000000000000..bb83bea2091848 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/OTAImageProcessorImpl.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/OTAImageProcessorImpl.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/OpenthreadLauncher.cpp b/examples/platform/esp32/external_platform/ESP32_custom/OpenthreadLauncher.cpp new file mode 120000 index 00000000000000..648701535c4698 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/OpenthreadLauncher.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/OpenthreadLauncher.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/OpenthreadLauncher.h b/examples/platform/esp32/external_platform/ESP32_custom/OpenthreadLauncher.h new file mode 120000 index 00000000000000..b4f9de7979e9d7 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/OpenthreadLauncher.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/OpenthreadLauncher.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/PlatformManagerImpl.cpp b/examples/platform/esp32/external_platform/ESP32_custom/PlatformManagerImpl.cpp new file mode 120000 index 00000000000000..af7a1c87c0f7d8 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/PlatformManagerImpl.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/PlatformManagerImpl.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/PlatformManagerImpl.h b/examples/platform/esp32/external_platform/ESP32_custom/PlatformManagerImpl.h new file mode 120000 index 00000000000000..d9dccd87010909 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/PlatformManagerImpl.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/PlatformManagerImpl.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ScopedNvsHandle.h b/examples/platform/esp32/external_platform/ESP32_custom/ScopedNvsHandle.h new file mode 120000 index 00000000000000..3ea557e0f57c3f --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ScopedNvsHandle.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ScopedNvsHandle.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/SystemPlatformConfig.h b/examples/platform/esp32/external_platform/ESP32_custom/SystemPlatformConfig.h new file mode 120000 index 00000000000000..804c74f345a2de --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/SystemPlatformConfig.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/SystemPlatformConfig.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/SystemTimeSupport.cpp b/examples/platform/esp32/external_platform/ESP32_custom/SystemTimeSupport.cpp new file mode 120000 index 00000000000000..feca08b033ca45 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/SystemTimeSupport.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/SystemTimeSupport.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/SystemTimeSupport.h b/examples/platform/esp32/external_platform/ESP32_custom/SystemTimeSupport.h new file mode 120000 index 00000000000000..d26a2b4c21f33e --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/SystemTimeSupport.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/SystemTimeSupport.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ThreadStackManagerImpl.cpp b/examples/platform/esp32/external_platform/ESP32_custom/ThreadStackManagerImpl.cpp new file mode 120000 index 00000000000000..10491e35fd58fa --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ThreadStackManagerImpl.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ThreadStackManagerImpl.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/ThreadStackManagerImpl.h b/examples/platform/esp32/external_platform/ESP32_custom/ThreadStackManagerImpl.h new file mode 120000 index 00000000000000..0af7a1d9f7e50b --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/ThreadStackManagerImpl.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/ThreadStackManagerImpl.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/WarmPlatformConfig.h b/examples/platform/esp32/external_platform/ESP32_custom/WarmPlatformConfig.h new file mode 120000 index 00000000000000..25eb69c53caf1e --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/WarmPlatformConfig.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/WarmPlatformConfig.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/WiFiDnssdImpl.cpp b/examples/platform/esp32/external_platform/ESP32_custom/WiFiDnssdImpl.cpp new file mode 120000 index 00000000000000..6ca9fce6a3730d --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/WiFiDnssdImpl.cpp @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/WiFiDnssdImpl.cpp \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/WiFiDnssdImpl.h b/examples/platform/esp32/external_platform/ESP32_custom/WiFiDnssdImpl.h new file mode 120000 index 00000000000000..213e49958733a8 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/WiFiDnssdImpl.h @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/WiFiDnssdImpl.h \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/bluedroid b/examples/platform/esp32/external_platform/ESP32_custom/bluedroid new file mode 120000 index 00000000000000..02d447a2bf917d --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/bluedroid @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/bluedroid \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/nimble b/examples/platform/esp32/external_platform/ESP32_custom/nimble new file mode 120000 index 00000000000000..3d4793d2f3d4cf --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/nimble @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/nimble \ No newline at end of file diff --git a/examples/platform/esp32/external_platform/ESP32_custom/route_hook b/examples/platform/esp32/external_platform/ESP32_custom/route_hook new file mode 120000 index 00000000000000..ea8e0e3424cb81 --- /dev/null +++ b/examples/platform/esp32/external_platform/ESP32_custom/route_hook @@ -0,0 +1 @@ +../../../../../src/platform/ESP32/route_hook \ No newline at end of file diff --git a/src/BUILD.gn b/src/BUILD.gn index 2d0204d49fa741..c074f5e0df1150 100644 --- a/src/BUILD.gn +++ b/src/BUILD.gn @@ -38,6 +38,11 @@ config("includes") { "${root_gen_dir}/include", ] + if (chip_device_platform == "external" && + chip_external_platform_include_dir != "") { + include_dirs += [ "${chip_external_platform_include_dir}" ] + } + # TODO: generated file dependency should be a lib NOT an include include_dirs += [ "${chip_root}/zzz_generated/app-common" ] diff --git a/src/platform/device.gni b/src/platform/device.gni index 9afb252ca0b809..7286805620e0c3 100644 --- a/src/platform/device.gni +++ b/src/platform/device.gni @@ -209,6 +209,7 @@ if (chip_device_platform != "external") { chip_inet_platform_config_include = "" chip_system_platform_config_include = "" chip_system_layer_impl_config_file = "" + chip_external_platform_include_dir = "" } }