From c53edcfdcaa8c22afe235c15a3bb2ff2446cd99a Mon Sep 17 00:00:00 2001 From: nipatel-silabs <108875604+nipatel-silabs@users.noreply.github.com> Date: Sat, 7 Jan 2023 00:24:19 +0530 Subject: [PATCH] Folder structure and build system re-factoring for thermostat (#24134) --- examples/thermostat/efr32/build_overrides | 1 - examples/thermostat/efr32/third_party/connectedhomeip | 1 - examples/thermostat/{ => silabs}/efr32/.gn | 0 examples/thermostat/{ => silabs}/efr32/BUILD.gn | 2 +- examples/thermostat/{ => silabs}/efr32/README.md | 0 examples/thermostat/{ => silabs}/efr32/args.gni | 0 examples/thermostat/{ => silabs}/efr32/build_for_wifi_args.gni | 0 examples/thermostat/{ => silabs}/efr32/build_for_wifi_gnfile.gn | 0 examples/thermostat/silabs/efr32/build_overrides | 1 + examples/thermostat/{ => silabs}/efr32/include/AppConfig.h | 0 examples/thermostat/{ => silabs}/efr32/include/AppEvent.h | 0 examples/thermostat/{ => silabs}/efr32/include/AppTask.h | 0 .../thermostat/{ => silabs}/efr32/include/CHIPProjectConfig.h | 0 examples/thermostat/{ => silabs}/efr32/include/SensorManager.h | 0 .../thermostat/{ => silabs}/efr32/include/TemperatureManager.h | 0 .../thermostat/{ => silabs}/efr32/include/ThermostatIcons.h | 0 examples/thermostat/{ => silabs}/efr32/include/ThermostatUI.h | 0 examples/thermostat/{ => silabs}/efr32/src/AppTask.cpp | 0 examples/thermostat/{ => silabs}/efr32/src/SensorManager.cpp | 0 .../thermostat/{ => silabs}/efr32/src/TemperatureManager.cpp | 0 examples/thermostat/{ => silabs}/efr32/src/ThermostatUI.cpp | 0 examples/thermostat/{ => silabs}/efr32/src/ZclCallbacks.cpp | 0 examples/thermostat/{ => silabs}/efr32/src/main.cpp | 0 examples/thermostat/silabs/efr32/third_party/connectedhomeip | 1 + 24 files changed, 3 insertions(+), 3 deletions(-) delete mode 120000 examples/thermostat/efr32/build_overrides delete mode 120000 examples/thermostat/efr32/third_party/connectedhomeip rename examples/thermostat/{ => silabs}/efr32/.gn (100%) rename examples/thermostat/{ => silabs}/efr32/BUILD.gn (99%) rename examples/thermostat/{ => silabs}/efr32/README.md (100%) rename examples/thermostat/{ => silabs}/efr32/args.gni (100%) rename examples/thermostat/{ => silabs}/efr32/build_for_wifi_args.gni (100%) rename examples/thermostat/{ => silabs}/efr32/build_for_wifi_gnfile.gn (100%) create mode 120000 examples/thermostat/silabs/efr32/build_overrides rename examples/thermostat/{ => silabs}/efr32/include/AppConfig.h (100%) rename examples/thermostat/{ => silabs}/efr32/include/AppEvent.h (100%) rename examples/thermostat/{ => silabs}/efr32/include/AppTask.h (100%) rename examples/thermostat/{ => silabs}/efr32/include/CHIPProjectConfig.h (100%) rename examples/thermostat/{ => silabs}/efr32/include/SensorManager.h (100%) rename examples/thermostat/{ => silabs}/efr32/include/TemperatureManager.h (100%) rename examples/thermostat/{ => silabs}/efr32/include/ThermostatIcons.h (100%) rename examples/thermostat/{ => silabs}/efr32/include/ThermostatUI.h (100%) rename examples/thermostat/{ => silabs}/efr32/src/AppTask.cpp (100%) rename examples/thermostat/{ => silabs}/efr32/src/SensorManager.cpp (100%) rename examples/thermostat/{ => silabs}/efr32/src/TemperatureManager.cpp (100%) rename examples/thermostat/{ => silabs}/efr32/src/ThermostatUI.cpp (100%) rename examples/thermostat/{ => silabs}/efr32/src/ZclCallbacks.cpp (100%) rename examples/thermostat/{ => silabs}/efr32/src/main.cpp (100%) create mode 120000 examples/thermostat/silabs/efr32/third_party/connectedhomeip diff --git a/examples/thermostat/efr32/build_overrides b/examples/thermostat/efr32/build_overrides deleted file mode 120000 index e578e73312ebd1..00000000000000 --- a/examples/thermostat/efr32/build_overrides +++ /dev/null @@ -1 +0,0 @@ -../../build_overrides \ No newline at end of file diff --git a/examples/thermostat/efr32/third_party/connectedhomeip b/examples/thermostat/efr32/third_party/connectedhomeip deleted file mode 120000 index c866b86874994d..00000000000000 --- a/examples/thermostat/efr32/third_party/connectedhomeip +++ /dev/null @@ -1 +0,0 @@ -../../../.. \ No newline at end of file diff --git a/examples/thermostat/efr32/.gn b/examples/thermostat/silabs/efr32/.gn similarity index 100% rename from examples/thermostat/efr32/.gn rename to examples/thermostat/silabs/efr32/.gn diff --git a/examples/thermostat/efr32/BUILD.gn b/examples/thermostat/silabs/efr32/BUILD.gn similarity index 99% rename from examples/thermostat/efr32/BUILD.gn rename to examples/thermostat/silabs/efr32/BUILD.gn index 5d058cc2e43cf6..a2ad43efcfa945 100644 --- a/examples/thermostat/efr32/BUILD.gn +++ b/examples/thermostat/silabs/efr32/BUILD.gn @@ -31,7 +31,7 @@ if (chip_enable_pw_rpc) { assert(current_os == "freertos") -efr32_project_dir = "${chip_root}/examples/thermostat/efr32" +efr32_project_dir = "${chip_root}/examples/thermostat/silabs/efr32" examples_plat_dir = "${chip_root}/examples/platform/silabs/efr32" examples_common_plat_dir = "${chip_root}/examples/platform/silabs" diff --git a/examples/thermostat/efr32/README.md b/examples/thermostat/silabs/efr32/README.md similarity index 100% rename from examples/thermostat/efr32/README.md rename to examples/thermostat/silabs/efr32/README.md diff --git a/examples/thermostat/efr32/args.gni b/examples/thermostat/silabs/efr32/args.gni similarity index 100% rename from examples/thermostat/efr32/args.gni rename to examples/thermostat/silabs/efr32/args.gni diff --git a/examples/thermostat/efr32/build_for_wifi_args.gni b/examples/thermostat/silabs/efr32/build_for_wifi_args.gni similarity index 100% rename from examples/thermostat/efr32/build_for_wifi_args.gni rename to examples/thermostat/silabs/efr32/build_for_wifi_args.gni diff --git a/examples/thermostat/efr32/build_for_wifi_gnfile.gn b/examples/thermostat/silabs/efr32/build_for_wifi_gnfile.gn similarity index 100% rename from examples/thermostat/efr32/build_for_wifi_gnfile.gn rename to examples/thermostat/silabs/efr32/build_for_wifi_gnfile.gn diff --git a/examples/thermostat/silabs/efr32/build_overrides b/examples/thermostat/silabs/efr32/build_overrides new file mode 120000 index 00000000000000..995884e6163eb5 --- /dev/null +++ b/examples/thermostat/silabs/efr32/build_overrides @@ -0,0 +1 @@ +../../../build_overrides \ No newline at end of file diff --git a/examples/thermostat/efr32/include/AppConfig.h b/examples/thermostat/silabs/efr32/include/AppConfig.h similarity index 100% rename from examples/thermostat/efr32/include/AppConfig.h rename to examples/thermostat/silabs/efr32/include/AppConfig.h diff --git a/examples/thermostat/efr32/include/AppEvent.h b/examples/thermostat/silabs/efr32/include/AppEvent.h similarity index 100% rename from examples/thermostat/efr32/include/AppEvent.h rename to examples/thermostat/silabs/efr32/include/AppEvent.h diff --git a/examples/thermostat/efr32/include/AppTask.h b/examples/thermostat/silabs/efr32/include/AppTask.h similarity index 100% rename from examples/thermostat/efr32/include/AppTask.h rename to examples/thermostat/silabs/efr32/include/AppTask.h diff --git a/examples/thermostat/efr32/include/CHIPProjectConfig.h b/examples/thermostat/silabs/efr32/include/CHIPProjectConfig.h similarity index 100% rename from examples/thermostat/efr32/include/CHIPProjectConfig.h rename to examples/thermostat/silabs/efr32/include/CHIPProjectConfig.h diff --git a/examples/thermostat/efr32/include/SensorManager.h b/examples/thermostat/silabs/efr32/include/SensorManager.h similarity index 100% rename from examples/thermostat/efr32/include/SensorManager.h rename to examples/thermostat/silabs/efr32/include/SensorManager.h diff --git a/examples/thermostat/efr32/include/TemperatureManager.h b/examples/thermostat/silabs/efr32/include/TemperatureManager.h similarity index 100% rename from examples/thermostat/efr32/include/TemperatureManager.h rename to examples/thermostat/silabs/efr32/include/TemperatureManager.h diff --git a/examples/thermostat/efr32/include/ThermostatIcons.h b/examples/thermostat/silabs/efr32/include/ThermostatIcons.h similarity index 100% rename from examples/thermostat/efr32/include/ThermostatIcons.h rename to examples/thermostat/silabs/efr32/include/ThermostatIcons.h diff --git a/examples/thermostat/efr32/include/ThermostatUI.h b/examples/thermostat/silabs/efr32/include/ThermostatUI.h similarity index 100% rename from examples/thermostat/efr32/include/ThermostatUI.h rename to examples/thermostat/silabs/efr32/include/ThermostatUI.h diff --git a/examples/thermostat/efr32/src/AppTask.cpp b/examples/thermostat/silabs/efr32/src/AppTask.cpp similarity index 100% rename from examples/thermostat/efr32/src/AppTask.cpp rename to examples/thermostat/silabs/efr32/src/AppTask.cpp diff --git a/examples/thermostat/efr32/src/SensorManager.cpp b/examples/thermostat/silabs/efr32/src/SensorManager.cpp similarity index 100% rename from examples/thermostat/efr32/src/SensorManager.cpp rename to examples/thermostat/silabs/efr32/src/SensorManager.cpp diff --git a/examples/thermostat/efr32/src/TemperatureManager.cpp b/examples/thermostat/silabs/efr32/src/TemperatureManager.cpp similarity index 100% rename from examples/thermostat/efr32/src/TemperatureManager.cpp rename to examples/thermostat/silabs/efr32/src/TemperatureManager.cpp diff --git a/examples/thermostat/efr32/src/ThermostatUI.cpp b/examples/thermostat/silabs/efr32/src/ThermostatUI.cpp similarity index 100% rename from examples/thermostat/efr32/src/ThermostatUI.cpp rename to examples/thermostat/silabs/efr32/src/ThermostatUI.cpp diff --git a/examples/thermostat/efr32/src/ZclCallbacks.cpp b/examples/thermostat/silabs/efr32/src/ZclCallbacks.cpp similarity index 100% rename from examples/thermostat/efr32/src/ZclCallbacks.cpp rename to examples/thermostat/silabs/efr32/src/ZclCallbacks.cpp diff --git a/examples/thermostat/efr32/src/main.cpp b/examples/thermostat/silabs/efr32/src/main.cpp similarity index 100% rename from examples/thermostat/efr32/src/main.cpp rename to examples/thermostat/silabs/efr32/src/main.cpp diff --git a/examples/thermostat/silabs/efr32/third_party/connectedhomeip b/examples/thermostat/silabs/efr32/third_party/connectedhomeip new file mode 120000 index 00000000000000..59307833b4fee9 --- /dev/null +++ b/examples/thermostat/silabs/efr32/third_party/connectedhomeip @@ -0,0 +1 @@ +../../../../.. \ No newline at end of file