From bac89e038c555761d3e7aef751fb6028160463a2 Mon Sep 17 00:00:00 2001 From: Petru Lauric <81822411+plauric@users.noreply.github.com> Date: Wed, 13 Sep 2023 16:12:16 -0400 Subject: [PATCH] RVC app - add Python build wrapper support (#29210) * add Python build wrapper for RVC app * add rvc to list of all targets --- scripts/build/build/targets.py | 1 + scripts/build/builders/host.py | 6 ++++++ scripts/build/testdata/all_targets_linux_x64.txt | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 0414a7e820fce7..92d2eefd54f568 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -132,6 +132,7 @@ def BuildHostTarget(): TargetPart('contact-sensor', app=HostApp.CONTACT_SENSOR), TargetPart('dishwasher', app=HostApp.DISHWASHER), TargetPart('refrigerator', app=HostApp.REFRIGERATOR), + TargetPart('rvc', app=HostApp.RVC), ] if (HostBoard.NATIVE.PlatformName() == 'darwin'): diff --git a/scripts/build/builders/host.py b/scripts/build/builders/host.py index 4666e2d8e0b97a..01a9e771136032 100644 --- a/scripts/build/builders/host.py +++ b/scripts/build/builders/host.py @@ -70,6 +70,7 @@ class HostApp(Enum): CONTACT_SENSOR = auto() DISHWASHER = auto() REFRIGERATOR = auto() + RVC = auto() def ExamplePath(self): if self == HostApp.ALL_CLUSTERS: @@ -118,6 +119,8 @@ def ExamplePath(self): return 'dishwasher-app/linux' elif self == HostApp.REFRIGERATOR: return 'refrigerator-app/linux' + elif self == HostApp.RVC: + return 'rvc-app/linux' else: raise Exception('Unknown app type: %r' % self) @@ -203,6 +206,9 @@ def OutputNames(self): elif self == HostApp.REFRIGERATOR: yield 'refrigerator-app' yield 'refrigerator-app.map' + elif self == HostApp.RVC: + yield 'rvc-app' + yield 'rvc-app.map' else: raise Exception('Unknown app type: %r' % self) diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index 7e945289bcb21c..27cf157e4d6050 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -10,7 +10,7 @@ efr32-{brd4161a,brd4187c,brd4186c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,b esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-provider,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only] genio-lighting-app linux-fake-tests[-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuzz][-coverage][-dmalloc][-clang] -linux-{x64,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,java-matter-controller,minmdns,light,lock,shell,ota-provider,ota-requestor,simulated-app1,simulated-app2,python-bindings,tv-app,tv-casting-app,bridge,tests,chip-cert,address-resolve-tool,contact-sensor,dishwasher,refrigerator}[-nodeps][-platform-mdns][-minmdns-verbose][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuzz][-coverage][-dmalloc][-clang][-test][-rpc][-with-ui] +linux-{x64,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,java-matter-controller,minmdns,light,lock,shell,ota-provider,ota-requestor,simulated-app1,simulated-app2,python-bindings,tv-app,tv-casting-app,bridge,tests,chip-cert,address-resolve-tool,contact-sensor,dishwasher,refrigerator,rvc}[-nodeps][-platform-mdns][-minmdns-verbose][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuzz][-coverage][-dmalloc][-clang][-test][-rpc][-with-ui] linux-x64-efr32-test-runner[-clang] imx-{chip-tool,lighting-app,thermostat,all-clusters-app,all-clusters-minimal-app,ota-provider-app}[-release] infineon-psoc6-{lock,light,all-clusters,all-clusters-minimal}[-ota][-updateimage]