From 2893b279ea05b13359793a286463acd5e5cb3ce0 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 15:32:14 -0400 Subject: [PATCH 01/68] Starting to add some build target logic and unit tests --- scripts/build/build/target.py | 261 +++++++++++++++++++++++++++++ scripts/build/build/targets.py | 4 +- scripts/build/build/test_target.py | 81 +++++++++ 3 files changed, 345 insertions(+), 1 deletion(-) create mode 100644 scripts/build/build/target.py create mode 100755 scripts/build/build/test_target.py diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py new file mode 100644 index 00000000000000..51e3aa867ef8c9 --- /dev/null +++ b/scripts/build/build/target.py @@ -0,0 +1,261 @@ +# Copyright (c) 2022 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. + +# Build targets are generally of the form `target + modifiers` +# - `target` defines the platform-specific application to build. It is often +# in the form of `platform-board-app` but may be `platform-app` as well +# +# - `modifiers` are additional compilation options like disabling BLE, enabling +# coverage or other options that are generally passed into gn configurations +# +# Examples: +# - linux-x64-chip-tool: this is a 'chip-tool' build for a 64-bit linux +# - linux-x64-chip-tool-noble-coverage: a chip tool build with modifiers attached of +# "noble" and "coverage" +# - qpg-light: a 'light' app built for qpg +# - imx-thermostat-release: a 'thermostat` build for imx, with a `release` modifier applied +# +# Interpretation of a specific string of `a-b-c-d` is left up to the Builder/platform +# as there is no direct convention at this time that an application/variant may not contain +# a `-`. So `a-b-c-d` may for example mean any of: +# - platform 'a', application 'b', modifiers 'c' and 'd' +# - platform 'a', board 'b', application 'c-d' +# - platform 'a', application 'b', modifier 'c-d' +# - platform 'a', application 'b-c', modifier 'd' +# +# The only requirement of the build system is that a single string corresponds to a single +# combination of platform/board/app/modifier(s). This requirement is unenfornced in code +# but easy enough to follow when defining names for things: just don't reuse names between '-' + +import logging +import re + +from typing import Any, Optional +from dataclasses import dataclass + + +@dataclass(init=False) +class TargetPart: + # SubTarget/Modifier name + name: str + + # The build arguments to apply to a builder if this part is active + build_arguments: dict[str, Any] + + # Part should be included if and only if the final string MATCHES the + # given regular expression + only_if_re: Optional[re.Pattern] = None + + # Part should be included if and only if the final string DOES NOT match + # given regular expression + except_if_re: Optional[re.Pattern] = None + + def __init__(self, name, **kargs): + self.name = name + self.build_arguments = kargs + + + def OnlyIfRe(self, expr: str): + self.only_if_re = re.compile(expr) + return self + + def ExceptIfRe(self, expr: str): + self.except_if_re = re.compile(expr) + return self + + def Accept(self, full_input: str): + if self.except_if_re: + if self.except_if_re.search(full_input): + logging.warn(f"{self.name} does not support '{full_input}' due to rule EXCEPT IF '{self.except_if_re.pattern}'") + return False + + if self.only_if_re: + if not self.only_if_re.search(full_input): + logging.warn(f"{self.name} does not support '{full_input}' due to rule ONLY IF '{self.only_if_re.pattern}'") + return False + + return True + + +def _HasVariantPrefix(value: str, prefix: str): + """Checks if the given value is or starts with "-". + + This is useful when considering '-'-delimited strings, where a specific + prefix may either be the last element in the list of items or some first element + out of several. + + Returns: + None if no match or the remaining value if there is a match. + + Examples: + _HasVariantPrefix('foo', 'foo') # -> '' + _HasVariantPrefix('foo', 'bar') # -> None + _HasVariantPrefix('foo-bar', 'foo') # -> 'bar' + _HasVariantPrefix('foo-bar', 'bar') # -> None + _HasVariantPrefix('foo-bar-baz', 'foo') # -> 'bar-baz' + _HasVariantPrefix('foo-bar-baz', 'bar') # -> None + """ + +def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: list[list[TargetPart]], modifiers: list[TargetPart]): + """Given an input string, process through all the input rules and return + the underlying list of target parts for the input. + + Parameters: + full_input: the full input string, used for validity matching (except/only_if) + remaining_input: the remaining input to parse + fixed_targets: the remaining fixed targets left to match + modifiers: the modifiers left to match + """ + if not remaining_input: + if fixed_targets: + # String was not fully matched. Fixed thargets are required + return None + + # Fully parsed + return [] + + if fixed_targets: + # If fixed targets remain, we MUST match one of them + for target in fixed_targets[0]: + suffix = _HasVariantPrefix(remaining_input, target.name) + if suffix is None: + continue + + # see if match should be rejected. Done AFTER variant prefix detection so we + # can log if there are issues + if not target.Accept(full_input): + continue + + result = _StringIntoParts(full_input, suffix, fixed_targets[1:], modifiers) + if result: + return [target] + result + + # None of the variants matched + return None + + # Only modifiers left to process + # Process the modifiers one by one + for modifier in modifiers: + suffix = _HasVariantPrefix(remaining_input, target.name) + if suffix is None: + continue + + # see if match should be rejected. Done AFTER variant prefix detection so we + # can log if there are issues + if not target.Accept(full_input): + continue + + result = _StringIntoParts(full_input, suffix, fixed_targets[1:], filter(lambda x: x != modifier, modifiers)) + if result: + return [modifier] + result + + # Remaining input is not empty and we failed to match it + return None + + +class BuildTarget: + + def __init__(self, name, builder_class, **kwargs): + """ Sets up a new build tareget starting with the given builder class + and initial arguments + """ + self.name = name + self.builder_class = builder_class + self.create_kw_args = kwargs + + # a list of sub_targets for this builder + # sub-targets MUST be selected in some way. For example for esp32, we may + # have a format of esp32-{devkitc, m5stack}-{light,lock}: + # - esp32-m5stack-lock is OK + # - esp32-devkitc-light is OK + # - esp32-light is NOT ok + # - esp32-m5stack is NOT ok + self.fixed_targets: list[list[TargetPart]] = [] + + # a list of all available modifiers for this build target + # Modifiers can be combined in any way + self.modifiers: list[TargetPart] = [] + + def AppendFixedTargets(self, parts: list[TargetPart]): + """Append a list of potential targets/variants. + + Example: + + target = BuildTarget('linux', LinuxBuilder) + target.AppendFixedTargets([ + TargetPart(name='x64', board=HostBoard.X64), + TargetPart(name='x86', board=HostBoard.X86), + TargetPart(name='arm64', board=HostBoard.ARM64), + ]) + + target.AppendFixedTargets([ + TargetPart(name='light', app=HostApp.LIGHT), + TargetPart(name='lock', app=HostApp.LIGHT).ExceptIfRe("-arm64-"), + TargetPart(name='shell', app=HostApp.LIGHT).OnlyIfRe("-(x64|arm64)-"), + ]) + + The above will accept: + linux-x64-light + linux-x86-light + linux-arm64-light + linux-x64-lock + linux-x86-lock + linux-x64-shell + linux-arm64-shell + """ + self.fixed_targets.append(parts) + + + def AppendModifier(self, part: TargetPart): + """Appends a specific modifier to a build target. For example: + + target.AppendModifier(TargetParet(name='release', release=True)) + target.AppendModifier(TargetParet(name='clang', use_clang=True)) + target.AppendModifier(TargetParet(name='coverage', coverage=True).OnlyIfRe('-clang')) + + """ + self.modifiers.append(part) + + + def StringIntoTargetParts(self, value: str): + """Given an input string, process through all the input rules and return + the underlying list of target parts for the input. + """ + return _StringIntoParts(value, value, self.fixed_targets, self.modifiers) + + + def Create(self, name:str, runner, repository_path: str, output_prefix: str, + enable_flashbundle: bool): + + parts = self.StringIntoTargetParts(name) + + if not parts: + raise Exception(f"Failed to build variant '{name}'") + + kargs = {} + for part in parts: + kargs.update(part.build_arguments) + + builder = self.builder_class(repository_path, runner=runner, **kargs) + builder.target = self + builder.identifier = name + builder.output_dir = os.path.join(output_prefix, name) + builder.chip_dir = repository_path + builder.enable_flashbundle(enable_flashbundle) + + return builder + + + + diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 033d6fe758ad1f..cea5aeb04aba6d 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -13,8 +13,9 @@ # limitations under the License. import os +import re from itertools import combinations -from typing import List +from typing import List, Any, Optional from builders.ameba import AmebaApp, AmebaBoard, AmebaBuilder from builders.android import AndroidApp, AndroidBoard, AndroidBuilder @@ -37,6 +38,7 @@ from builders.genio import GenioApp, GenioBuilder + class Target: """Represents a build target: Has a name identifier plus parameters on how to build it (what diff --git a/scripts/build/build/test_target.py b/scripts/build/build/test_target.py new file mode 100755 index 00000000000000..e92f33772cf041 --- /dev/null +++ b/scripts/build/build/test_target.py @@ -0,0 +1,81 @@ +#!/usr/bin/env python +# Copyright (c) 2022 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 unittest + +try: + from build.target import * +except: + import sys + import os + + sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) + from build.target import * + + +class FakeBuilder: + def __init__(self, **kargs): + self.kargs = kargs + + +class TestGlobMatcher(unittest.TestCase): + + def test_one_fixed_target(self): + + t = BuildTarget('fake', FakeBuilder) + t.AppendFixedTargets([ + TargetPart('foo', foo=1), + TargetPart('bar', bar=2), + ]) + + self.assertIsNotNone(t.StringIntoTargetParts('foo')) + self.assertIsNotNone(t.StringIntoTargetParts('bar')) + self.assertIsNone(t.StringIntoTargetParts('baz')) + + + def test_fixed_targets(self): + + t = BuildTarget('fake', FakeBuilder) + t.AppendFixedTargets([ + TargetPart('foo', foo=1), + TargetPart('bar', bar=2), + ]) + t.AppendFixedTargets([ + TargetPart('1', a=1), + TargetPart('2', a=2), + TargetPart('3', a=3), + ]) + t.AppendFixedTargets([ + TargetPart('1', b=1), + TargetPart('2', b=2), + TargetPart('3', b=3), + ]) + + self.assertIsNotNone(t.StringIntoTargetParts('foo-1-2')) + self.assertIsNotNone(t.StringIntoTargetParts('foo-2-3')) + self.assertIsNotNone(t.StringIntoTargetParts('bar-3-1')) + self.assertIsNone(t.StringIntoTargetParts('bar-1')) + self.assertIsNone(t.StringIntoTargetParts('baz-1-2')) + self.assertIsNone(t.StringIntoTargetParts('foo-bar')) + self.assertIsNone(t.StringIntoTargetParts('1-2')) + self.assertIsNone(t.StringIntoTargetParts('foo')) + self.assertIsNone(t.StringIntoTargetParts('1-2-3')) + + + + pass + +if __name__ == '__main__': + unittest.main() From 77fa84dfd83cb7285e6100d16aba493dbdcede30 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 15:32:33 -0400 Subject: [PATCH 02/68] Restyle --- scripts/build/build/target.py | 19 ++++++------------- scripts/build/build/targets.py | 1 - scripts/build/build/test_target.py | 4 +--- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index 51e3aa867ef8c9..64a34781e97ef4 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -27,7 +27,7 @@ # - imx-thermostat-release: a 'thermostat` build for imx, with a `release` modifier applied # # Interpretation of a specific string of `a-b-c-d` is left up to the Builder/platform -# as there is no direct convention at this time that an application/variant may not contain +# as there is no direct convention at this time that an application/variant may not contain # a `-`. So `a-b-c-d` may for example mean any of: # - platform 'a', application 'b', modifiers 'c' and 'd' # - platform 'a', board 'b', application 'c-d' @@ -65,7 +65,6 @@ def __init__(self, name, **kargs): self.name = name self.build_arguments = kargs - def OnlyIfRe(self, expr: str): self.only_if_re = re.compile(expr) return self @@ -107,6 +106,7 @@ def _HasVariantPrefix(value: str, prefix: str): _HasVariantPrefix('foo-bar-baz', 'bar') # -> None """ + def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: list[list[TargetPart]], modifiers: list[TargetPart]): """Given an input string, process through all the input rules and return the underlying list of target parts for the input. @@ -132,7 +132,7 @@ def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: list[ if suffix is None: continue - # see if match should be rejected. Done AFTER variant prefix detection so we + # see if match should be rejected. Done AFTER variant prefix detection so we # can log if there are issues if not target.Accept(full_input): continue @@ -151,10 +151,10 @@ def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: list[ if suffix is None: continue - # see if match should be rejected. Done AFTER variant prefix detection so we + # see if match should be rejected. Done AFTER variant prefix detection so we # can log if there are issues if not target.Accept(full_input): - continue + continue result = _StringIntoParts(full_input, suffix, fixed_targets[1:], filter(lambda x: x != modifier, modifiers)) if result: @@ -216,7 +216,6 @@ def AppendFixedTargets(self, parts: list[TargetPart]): """ self.fixed_targets.append(parts) - def AppendModifier(self, part: TargetPart): """Appends a specific modifier to a build target. For example: @@ -227,15 +226,13 @@ def AppendModifier(self, part: TargetPart): """ self.modifiers.append(part) - def StringIntoTargetParts(self, value: str): """Given an input string, process through all the input rules and return the underlying list of target parts for the input. """ return _StringIntoParts(value, value, self.fixed_targets, self.modifiers) - - def Create(self, name:str, runner, repository_path: str, output_prefix: str, + def Create(self, name: str, runner, repository_path: str, output_prefix: str, enable_flashbundle: bool): parts = self.StringIntoTargetParts(name) @@ -255,7 +252,3 @@ def Create(self, name:str, runner, repository_path: str, output_prefix: str, builder.enable_flashbundle(enable_flashbundle) return builder - - - - diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index cea5aeb04aba6d..f6c69d748af9e6 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -38,7 +38,6 @@ from builders.genio import GenioApp, GenioBuilder - class Target: """Represents a build target: Has a name identifier plus parameters on how to build it (what diff --git a/scripts/build/build/test_target.py b/scripts/build/build/test_target.py index e92f33772cf041..08caaca738fd9c 100755 --- a/scripts/build/build/test_target.py +++ b/scripts/build/build/test_target.py @@ -44,7 +44,6 @@ def test_one_fixed_target(self): self.assertIsNotNone(t.StringIntoTargetParts('bar')) self.assertIsNone(t.StringIntoTargetParts('baz')) - def test_fixed_targets(self): t = BuildTarget('fake', FakeBuilder) @@ -73,9 +72,8 @@ def test_fixed_targets(self): self.assertIsNone(t.StringIntoTargetParts('foo')) self.assertIsNone(t.StringIntoTargetParts('1-2-3')) - - pass + if __name__ == '__main__': unittest.main() From 45650a4adcf5628f2e67eabd61046828146bda01 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 15:39:03 -0400 Subject: [PATCH 03/68] make basic unit tests pass --- scripts/build/build/target.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index 64a34781e97ef4..ab5fd6fa0f7706 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -105,6 +105,11 @@ def _HasVariantPrefix(value: str, prefix: str): _HasVariantPrefix('foo-bar-baz', 'foo') # -> 'bar-baz' _HasVariantPrefix('foo-bar-baz', 'bar') # -> None """ + if value == prefix: + return '' + + if value.startswith(prefix + '-'): + return value[len(prefix)+1:] def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: list[list[TargetPart]], modifiers: list[TargetPart]): @@ -138,7 +143,7 @@ def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: list[ continue result = _StringIntoParts(full_input, suffix, fixed_targets[1:], modifiers) - if result: + if result is not None: return [target] + result # None of the variants matched @@ -157,7 +162,7 @@ def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: list[ continue result = _StringIntoParts(full_input, suffix, fixed_targets[1:], filter(lambda x: x != modifier, modifiers)) - if result: + if result is not None: return [modifier] + result # Remaining input is not empty and we failed to match it From b5f9c4245b9fcad2e440c3a3c1dfdd7a081c16d8 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 15:44:34 -0400 Subject: [PATCH 04/68] More unit tests --- scripts/build/build/target.py | 8 ++++---- scripts/build/build/test_target.py | 33 +++++++++++++++++++++++++++--- 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index ab5fd6fa0f7706..7bb9db6db6951e 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -76,12 +76,12 @@ def ExceptIfRe(self, expr: str): def Accept(self, full_input: str): if self.except_if_re: if self.except_if_re.search(full_input): - logging.warn(f"{self.name} does not support '{full_input}' due to rule EXCEPT IF '{self.except_if_re.pattern}'") + logging.warning(f"{self.name} does not support '{full_input}' due to rule EXCEPT IF '{self.except_if_re.pattern}'") return False if self.only_if_re: if not self.only_if_re.search(full_input): - logging.warn(f"{self.name} does not support '{full_input}' due to rule ONLY IF '{self.only_if_re.pattern}'") + logging.warning(f"{self.name} does not support '{full_input}' due to rule ONLY IF '{self.only_if_re.pattern}'") return False return True @@ -152,13 +152,13 @@ def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: list[ # Only modifiers left to process # Process the modifiers one by one for modifier in modifiers: - suffix = _HasVariantPrefix(remaining_input, target.name) + suffix = _HasVariantPrefix(remaining_input, modifier.name) if suffix is None: continue # see if match should be rejected. Done AFTER variant prefix detection so we # can log if there are issues - if not target.Accept(full_input): + if not modifier.Accept(full_input): continue result = _StringIntoParts(full_input, suffix, fixed_targets[1:], filter(lambda x: x != modifier, modifiers)) diff --git a/scripts/build/build/test_target.py b/scripts/build/build/test_target.py index 08caaca738fd9c..a07481ef0b4633 100755 --- a/scripts/build/build/test_target.py +++ b/scripts/build/build/test_target.py @@ -33,7 +33,6 @@ def __init__(self, **kargs): class TestGlobMatcher(unittest.TestCase): def test_one_fixed_target(self): - t = BuildTarget('fake', FakeBuilder) t.AppendFixedTargets([ TargetPart('foo', foo=1), @@ -44,8 +43,8 @@ def test_one_fixed_target(self): self.assertIsNotNone(t.StringIntoTargetParts('bar')) self.assertIsNone(t.StringIntoTargetParts('baz')) - def test_fixed_targets(self): + def test_fixed_targets(self): t = BuildTarget('fake', FakeBuilder) t.AppendFixedTargets([ TargetPart('foo', foo=1), @@ -72,7 +71,35 @@ def test_fixed_targets(self): self.assertIsNone(t.StringIntoTargetParts('foo')) self.assertIsNone(t.StringIntoTargetParts('1-2-3')) - pass + def test_modifiers(self): + t = BuildTarget('fake', FakeBuilder) + t.AppendFixedTargets([ + TargetPart('foo', foo=1), + TargetPart('bar', bar=2), + ]) + + t.AppendFixedTargets([ + TargetPart('one', value=1), + TargetPart('two', value=2), + ]) + + t.AppendModifier(TargetPart('m1', m=1).ExceptIfRe('-m2')); + t.AppendModifier(TargetPart('m2', m=2).ExceptIfRe('-m1')); + t.AppendModifier(TargetPart('x1', x=1)) + t.AppendModifier(TargetPart('y1', x=1).OnlyIfRe('foo-')) + + self.assertIsNotNone(t.StringIntoTargetParts('foo-one')) + self.assertIsNotNone(t.StringIntoTargetParts('bar-one-m1')) + self.assertIsNotNone(t.StringIntoTargetParts('foo-one-m2')) + self.assertIsNotNone(t.StringIntoTargetParts('bar-one-x1')) + self.assertIsNotNone(t.StringIntoTargetParts('foo-one-y1')) + self.assertIsNotNone(t.StringIntoTargetParts('foo-one-m1-y1')) + + self.assertIsNone(t.StringIntoTargetParts('bar-one-m1-y1')) + self.assertIsNone(t.StringIntoTargetParts('foo-one-m1-m2')) + self.assertIsNone(t.StringIntoTargetParts('bar-m1')) + self.assertIsNone(t.StringIntoTargetParts('foo-x1-y1')) + if __name__ == '__main__': From b4188d0089f3ce0ba6091088b06b49fab1dbfc0f Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 15:45:57 -0400 Subject: [PATCH 05/68] Restyle --- scripts/build/build/test_target.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/build/build/test_target.py b/scripts/build/build/test_target.py index a07481ef0b4633..09b60fc856a4ba 100755 --- a/scripts/build/build/test_target.py +++ b/scripts/build/build/test_target.py @@ -43,7 +43,6 @@ def test_one_fixed_target(self): self.assertIsNotNone(t.StringIntoTargetParts('bar')) self.assertIsNone(t.StringIntoTargetParts('baz')) - def test_fixed_targets(self): t = BuildTarget('fake', FakeBuilder) t.AppendFixedTargets([ @@ -83,8 +82,8 @@ def test_modifiers(self): TargetPart('two', value=2), ]) - t.AppendModifier(TargetPart('m1', m=1).ExceptIfRe('-m2')); - t.AppendModifier(TargetPart('m2', m=2).ExceptIfRe('-m1')); + t.AppendModifier(TargetPart('m1', m=1).ExceptIfRe('-m2')) + t.AppendModifier(TargetPart('m2', m=2).ExceptIfRe('-m1')) t.AppendModifier(TargetPart('x1', x=1)) t.AppendModifier(TargetPart('y1', x=1).OnlyIfRe('foo-')) @@ -101,6 +100,5 @@ def test_modifiers(self): self.assertIsNone(t.StringIntoTargetParts('foo-x1-y1')) - if __name__ == '__main__': unittest.main() From ec259c2211db46879514a94d51baf9fc1a6b1267 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 15:53:24 -0400 Subject: [PATCH 06/68] Update prefix logic: use the builder prefix as well --- scripts/build/build/target.py | 22 ++++++++++- scripts/build/build/test_target.py | 62 ++++++++++++++++++------------ 2 files changed, 58 insertions(+), 26 deletions(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index 7bb9db6db6951e..7cc503f322b443 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -231,11 +231,31 @@ def AppendModifier(self, part: TargetPart): """ self.modifiers.append(part) + def HumanString(self): + """Prints out the human-readable string of the available variants and modifiers: + + like: + + foo-{bar,baz}[-modifier1][modifier2][modifier3] + """ + result = self.name + for fixed in self.fixed_targets: + result += '-{' + ",".join(map(lambda x: x.name, fixed)) + '}' + + for modifier in self.modifiers: + result += f"[-{modifier.name}]" + + return result + def StringIntoTargetParts(self, value: str): """Given an input string, process through all the input rules and return the underlying list of target parts for the input. """ - return _StringIntoParts(value, value, self.fixed_targets, self.modifiers) + suffix = _HasVariantPrefix(value, self.name) + if not suffix: + return None + + return _StringIntoParts(value, suffix, self.fixed_targets, self.modifiers) def Create(self, name: str, runner, repository_path: str, output_prefix: str, enable_flashbundle: bool): diff --git a/scripts/build/build/test_target.py b/scripts/build/build/test_target.py index 09b60fc856a4ba..75275dd740cc32 100755 --- a/scripts/build/build/test_target.py +++ b/scripts/build/build/test_target.py @@ -39,9 +39,11 @@ def test_one_fixed_target(self): TargetPart('bar', bar=2), ]) - self.assertIsNotNone(t.StringIntoTargetParts('foo')) - self.assertIsNotNone(t.StringIntoTargetParts('bar')) - self.assertIsNone(t.StringIntoTargetParts('baz')) + self.assertEqual(t.HumanString(), "fake-{foo,bar}") + + self.assertIsNotNone(t.StringIntoTargetParts('fake-foo')) + self.assertIsNotNone(t.StringIntoTargetParts('fake-bar')) + self.assertIsNone(t.StringIntoTargetParts('fake-baz')) def test_fixed_targets(self): t = BuildTarget('fake', FakeBuilder) @@ -60,15 +62,20 @@ def test_fixed_targets(self): TargetPart('3', b=3), ]) - self.assertIsNotNone(t.StringIntoTargetParts('foo-1-2')) - self.assertIsNotNone(t.StringIntoTargetParts('foo-2-3')) - self.assertIsNotNone(t.StringIntoTargetParts('bar-3-1')) - self.assertIsNone(t.StringIntoTargetParts('bar-1')) - self.assertIsNone(t.StringIntoTargetParts('baz-1-2')) - self.assertIsNone(t.StringIntoTargetParts('foo-bar')) - self.assertIsNone(t.StringIntoTargetParts('1-2')) - self.assertIsNone(t.StringIntoTargetParts('foo')) - self.assertIsNone(t.StringIntoTargetParts('1-2-3')) + self.assertEqual( + t.HumanString(), + "fake-{foo,bar}-{1,2,3}-{1,2,3}" + ) + + self.assertIsNotNone(t.StringIntoTargetParts('fake-foo-1-2')) + self.assertIsNotNone(t.StringIntoTargetParts('fake-foo-2-3')) + self.assertIsNotNone(t.StringIntoTargetParts('fake-bar-3-1')) + self.assertIsNone(t.StringIntoTargetParts('fake-bar-1')) + self.assertIsNone(t.StringIntoTargetParts('fake-baz-1-2')) + self.assertIsNone(t.StringIntoTargetParts('fake-foo-bar')) + self.assertIsNone(t.StringIntoTargetParts('fake-1-2')) + self.assertIsNone(t.StringIntoTargetParts('fake-foo')) + self.assertIsNone(t.StringIntoTargetParts('fake-1-2-3')) def test_modifiers(self): t = BuildTarget('fake', FakeBuilder) @@ -85,19 +92,24 @@ def test_modifiers(self): t.AppendModifier(TargetPart('m1', m=1).ExceptIfRe('-m2')) t.AppendModifier(TargetPart('m2', m=2).ExceptIfRe('-m1')) t.AppendModifier(TargetPart('x1', x=1)) - t.AppendModifier(TargetPart('y1', x=1).OnlyIfRe('foo-')) - - self.assertIsNotNone(t.StringIntoTargetParts('foo-one')) - self.assertIsNotNone(t.StringIntoTargetParts('bar-one-m1')) - self.assertIsNotNone(t.StringIntoTargetParts('foo-one-m2')) - self.assertIsNotNone(t.StringIntoTargetParts('bar-one-x1')) - self.assertIsNotNone(t.StringIntoTargetParts('foo-one-y1')) - self.assertIsNotNone(t.StringIntoTargetParts('foo-one-m1-y1')) - - self.assertIsNone(t.StringIntoTargetParts('bar-one-m1-y1')) - self.assertIsNone(t.StringIntoTargetParts('foo-one-m1-m2')) - self.assertIsNone(t.StringIntoTargetParts('bar-m1')) - self.assertIsNone(t.StringIntoTargetParts('foo-x1-y1')) + t.AppendModifier(TargetPart('y1', x=1).OnlyIfRe('-foo-')) + + self.assertEqual( + t.HumanString(), + "fake-{foo,bar}-{one,two}[-m1][-m2][-x1][-y1]" + ) + + self.assertIsNotNone(t.StringIntoTargetParts('fake-foo-one')) + self.assertIsNotNone(t.StringIntoTargetParts('fake-bar-one-m1')) + self.assertIsNotNone(t.StringIntoTargetParts('fake-foo-one-m2')) + self.assertIsNotNone(t.StringIntoTargetParts('fake-bar-one-x1')) + self.assertIsNotNone(t.StringIntoTargetParts('fake-foo-one-y1')) + self.assertIsNotNone(t.StringIntoTargetParts('fake-foo-one-m1-y1')) + + self.assertIsNone(t.StringIntoTargetParts('fake-bar-one-m1-y1')) + self.assertIsNone(t.StringIntoTargetParts('fake-foo-one-m1-m2')) + self.assertIsNone(t.StringIntoTargetParts('fake-bar-m1')) + self.assertIsNone(t.StringIntoTargetParts('fake-foo-x1-y1')) if __name__ == '__main__': From b1643cc22401dfecdb2d84cea34d7a13cad00820 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 16:25:12 -0400 Subject: [PATCH 07/68] Prepare to move build targets for linux --- scripts/build/build/targets.py | 173 +++++++++++++-------------------- 1 file changed, 65 insertions(+), 108 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index f6c69d748af9e6..fae658fcc1a924 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -17,6 +17,8 @@ from itertools import combinations from typing import List, Any, Optional +from .target import BuildTarget, TargetPart + from builders.ameba import AmebaApp, AmebaBoard, AmebaBuilder from builders.android import AndroidApp, AndroidBoard, AndroidBuilder from builders.cc13x2x7_26x2x7 import cc13x2x7_26x2x7App, cc13x2x7_26x2x7Builder @@ -232,122 +234,74 @@ def AllVariants(self): yield variant_target -def HostTargets(): - target = Target(HostBoard.NATIVE.PlatformName(), HostBuilder) - target_native = target.Extend(HostBoard.NATIVE.BoardName(), board=HostBoard.NATIVE) - - targets = [target_native] +def BuildHostTarget(): + native_board_name = HostBoard.NATIVE.BoardName() + cross_compile = (HostBoard.NATIVE.PlatformName() == 'linux') and (native_board_name != HostBoard.ARM64.BoardName()) - # x64 linux supports cross compile - cross_compile = (HostBoard.NATIVE.PlatformName() == 'linux') and (HostBoard.NATIVE.BoardName() != HostBoard.ARM64.BoardName()) - if cross_compile: - targets.append(target.Extend('arm64-clang', board=HostBoard.ARM64, use_clang=True)) + target = BuildTarget(native_board_name, HostBuilder) - app_targets = [] - - # Don't cross compile some builds - app_targets.append( - target_native.Extend('rpc-console', app=HostApp.RPC_CONSOLE)) - app_targets.append( - target_native.Extend('nl-test-runner', app=HostApp.NL_TEST_RUNNER)) - - for target in targets: - app_targets.append(target.Extend( - 'all-clusters', app=HostApp.ALL_CLUSTERS)) - app_targets.append(target.Extend( - 'all-clusters-minimal', app=HostApp.ALL_CLUSTERS_MINIMAL)) - if (HostBoard.NATIVE.PlatformName() == 'darwin'): - app_targets.append(target.Extend( - 'darwin-framework-tool', app=HostApp.CHIP_TOOL_DARWIN)) - app_targets.append(target.Extend('chip-tool', app=HostApp.CHIP_TOOL)) - app_targets.append(target.Extend('thermostat', app=HostApp.THERMOSTAT)) - app_targets.append(target.Extend('minmdns', app=HostApp.MIN_MDNS)) - app_targets.append(target.Extend('light', app=HostApp.LIGHT)) - app_targets.append(target.Extend('light-rpc', app=HostApp.LIGHT, enable_rpcs=True)) - app_targets.append(target.Extend('lock', app=HostApp.LOCK)) - app_targets.append(target.Extend('shell', app=HostApp.SHELL)) - app_targets.append(target.Extend( - 'ota-provider', app=HostApp.OTA_PROVIDER, enable_ble=False)) - app_targets.append(target.Extend( - 'ota-requestor', app=HostApp.OTA_REQUESTOR, enable_ble=False)) - app_targets.append(target.Extend('python-bindings', app=HostApp.PYTHON_BINDINGS)) - app_targets.append(target.Extend('tv-app', app=HostApp.TV_APP)) - app_targets.append(target.Extend('tv-casting-app', app=HostApp.TV_CASTING)) - app_targets.append(target.Extend('bridge', app=HostApp.BRIDGE)) - app_targets.append(target.Extend('dynamic-bridge', app=HostApp.DYNAMIC_BRIDGE)) - - nodeps_args = dict(enable_ble=False, enable_wifi=False, enable_thread=False, - crypto_library=HostCryptoLibrary.MBEDTLS, use_clang=True) - app_targets.append(target.Extend('chip-tool-nodeps', app=HostApp.CHIP_TOOL, **nodeps_args)) - app_targets.append(target.Extend('all-clusters-app-nodeps', app=HostApp.ALL_CLUSTERS, **nodeps_args)) - app_targets.append(target.Extend('ota-provider-nodeps', app=HostApp.OTA_PROVIDER, **nodeps_args)) - app_targets.append(target.Extend('ota-requestor-nodeps', app=HostApp.OTA_REQUESTOR, **nodeps_args)) - - builder = VariantBuilder() + board_parts = [ + TargetPart(native_board_name, board=HostBoard.NATIVE), + TargetPart('fake', board=HostBoard.FAKE), + ] - # Possible build variants. Note that number of potential - # builds is exponential here - builder.AppendVariant(name="libnl", validator=AcceptNameWithSubstrings( - ['-minmdns']), minmdns_address_policy="libnl"), - builder.AppendVariant(name="same-event-loop", validator=AcceptNameWithSubstrings( - ['-chip-tool', '-darwin-framework-tool']), separate_event_loop=False), - builder.AppendVariant(name="no-interactive", validator=AcceptNameWithSubstrings( - ['-chip-tool']), interactive_mode=False), - builder.AppendVariant(name="ipv6only", enable_ipv4=False), - builder.AppendVariant(name="no-ble", enable_ble=False), - builder.AppendVariant(name="no-wifi", enable_wifi=False), - builder.AppendVariant(name="no-thread", enable_thread=False), - builder.AppendVariant(name="mbedtls", conflicts=['boringssl'], crypto_library=HostCryptoLibrary.MBEDTLS), - builder.AppendVariant(name="boringssl", conflicts=['mbedtls'], crypto_library=HostCryptoLibrary.BORINGSSL), - builder.AppendVariant(name="tsan", conflicts=['asan'], use_tsan=True), - builder.AppendVariant(name="asan", conflicts=['tsan'], use_asan=True), - builder.AppendVariant(name="libfuzzer", requires=[ - "clang"], use_libfuzzer=True), if cross_compile: - builder.AppendVariant(name="clang", use_clang=True, validator=RejectNameWithSubstrings( - ['arm64'] - )), - else: - builder.AppendVariant(name="clang", use_clang=True) - - builder.AppendVariant(name="test", extra_tests=True), - - builder.WhitelistVariantNameForGlob('ipv6only') - - for target in app_targets: - if ('-rpc-console' in target.name) or ('-python-bindings' in target.name) or ('nl-test-runner' in target.name): - # Single-variant builds - yield target - else: - builder.targets.append(target) + board_parts.append(TargetPart('arm64', board=HostBoard.ARM64).OnlyIfRe('-clang')) + + target.AppendFixedTargets(board_parts) + + # Add all the applications + app_parts = [ + TargetPart('rpc-console', app=HostApp.RPC_CONSOLE).OnlyIfRe(f'{native_board_name}-'), + TargetPart('nl-test-runner', app=HostApp.NL_TEST_RUNNER).OnlyIfRe(f'{native_board_name}-'), + TargetPart('all-clusters', app=HostApp.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', app=HostApp.ALL_CLUSTERS), + TargetPart('chip-tool', app=HostApp.CHIP_TOOL), + TargetPart('thermostat', app=HostApp.THERMOSTAT), + TargetPart('minmdns', app=HostApp.MIN_MDNS), + TargetPart('light', app=HostApp.LIGHT), + TargetPart('light-rpc', app=HostApp.LIGHT, enable_rpcs=True), + TargetPart('lock', app=HostApp.LOCK), + TargetPart('shell', app=HostApp.SHELL), + TargetPart('ota-provider', app=HostApp.OTA_PROVIDER, enable_ble=False), + TargetPart('ota-requestor', app=HostApp.OTA_REQUESTOR, enable_ble=False), + TargetPart('python-bindings', app=HostApp.PYTHON_BINDINGS), + TargetPart('tv-app', app=HostApp.TV_APP), + TargetPart('tv-casting-app', app=HostApp.TV_CASTING), + TargetPart('bridge', app=HostApp.BRIDGE), + TargetPart('dynamic-bridge', app=HostApp.DYNAMIC_BRIDGE), + TargetPart('tests', app=HostApp.TESTS), + TargetPart('chip-cert', app=HostApp.CERT_TOOL), + TargetPart('address-resolve-tool', app=HostApp.ADDRESS_RESOLVE), + TargetPart('tests', app=HostApp.TESTS, extra_tests=True), + ] - for target in builder.AllVariants(): - yield target + if (HostBoard.NATIVE.PlatformName() == 'darwin'): + app_parts.append(TargetPart('darwin-framework-tool', app=HostApp.CHIP_TOOL_DARWIN) ) - # limited subset for coverage - yield target_native.Extend('all-clusters-coverage', app=HostApp.ALL_CLUSTERS, use_coverage=True) - yield target_native.Extend('chip-tool-coverage', app=HostApp.CHIP_TOOL, use_coverage=True) + target.AppendFixedTargets(app_parts) - # Without extra build variants - yield target_native.Extend('chip-cert', app=HostApp.CERT_TOOL) - yield target_native.Extend('address-resolve-tool', app=HostApp.ADDRESS_RESOLVE) - yield target_native.Extend('address-resolve-tool-clang', app=HostApp.ADDRESS_RESOLVE, - use_clang=True).GlobBlacklist("Reduce default build variants") - yield target_native.Extend('address-resolve-tool-platform-mdns', app=HostApp.ADDRESS_RESOLVE, - use_platform_mdns=True).GlobBlacklist("Reduce default build variants") - yield target_native.Extend('address-resolve-tool-platform-mdns-ipv6only', app=HostApp.ADDRESS_RESOLVE, - use_platform_mdns=True, enable_ipv4=False).GlobBlacklist("Reduce default build variants") + target.AppendModifier( + TargetPart('nodeps', enable_ble=False, enable_wifi=False, enable_thread=False, crypto_library=HostCryptoLibrary.MBEDTLS, use_clang=True).ExceptIfRe('-(clang|noble|boringssl|mbedtls)') + ) - yield target_native.Extend('tests', app=HostApp.TESTS) - yield target_native.Extend('tests-mbedtls', app=HostApp.TESTS, crypto_library=HostCryptoLibrary.MBEDTLS).GlobBlacklist("Non-default test") - yield target_native.Extend('tests-boringssl', app=HostApp.TESTS, crypto_library=HostCryptoLibrary.BORINGSSL).GlobBlacklist("Non-default test") - yield target_native.Extend('tests-coverage', app=HostApp.TESTS, use_coverage=True).GlobBlacklist("Non-default test") - yield target_native.Extend('tests-clang', app=HostApp.TESTS, use_clang=True).GlobBlacklist("Non-default test") - yield target_native.Extend('tests-clang-asan', app=HostApp.TESTS, use_clang=True, use_asan=True).GlobBlacklist("Non-default test") - yield target_native.Extend('tests-dmalloc', app=HostApp.TESTS, use_dmalloc=True).GlobBlacklist("Non-default test") + target.AppendModifier(TargetPart('libnl', minmdns_address_policy="libnl").OnlyIfRe('-minmdns')) + target.AppendModifier(TargetPart('same-event-loop', separate_event_loop=False).OnlyIfRe('-(chip-tool|darwin-framework-tool)')) + target.AppendModifier(TargetPart('no-interactive', interactive_mode=False).OnlyIfRe('-chip-tool')) + target.AppendModifier(TargetPart("ipv6only", enable_ipv4=False)) + target.AppendModifier(TargetPart("no-ble", enable_ble=False)) + target.AppendModifier(TargetPart("no-wifi", enable_wifi=False)) + target.AppendModifier(TargetPart("no-thread", enable_thread=False)) + target.AppendModifier(TargetPart("mbedtls", crypto_library=HostCryptoLibrary.MBEDTLS).ExceptIfRe('-mbedtls')) + target.AppendModifier(TargetPart("boringssl", crypto_library=HostCryptoLibrary.BORINGSSL).ExceptIfRe('-boringssl')) + target.AppendModifier(TargetPart("asan", use_asan=True).ExceptIfRe("-tsan")) + target.AppendModifier(TargetPart("tsan", use_tsan=True).ExceptIfRe("-asan")) + target.AppendModifier(TargetPart("libfuzzer", use_tsan=True).OnlyIfRe("-clang")) + target.AppendModifier(TargetPart('coverage', use_coverage=True).OnlyIfRe('-(chip-tool|all-clusters)')) + target.AppendModifier(TargetPart('dmalloc', use_dmalloc=True)) + target.AppendModifier(TargetPart('clang', use_clang=True)) - test_target = Target(HostBoard.NATIVE.PlatformName(), HostBuilder) - yield test_target.Extend(HostBoard.FAKE.BoardName() + '-tests', board=HostBoard.FAKE, app=HostApp.TESTS) + return target def Esp32Targets(): @@ -660,11 +614,14 @@ def GenioTargets(): yield target.Extend('lighting-app', app=GenioApp.LIGHT) +BUILD_TARGETS = [ + BuildHostTarget(), +] ALL = [] target_generators = [ - HostTargets(), + #HostTargets(), Esp32Targets(), Efr32Targets(), NrfTargets(), From 13bb846ad5ba5103262bc3f08d22cd041edd90b5 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:07:32 -0400 Subject: [PATCH 08/68] More conversion tests --- scripts/build/build/targets.py | 163 +++++++++++++++++---------------- 1 file changed, 85 insertions(+), 78 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index fae658fcc1a924..c1b0a20dddcd06 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -304,50 +304,37 @@ def BuildHostTarget(): return target -def Esp32Targets(): - esp32_target = Target('esp32', Esp32Builder) - - yield esp32_target.Extend('m5stack-all-clusters', board=Esp32Board.M5Stack, app=Esp32App.ALL_CLUSTERS) - yield esp32_target.Extend('m5stack-all-clusters-ipv6only', board=Esp32Board.M5Stack, app=Esp32App.ALL_CLUSTERS, - enable_ipv4=False) - yield esp32_target.Extend('m5stack-all-clusters-rpc', board=Esp32Board.M5Stack, app=Esp32App.ALL_CLUSTERS, - enable_rpcs=True) - yield esp32_target.Extend('m5stack-all-clusters-rpc-ipv6only', board=Esp32Board.M5Stack, app=Esp32App.ALL_CLUSTERS, - enable_rpcs=True, enable_ipv4=False) - - yield esp32_target.Extend('m5stack-ota-requestor', board=Esp32Board.M5Stack, app=Esp32App.OTA_REQUESTOR) - yield esp32_target.Extend('m5stack-ota-requestor-rpc', board=Esp32Board.M5Stack, app=Esp32App.OTA_REQUESTOR, - enable_rpcs=True) - - yield esp32_target.Extend('c3devkit-all-clusters', board=Esp32Board.C3DevKit, app=Esp32App.ALL_CLUSTERS) - - yield esp32_target.Extend('m5stack-all-clusters-minimal', board=Esp32Board.M5Stack, app=Esp32App.ALL_CLUSTERS_MINIMAL) - yield esp32_target.Extend('m5stack-all-clusters-minimal-ipv6only', board=Esp32Board.M5Stack, app=Esp32App.ALL_CLUSTERS_MINIMAL, - enable_ipv4=False) - yield esp32_target.Extend('m5stack-all-clusters-minimal-rpc', board=Esp32Board.M5Stack, app=Esp32App.ALL_CLUSTERS_MINIMAL, - enable_rpcs=True) - yield esp32_target.Extend('m5stack-all-clusters-minimal-rpc-ipv6only', board=Esp32Board.M5Stack, app=Esp32App.ALL_CLUSTERS_MINIMAL, - enable_rpcs=True, enable_ipv4=False) - - yield esp32_target.Extend('c3devkit-all-clusters-minimal', board=Esp32Board.C3DevKit, app=Esp32App.ALL_CLUSTERS_MINIMAL) - - devkitc = esp32_target.Extend('devkitc', board=Esp32Board.DevKitC) - - yield devkitc.Extend('all-clusters', app=Esp32App.ALL_CLUSTERS) - yield devkitc.Extend('all-clusters-ipv6only', app=Esp32App.ALL_CLUSTERS, enable_ipv4=False) - yield devkitc.Extend('all-clusters-minimal', app=Esp32App.ALL_CLUSTERS_MINIMAL) - yield devkitc.Extend('all-clusters-minimal-ipv6only', app=Esp32App.ALL_CLUSTERS_MINIMAL, enable_ipv4=False) - yield devkitc.Extend('shell', app=Esp32App.SHELL) - yield devkitc.Extend('light', app=Esp32App.LIGHT) - yield devkitc.Extend('light-rpc', app=Esp32App.LIGHT, enable_rpcs=True) - yield devkitc.Extend('lock', app=Esp32App.LOCK) - yield devkitc.Extend('bridge', app=Esp32App.BRIDGE) - yield devkitc.Extend('temperature-measurement', app=Esp32App.TEMPERATURE_MEASUREMENT) - yield devkitc.Extend('temperature-measurement-rpc', app=Esp32App.TEMPERATURE_MEASUREMENT, enable_rpcs=True) - yield devkitc.Extend('ota-requestor', app=Esp32App.OTA_REQUESTOR) - yield devkitc.Extend('ota-requestor-rpc', app=Esp32App.OTA_REQUESTOR, enable_rpcs=True) - - yield esp32_target.Extend('qemu-tests', board=Esp32Board.QEMU, app=Esp32App.TESTS) +def BuildEsp32Target(): + target = BuildTarget('esp32', Esp32Builder) + + # boards + target.AppendFixedTargets([ + TargetPart('m5stack', board=Esp32Board.M5Stack).OnlyIfRe('-(all-clusters|ota-requestor)'), + TargetPart('c3devkit', board=Esp32Board.C3DevKit), + TargetPart('devkitc', board=Esp32Board.DevKitC), + ]) + + # applications + target.AppendFixedTargets([ + TargetPart('all-clusters', board=Esp32App.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', board=Esp32App.ALL_CLUSTERS_MINIMAL), + TargetPart('ota-requestor', board=Esp32App.OTA_REQUESTOR), + TargetPart('ota-requestor', board=Esp32App.OTA_REQUESTOR), + TargetPart('shell', app=Esp32App.SHELL), + TargetPart('light', app=Esp32App.LIGHT), + TargetPart('lock', app=Esp32App.LOCK), + TargetPart('bridge', app=Esp32App.BRIDGE), + TargetPart('temperature-measurement', app=Esp32App.TEMPERATURE_MEASUREMENT), + TargetPart('ota-requestor', app=Esp32App.OTA_REQUESTOR), + ]) + + target.AppendModifier(TargetPart('rpc', enable_rpcs=True)) + target.AppendModifier(TargetPart('ipv6only', enable_ipv4=False)) + + # TODO: + # yield esp32_target.Extend('qemu-tests', board=Esp32Board.QEMU, app=Esp32App.TESTS) + # yield esp32_target.Extend('qemu-tests', board=Esp32Board.QEMU, app=Esp32App.TESTS) + return target def Efr32Targets(): @@ -572,57 +559,77 @@ def TizenTargets(): yield target -def Bl602Targets(): - target = Target('bl602', Bl602Builder) +def BuildBl602Target(): + target = BuildTarget('bl602', Bl602Builder) + + target.AppendFixedTargets([ + TargetPart('light', board=Bl602Board.BL602BOARD, app=Bl602App.LIGHT), + ]) + + return target + + +def BuildBouffalolabTarget(): + target = BuildTarget('bouffalolab', BouffalolabBuilder) - yield target.Extend('light', board=Bl602Board.BL602BOARD, app=Bl602App.LIGHT) + # Boards + target.AppendFixedTargets([ + TargetPart('BL706-IoT-DVK', board=BouffalolabBoard.BL706_IoT_DVK, module_type="BL706C-22"), + TargetPart('BL706-NIGHT-LIGHT', board=BouffalolabBoard.BL706_NIGHT_LIGHT, module_type="BL702"), + ]) -def BouffalolabTargets(): - target = Target('bouffalolab', BouffalolabBuilder) + # Apps + target.AppendFixedTargets([ + TargetPart('light', board=BouffalolabApp.LIGHT), + ]) - yield target.Extend('BL706-IoT-DVK-light', board=BouffalolabBoard.BL706_IoT_DVK, app=BouffalolabApp.LIGHT, enable_rpcs=False, module_type="BL706C-22") - yield target.Extend('BL706-IoT-DVK-light-rpc', board=BouffalolabBoard.BL706_IoT_DVK, app=BouffalolabApp.LIGHT, enable_rpcs=True, module_type="BL706C-22") - yield target.Extend('BL706-NIGHT-LIGHT-light', board=BouffalolabBoard.BL706_NIGHT_LIGHT, app=BouffalolabApp.LIGHT, enable_rpcs=False, module_type="BL702") + return target -def IMXTargets(): - target = Target('imx', IMXBuilder) +def BuildIMXTarget(): + target = BuildTarget('imx', IMXBuilder) - yield target.Extend('chip-tool', app=IMXApp.CHIP_TOOL) - yield target.Extend('lighting-app', app=IMXApp.LIGHT) - yield target.Extend('thermostat', app=IMXApp.THERMOSTAT) - yield target.Extend('all-clusters-app', app=IMXApp.ALL_CLUSTERS) - yield target.Extend('all-clusters-minimal-app', app=IMXApp.ALL_CLUSTERS_MINIMAL) - yield target.Extend('ota-provider-app', app=IMXApp.OTA_PROVIDER) - yield target.Extend('chip-tool-release', app=IMXApp.CHIP_TOOL, release=True) - yield target.Extend('lighting-app-release', app=IMXApp.LIGHT, release=True) - yield target.Extend('thermostat-release', app=IMXApp.THERMOSTAT, release=True) - yield target.Extend('all-clusters-app-release', app=IMXApp.ALL_CLUSTERS, release=True) - yield target.Extend('all-clusters-minimal-app-release', app=IMXApp.ALL_CLUSTERS_MINIMAL, release=True) - yield target.Extend('ota-provider-app-release', app=IMXApp.OTA_PROVIDER, release=True) + target.AppendFixedTargets([ + TargetPart('chip-tool', app=IMXApp.CHIP_TOOL), + TargetPart('lighting-app', app=IMXApp.LIGHT), + TargetPart('thermostat', app=IMXApp.THERMOSTAT), + TargetPart('all-clusters-app', app=IMXApp.ALL_CLUSTERS), + TargetPart('all-clusters-minimal-app', app=IMXApp.ALL_CLUSTERS_MINIMAL), + TargetPart('ota-provider-app', app=IMXApp.OTA_PROVIDER), + ]) + target.AppendModifier(TargetPart('release', release=True)) -def MW320Targets(): - target = Target('mw320', MW320Builder) + return target - yield target.Extend('all-clusters-app', app=MW320App.ALL_CLUSTERS) +def BuildMW320Target(): + target = BuildTarget('mw320', MW320Builder) + target.AppendFixedTargets([TargetPart('all-clusters-app', board=MW320App.ALL_CLUSTERS)]) + return target -def GenioTargets(): - target = Target('genio', GenioBuilder) - yield target.Extend('lighting-app', app=GenioApp.LIGHT) +def BuildGenioTarget(): + target = BuildTarget('genio', GenioBuilder) + target.AppendFixedTargets([TargetPart('lighting-app', board=GenioApp.LIGHT)]) + return target + BUILD_TARGETS = [ BuildHostTarget(), + BuildEsp32Target(), + BuildGenioTarget(), + BuildIMXTarget(), + BuildBl602Target(), + BuildBouffalolabTarget(), ] ALL = [] target_generators = [ #HostTargets(), - Esp32Targets(), + #Esp32Targets(), Efr32Targets(), NrfTargets(), AndroidTargets(), @@ -634,11 +641,11 @@ def GenioTargets(): Cyw30739Targets(), QorvoTargets(), TizenTargets(), - Bl602Targets(), - BouffalolabTargets(), - IMXTargets(), - MW320Targets(), - GenioTargets(), + #Bl602Targets(), + #BouffalolabTargets(), + #IMXTargets(), + #MW320Targets(), + #GenioTargets(), ] for generator in target_generators: From 3cf6f6aadcf13eaa1ed13c0f3a17105b032b9470 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:11:28 -0400 Subject: [PATCH 09/68] more conversions --- scripts/build/build/targets.py | 67 +++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index c1b0a20dddcd06..fd0f3b579d7397 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -530,33 +530,46 @@ def Cyw30739Targets(): board=Cyw30739Board.CYW930739M2EVB_01, app=Cyw30739App.OTA_REQUESTOR, progress_logging=False) -def QorvoTargets(): - target = Target('qpg', QpgBuilder) +def BuildQorvoTarget(): + target = BuildTarget('qpg', QpgBuilder) - yield target.Extend('lock', board=QpgBoard.QPG6105, app=QpgApp.LOCK) - yield target.Extend('light', board=QpgBoard.QPG6105, app=QpgApp.LIGHT) - yield target.Extend('shell', board=QpgBoard.QPG6105, app=QpgApp.SHELL) - yield target.Extend('persistent-storage', board=QpgBoard.QPG6105, app=QpgApp.PERSISTENT_STORAGE) + # board + target.AppendFixedTargets([ + TargetPart('qpg6105', board=QpgBoard.QPG6105), + ]) + # apps + target.AppendFixedTargets([ + TargetPart('lock', app=QpgApp.LOCK), + TargetPart('light', app=QpgApp.LIGHT), + TargetPart('shell', app=QpgApp.SHELL), + TargetPart('persistent-storage', app=QpgApp.PERSISTENT_STORAGE), + ]) -def TizenTargets(): + return target - # Possible build variants. - # NOTE: The number of potential builds is exponential here. - builder = VariantBuilder() - builder.AppendVariant(name="no-ble", enable_ble=False) - builder.AppendVariant(name="no-wifi", enable_wifi=False) - builder.AppendVariant(name="asan", use_asan=True) - target = Target('tizen-arm', TizenBuilder, board=TizenBoard.ARM) +def BuildTizenTarget(): + target = BuildTarget('tizen', TizenBuilder) - builder.targets.append(target.Extend('all-clusters', app=TizenApp.ALL_CLUSTERS)) - builder.targets.append(target.Extend('all-clusters-minimal', app=TizenApp.ALL_CLUSTERS_MINIMAL)) - builder.targets.append(target.Extend('chip-tool', app=TizenApp.CHIP_TOOL)) - builder.targets.append(target.Extend('light', app=TizenApp.LIGHT)) + # board + target.AppendFixedTargets([ + TargetPart('arm', board=TizenBoard.ARM), + ]) - for target in builder.AllVariants(): - yield target + # apps + target.AppendFixedTargets([ + TargetPart('all-clusters', app=TizenApp.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', app=TizenApp.ALL_CLUSTERS_MINIMAL), + TargetPart('chip-tool', app=TizenApp.CHIP_TOOL), + TargetPart('light', app=TizenApp.LIGHT), + ]) + + target.AppendModifier(TargetPart(name="no-ble", enable_ble=False)) + target.AppendModifier(TargetPart(name="no-wifi", enable_wifi=False)) + target.AppendModifier(TargetPart(name="asan", use_asan=True)) + + return target def BuildBl602Target(): @@ -565,7 +578,7 @@ def BuildBl602Target(): target.AppendFixedTargets([ TargetPart('light', board=Bl602Board.BL602BOARD, app=Bl602App.LIGHT), ]) - + return target @@ -617,12 +630,14 @@ def BuildGenioTarget(): BUILD_TARGETS = [ - BuildHostTarget(), + BuildBl602Target(), + BuildBouffalolabTarget(), BuildEsp32Target(), BuildGenioTarget(), + BuildHostTarget(), BuildIMXTarget(), - BuildBl602Target(), - BuildBouffalolabTarget(), + BuildTizenTarget(), + BuildQorvoTarget(), ] ALL = [] @@ -639,8 +654,8 @@ def BuildGenioTarget(): K32WTargets(), cc13x2x7_26x2x7Targets(), Cyw30739Targets(), - QorvoTargets(), - TizenTargets(), + #QorvoTargets(), + #TizenTargets(), #Bl602Targets(), #BouffalolabTargets(), #IMXTargets(), From 3e03e46001dc303958a870f12afb3dd3d456d01a Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:22:27 -0400 Subject: [PATCH 10/68] Converted more targets --- scripts/build/build/targets.py | 138 +++++++++++++++++++++------------ 1 file changed, 87 insertions(+), 51 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index fd0f3b579d7397..a1f2617f7b3c68 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -483,51 +483,81 @@ def InfineonTargets(): yield target -def AmebaTargets(): - ameba_target = Target('ameba', AmebaBuilder) +def BuildAmebaTarget(): + target = BuildTarget('ameba', AmebaBuilder) - yield ameba_target.Extend('amebad-all-clusters', board=AmebaBoard.AMEBAD, app=AmebaApp.ALL_CLUSTERS) - yield ameba_target.Extend('amebad-all-clusters-minimal', board=AmebaBoard.AMEBAD, app=AmebaApp.ALL_CLUSTERS_MINIMAL) - yield ameba_target.Extend('amebad-light', board=AmebaBoard.AMEBAD, app=AmebaApp.LIGHT) - yield ameba_target.Extend('amebad-pigweed', board=AmebaBoard.AMEBAD, app=AmebaApp.PIGWEED) + # board + target.AppendFixedTargets([ + TargetPart('amebad', board=AmebaBoard.AMEBAD), + ]) + + # apps + target.AppendFixedTargets([ + TargetPart('all-clusters', app=AmebaApp.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', app=AmebaApp.ALL_CLUSTERS_MINIMAL), + TargetPart('light', app=AmebaApp.LIGHT), + TargetPart('pigweed', app=AmebaApp.PIGWEED), + ]) + + return target + + +def BuildK32WTarget(): + target = BuildTarget('k32w', K32WBuilder) + + # apps + target.AppendFixedTargets([ + TargetPart('light', app=K32WApp.LIGHT, release=True), + TargetPart('shell', app=K32WApp.SHELL, release=True), + TargetPart('lock', app=K32WApp.LOCK, release=True), + TargetPart('contact', app=K32WApp.CONTACT, release=True), + ]) + + target.AppendModifier(TargetPart(name="no-ota", disable_ota=True)) + target.AppendModifier(TargetPart(name="low-power", low_power=True)) + target.AppendModifier(TargetPart(name="nologs", disable_logs=True)) + + return target + + +def Buildcc13x2x7_26x2x7Target(): + target = BuildTarget('cc13x2x7_26x2x7', cc13x2x7_26x2x7Builder) + + # apps + target.AppendFixedTargets([ + TargetPart('all-clusters', app=cc13x2x7_26x2x7App.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', app=cc13x2x7_26x2x7App.ALL_CLUSTERS_MINIMAL), + TargetPart('lock', app=cc13x2x7_26x2x7App.LOCK), + TargetPart('pump', app=cc13x2x7_26x2x7App.PUMP), + TargetPart('pump-controller', app=cc13x2x7_26x2x7App.PUMP_CONTROLLER), + TargetPart('shell', app=cc13x2x7_26x2x7App.SHELL), + ]) + target.AppendModifier(TargetPart(name="ftd", openthread_ftd=True).ExceptIfRe("-mtd")) + target.AppendModifier(TargetPart(name="mtd", openthread_ftd=False).ExceptIfRe("-ftd")) -def K32WTargets(): - target = Target('k32w', K32WBuilder) + return target - yield target.Extend('light-ota-se', app=K32WApp.LIGHT, release=True, disable_ble=True, se05x=True).GlobBlacklist("Only on demand build") - yield target.Extend('light-release-no-ota', app=K32WApp.LIGHT, tokenizer=True, disable_ota=True, release=True, tinycrypt=True) - yield target.Extend('shell-release', app=K32WApp.SHELL, disable_logs=True, release=True) - yield target.Extend('lock-release', app=K32WApp.LOCK, release=True) - yield target.Extend('lock-low-power-release', app=K32WApp.LOCK, - low_power=True, disable_logs=True, release=True).GlobBlacklist("Only on demand build") - yield target.Extend('contact-release', app=K32WApp.CONTACT, tokenizer=True, release=True, tinycrypt=True) - yield target.Extend('contact-low-power-release', app=K32WApp.CONTACT, tokenizer=True, tinycrypt=True, - low_power=True, disable_logs=True, release=True).GlobBlacklist("Only on demand build") +def BuildCyw30739Target(): + target = BuildTarget('cyw30739', Cyw30739Builder) + + # board + target.AppendFixedTargets([ + TargetPart('cyw930739m2evb_01', board=Cyw30739Board.CYW930739M2EVB_01), + ]) -def cc13x2x7_26x2x7Targets(): - target = Target('cc13x2x7_26x2x7', cc13x2x7_26x2x7Builder) + # apps + target.AppendFixedTargets([ + TargetPart('light', app=Cyw30739App.LIGHT), + TargetPart('lock', app=Cyw30739App.LOCK), + TargetPart('ota-requestor', app=Cyw30739App.OTA_REQUESTOR), + ]) - yield target.Extend('lock-ftd', app=cc13x2x7_26x2x7App.LOCK, openthread_ftd=True) - yield target.Extend('lock-mtd', app=cc13x2x7_26x2x7App.LOCK, openthread_ftd=False) - yield target.Extend('pump', app=cc13x2x7_26x2x7App.PUMP) - yield target.Extend('pump-controller', app=cc13x2x7_26x2x7App.PUMP_CONTROLLER) - yield target.Extend('all-clusters', app=cc13x2x7_26x2x7App.ALL_CLUSTERS) - yield target.Extend('all-clusters-minimal', app=cc13x2x7_26x2x7App.ALL_CLUSTERS_MINIMAL) - yield target.Extend('shell', app=cc13x2x7_26x2x7App.SHELL) + target.AppendModifier(TargetPart(name="no-progress-logging", progress_logging=False)) + return target -def Cyw30739Targets(): - yield Target('cyw30739-cyw930739m2evb_01-light', Cyw30739Builder, - board=Cyw30739Board.CYW930739M2EVB_01, app=Cyw30739App.LIGHT) - yield Target('cyw30739-cyw930739m2evb_01-lock', Cyw30739Builder, - board=Cyw30739Board.CYW930739M2EVB_01, app=Cyw30739App.LOCK) - yield Target('cyw30739-cyw930739m2evb_01-ota-requestor', Cyw30739Builder, - board=Cyw30739Board.CYW930739M2EVB_01, app=Cyw30739App.OTA_REQUESTOR).GlobBlacklist( - "Running out of XIP flash space") - yield Target('cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging', Cyw30739Builder, - board=Cyw30739Board.CYW930739M2EVB_01, app=Cyw30739App.OTA_REQUESTOR, progress_logging=False) def BuildQorvoTarget(): @@ -632,35 +662,41 @@ def BuildGenioTarget(): BUILD_TARGETS = [ BuildBl602Target(), BuildBouffalolabTarget(), + BuildCyw30739Target(), BuildEsp32Target(), BuildGenioTarget(), BuildHostTarget(), BuildIMXTarget(), - BuildTizenTarget(), + BuildMW320Target(), BuildQorvoTarget(), + BuildTizenTarget(), + + Buildcc13x2x7_26x2x7Target(), + BuildK32WTarget(), + BuildAmebaTarget(), ] ALL = [] target_generators = [ - #HostTargets(), - #Esp32Targets(), - Efr32Targets(), - NrfTargets(), - AndroidTargets(), - MbedTargets(), - InfineonTargets(), - AmebaTargets(), - K32WTargets(), - cc13x2x7_26x2x7Targets(), - Cyw30739Targets(), - #QorvoTargets(), - #TizenTargets(), #Bl602Targets(), #BouffalolabTargets(), + #Cyw30739Targets(), + #Esp32Targets(), + #GenioTargets(), + #HostTargets(), #IMXTargets(), #MW320Targets(), - #GenioTargets(), + #QorvoTargets(), + #TizenTargets(), + #AmebaTargets(), + AndroidTargets(), + #cc13x2x7_26x2x7Targets(), + Efr32Targets(), + InfineonTargets(), + #K32WTargets(), + MbedTargets(), + NrfTargets(), ] for generator in target_generators: From bbc029ab6231d2dcf8f674f469f90b17788e841f Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:28:19 -0400 Subject: [PATCH 11/68] Converted more targets --- scripts/build/build/targets.py | 99 ++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 47 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index a1f2617f7b3c68..294dd88d162044 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -438,49 +438,53 @@ def AndroidTargets(): yield target.Extend('arm-tv-casting-app', board=AndroidBoard.ARM, app=AndroidApp.TV_CASTING_APP) -def MbedTargets(): - target = Target('mbed', MbedBuilder) +def BuildMbedTarget(): + target = BuildTarget('mbed', MbedBuilder) - targets = [ - target.Extend('CY8CPROTO_062_4343W', - board=MbedBoard.CY8CPROTO_062_4343W), - ] + # board + target.AppendFixedTargets([ + TargetPart('CY8CPROTO_062_4343W', board=MbedBoard.CY8CPROTO_062_4343W), + ]) - app_targets = [] - for target in targets: - app_targets.append(target.Extend('lock', app=MbedApp.LOCK)) - app_targets.append(target.Extend('light', app=MbedApp.LIGHT)) - app_targets.append(target.Extend( - 'all-clusters', app=MbedApp.ALL_CLUSTERS)) - app_targets.append(target.Extend( - 'all-clusters-minimal', app=MbedApp.ALL_CLUSTERS_MINIMAL)) - app_targets.append(target.Extend('pigweed', app=MbedApp.PIGWEED)) - app_targets.append(target.Extend('shell', app=MbedApp.SHELL)) - - for target in app_targets: - yield target.Extend('release', profile=MbedProfile.RELEASE) - yield target.Extend('develop', profile=MbedProfile.DEVELOP).GlobBlacklist( - 'Compile only for debugging purpose - ' - 'https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html') - yield target.Extend('debug', profile=MbedProfile.DEBUG).GlobBlacklist( - 'Compile only for debugging purpose - ' - 'https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html') - - -def InfineonTargets(): - builder = VariantBuilder() - builder.AppendVariant(name="ota", enable_ota_requestor=True) - builder.AppendVariant(name="updateimage", update_image=True) + # apps + target.AppendFixedTargets([ + TargetPart('lock', app=MbedApp.LOCK), + TargetPart('light', app=MbedApp.LIGHT), + TargetPart('all-clusters', app=MbedApp.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', app=MbedApp.ALL_CLUSTERS_MINIMAL), + TargetPart('pigweed', app=MbedApp.PIGWEED), + TargetPart('shell', app=MbedApp.SHELL), + ]) - target = Target('infineon-psoc6', InfineonBuilder, board=InfineonBoard.PSOC6BOARD) + # Modifiers + target.AppendModifier(TargetPart('release', profile=MbedProfile.RELEASE).ExceptIfRe('-(develop|debug)')) + target.AppendModifier(TargetPart('develop', profile=MbedProfile.DEVELOP).ExceptIfRe('-(release|debug)')) + target.AppendModifier(TargetPart('debug', profile=MbedProfile.DEBUG).ExceptIfRe('-(release|develop)')) - builder.targets.append(target.Extend('lock', app=InfineonApp.LOCK)) - builder.targets.append(target.Extend('light', app=InfineonApp.LIGHT)) - builder.targets.append(target.Extend('all-clusters', app=InfineonApp.ALL_CLUSTERS)) - builder.targets.append(target.Extend('all-clusters-minimal', app=InfineonApp.ALL_CLUSTERS_MINIMAL)) + return target - for target in builder.AllVariants(): - yield target + +def BuildInfineonTarget(): + target = BuildTarget('infineon', InfineonBuilder) + + # board + target.AppendFixedTargets([ + TargetPart('psoc6', board=InfineonBoard.PSOC6BOARD) + ]) + + # apps + target.AppendFixedTargets([ + TargetPart('lock', app=InfineonApp.LOCK), + TargetPart('light', app=InfineonApp.LIGHT), + TargetPart('all-clusters', app=InfineonApp.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', app=InfineonApp.ALL_CLUSTERS_MINIMAL), + ]) + + # modifiers + target.AppendModifier(TargetPart('ota', enable_ota_requestor=True)) + target.AppendModifier(TargetPart('updateimage', update_image=True)) + + return target def BuildAmebaTarget(): @@ -660,42 +664,43 @@ def BuildGenioTarget(): BUILD_TARGETS = [ + BuildAmebaTarget(), BuildBl602Target(), BuildBouffalolabTarget(), + Buildcc13x2x7_26x2x7Target(), BuildCyw30739Target(), BuildEsp32Target(), BuildGenioTarget(), BuildHostTarget(), BuildIMXTarget(), + BuildInfineonTarget(), + BuildK32WTarget(), + BuildMbedTarget(), BuildMW320Target(), BuildQorvoTarget(), BuildTizenTarget(), - - Buildcc13x2x7_26x2x7Target(), - BuildK32WTarget(), - BuildAmebaTarget(), ] ALL = [] target_generators = [ + #AmebaTargets(), #Bl602Targets(), #BouffalolabTargets(), + #cc13x2x7_26x2x7Targets(), #Cyw30739Targets(), #Esp32Targets(), #GenioTargets(), #HostTargets(), #IMXTargets(), + #InfineonTargets(), + #K32WTargets(), + #MbedTargets(), #MW320Targets(), #QorvoTargets(), #TizenTargets(), - #AmebaTargets(), AndroidTargets(), - #cc13x2x7_26x2x7Targets(), Efr32Targets(), - InfineonTargets(), - #K32WTargets(), - MbedTargets(), NrfTargets(), ] From 084748045a1db95a9065e275ab0b540f2a9f918f Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:35:48 -0400 Subject: [PATCH 12/68] Updted more targets --- scripts/build/build/targets.py | 112 +++++++++++++++------------------ 1 file changed, 52 insertions(+), 60 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 294dd88d162044..f15b90343bbcf0 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -337,51 +337,35 @@ def BuildEsp32Target(): return target -def Efr32Targets(): - efr_target = Target('efr32', Efr32Builder) - - board_targets = [ - efr_target.Extend('brd4161a', board=Efr32Board.BRD4161A), - efr_target.Extend('brd4187c', board=Efr32Board.BRD4187C), - efr_target.Extend('brd4163a', board=Efr32Board.BRD4163A).GlobBlacklist( - 'only user requested'), - efr_target.Extend('brd4164a', board=Efr32Board.BRD4164A).GlobBlacklist( - 'only user requested'), - efr_target.Extend('brd4166a', board=Efr32Board.BRD4166A).GlobBlacklist( - 'only user requested'), - efr_target.Extend('brd4170a', board=Efr32Board.BRD4170A).GlobBlacklist( - 'only user requested'), - efr_target.Extend('brd4186a', board=Efr32Board.BRD4186A).GlobBlacklist( - 'only user requested'), - efr_target.Extend('brd4187a', board=Efr32Board.BRD4187A).GlobBlacklist( - 'only user requested'), - efr_target.Extend('brd4304a', board=Efr32Board.BRD4304A).GlobBlacklist( - 'only user requested') - ] - - builder = VariantBuilder() +def BuildEfr32Target(): + target = BuildTarget('efr32', Efr32Builder) - for board_target in board_targets: - builder.targets.append(board_target.Extend( - 'window-covering', app=Efr32App.WINDOW_COVERING)) - builder.targets.append(board_target.Extend( - 'switch', app=Efr32App.SWITCH)) - builder.targets.append(board_target.Extend( - 'unit-test', app=Efr32App.UNIT_TEST)) - builder.targets.append( - board_target.Extend('light', app=Efr32App.LIGHT)) - builder.targets.append(board_target.Extend('lock', app=Efr32App.LOCK)) + # board + target.AppendFixedTargets([ + TargetPart('brd4161a', board=Efr32Board.BRD4161A), + TargetPart('brd4187c', board=Efr32Board.BRD4187C), + TargetPart('brd4163a', board=Efr32Board.BRD4163A), + TargetPart('brd4164a', board=Efr32Board.BRD4164A), + TargetPart('brd4166a', board=Efr32Board.BRD4166A), + TargetPart('brd4170a', board=Efr32Board.BRD4170A), + TargetPart('brd4186a', board=Efr32Board.BRD4186A), + TargetPart('brd4187a', board=Efr32Board.BRD4187A), + TargetPart('brd4304a', board=Efr32Board.BRD4304A), + ]) - # Possible build variants. Note that number of potential - # builds is exponential here - builder.AppendVariant(name="rpc", validator=AcceptNameWithSubstrings( - ['-light', '-lock']), enable_rpcs=True) - builder.AppendVariant(name="with-ota-requestor", enable_ota_requestor=True) + # apps + target.AppendFixedTargets([ + TargetPart('window-covering', app=Efr32App.WINDOW_COVERING), + TargetPart('switch', app=Efr32App.SWITCH), + TargetPart('unit-test', app=Efr32App.UNIT_TEST), + TargetPart('light', app=Efr32App.LIGHT), + TargetPart('lock', app=Efr32App.LOCK), + ]) - builder.WhitelistVariantNameForGlob('rpc') + target.AppendModifier(TargetPart('rpc', enable_rpcs=True)) + target.AppendModifier(TargetPart('with-ota-requestor', enable_ota_requestor=True)) - for target in builder.AllVariants(): - yield target + return target def NrfTargets(): @@ -418,24 +402,30 @@ def NrfTargets(): yield rpc -def AndroidTargets(): - target = Target('android', AndroidBuilder) +def BuildAndroidTarget(): + target = BuildTarget('android', AndroidBuilder) - yield target.Extend('arm-chip-tool', board=AndroidBoard.ARM, app=AndroidApp.CHIP_TOOL) - yield target.Extend('arm64-chip-tool', board=AndroidBoard.ARM64, app=AndroidApp.CHIP_TOOL) - yield target.Extend('x64-chip-tool', board=AndroidBoard.X64, app=AndroidApp.CHIP_TOOL) - yield target.Extend('x86-chip-tool', board=AndroidBoard.X86, app=AndroidApp.CHIP_TOOL) - yield target.Extend('arm64-chip-test', board=AndroidBoard.ARM64, app=AndroidApp.CHIP_TEST) - yield target.Extend('androidstudio-arm-chip-tool', board=AndroidBoard.AndroidStudio_ARM, app=AndroidApp.CHIP_TOOL) - yield target.Extend('androidstudio-arm64-chip-tool', board=AndroidBoard.AndroidStudio_ARM64, app=AndroidApp.CHIP_TOOL) - yield target.Extend('androidstudio-x86-chip-tool', board=AndroidBoard.AndroidStudio_X86, app=AndroidApp.CHIP_TOOL) - yield target.Extend('androidstudio-x64-chip-tool', board=AndroidBoard.AndroidStudio_X64, app=AndroidApp.CHIP_TOOL) - yield target.Extend('arm64-tv-server', board=AndroidBoard.ARM64, app=AndroidApp.TV_SERVER) - yield target.Extend('arm-tv-server', board=AndroidBoard.ARM, app=AndroidApp.TV_SERVER) - yield target.Extend('x86-tv-server', board=AndroidBoard.X86, app=AndroidApp.TV_SERVER) - yield target.Extend('x64-tv-server', board=AndroidBoard.X64, app=AndroidApp.TV_SERVER) - yield target.Extend('arm64-tv-casting-app', board=AndroidBoard.ARM64, app=AndroidApp.TV_CASTING_APP) - yield target.Extend('arm-tv-casting-app', board=AndroidBoard.ARM, app=AndroidApp.TV_CASTING_APP) + # board + target.AppendFixedTargets([ + TargetPart('arm', board=AndroidBoard.ARM), + TargetPart('arm64', board=AndroidBoard.ARM64), + TargetPart('x86', board=AndroidBoard.X86), + TargetPart('x64', board=AndroidBoard.X64), + TargetPart('androidstudio-arm', board=AndroidBoard.AndroidStudio_ARM).OnlyIfRe('chip-tool'), + TargetPart('androidstudio-arm64', board=AndroidBoard.AndroidStudio_ARM64).OnlyIfRe('chip-tool'), + TargetPart('androidstudio-x86', board=AndroidBoard.AndroidStudio_X86).OnlyIfRe('chip-tool'), + TargetPart('androidstudio-x64', board=AndroidBoard.AndroidStudio_X64).OnlyIfRe('chip-tool'), + ]) + + # apps + target.AppendFixedTargets([ + TargetPart('chip-tool', app=AndroidApp.CHIP_TOOL), + TargetPart('chip-test', app=AndroidApp.CHIP_TEST), + TargetPart('tv-server', app=AndroidApp.TV_SERVER), + TargetPart('tv-casting-app', app=AndroidApp.TV_CASTING_APP), + ]) + + return target def BuildMbedTarget(): @@ -679,6 +669,8 @@ def BuildGenioTarget(): BuildMW320Target(), BuildQorvoTarget(), BuildTizenTarget(), + BuildAndroidTarget(), + BuildEfr32Target(), ] ALL = [] @@ -699,8 +691,8 @@ def BuildGenioTarget(): #MW320Targets(), #QorvoTargets(), #TizenTargets(), - AndroidTargets(), - Efr32Targets(), + #AndroidTargets(), + #Efr32Targets(), NrfTargets(), ] From 31b7f4c1cff8c97d9dc2824ead6a2314dca1627d Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:39:29 -0400 Subject: [PATCH 13/68] Simplify target part --- scripts/build/build/target.py | 12 +++-- scripts/build/build/targets.py | 74 +++++++++++++++--------------- scripts/build/build/test_target.py | 8 ++-- 3 files changed, 48 insertions(+), 46 deletions(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index 7cc503f322b443..ca7d685ad2c0d7 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -221,16 +221,20 @@ def AppendFixedTargets(self, parts: list[TargetPart]): """ self.fixed_targets.append(parts) - def AppendModifier(self, part: TargetPart): + def AppendModifier(self, name:str, **kargs): """Appends a specific modifier to a build target. For example: - target.AppendModifier(TargetParet(name='release', release=True)) - target.AppendModifier(TargetParet(name='clang', use_clang=True)) - target.AppendModifier(TargetParet(name='coverage', coverage=True).OnlyIfRe('-clang')) + target.AppendModifier(name='release', release=True) + target.AppendModifier(name='clang', use_clang=True) + target.AppendModifier(name='coverage', coverage=True).OnlyIfRe('-clang') """ + part=TargetPart(name, **kargs) + self.modifiers.append(part) + return part + def HumanString(self): """Prints out the human-readable string of the available variants and modifiers: diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index f15b90343bbcf0..f61754c3489078 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -281,25 +281,23 @@ def BuildHostTarget(): target.AppendFixedTargets(app_parts) - target.AppendModifier( - TargetPart('nodeps', enable_ble=False, enable_wifi=False, enable_thread=False, crypto_library=HostCryptoLibrary.MBEDTLS, use_clang=True).ExceptIfRe('-(clang|noble|boringssl|mbedtls)') - ) - - target.AppendModifier(TargetPart('libnl', minmdns_address_policy="libnl").OnlyIfRe('-minmdns')) - target.AppendModifier(TargetPart('same-event-loop', separate_event_loop=False).OnlyIfRe('-(chip-tool|darwin-framework-tool)')) - target.AppendModifier(TargetPart('no-interactive', interactive_mode=False).OnlyIfRe('-chip-tool')) - target.AppendModifier(TargetPart("ipv6only", enable_ipv4=False)) - target.AppendModifier(TargetPart("no-ble", enable_ble=False)) - target.AppendModifier(TargetPart("no-wifi", enable_wifi=False)) - target.AppendModifier(TargetPart("no-thread", enable_thread=False)) - target.AppendModifier(TargetPart("mbedtls", crypto_library=HostCryptoLibrary.MBEDTLS).ExceptIfRe('-mbedtls')) - target.AppendModifier(TargetPart("boringssl", crypto_library=HostCryptoLibrary.BORINGSSL).ExceptIfRe('-boringssl')) - target.AppendModifier(TargetPart("asan", use_asan=True).ExceptIfRe("-tsan")) - target.AppendModifier(TargetPart("tsan", use_tsan=True).ExceptIfRe("-asan")) - target.AppendModifier(TargetPart("libfuzzer", use_tsan=True).OnlyIfRe("-clang")) - target.AppendModifier(TargetPart('coverage', use_coverage=True).OnlyIfRe('-(chip-tool|all-clusters)')) - target.AppendModifier(TargetPart('dmalloc', use_dmalloc=True)) - target.AppendModifier(TargetPart('clang', use_clang=True)) + target.AppendModifier('nodeps', enable_ble=False, enable_wifi=False, enable_thread=False, crypto_library=HostCryptoLibrary.MBEDTLS, use_clang=True).ExceptIfRe('-(clang|noble|boringssl|mbedtls)') + + target.AppendModifier('libnl', minmdns_address_policy="libnl").OnlyIfRe('-minmdns') + target.AppendModifier('same-event-loop', separate_event_loop=False).OnlyIfRe('-(chip-tool|darwin-framework-tool)') + target.AppendModifier('no-interactive', interactive_mode=False).OnlyIfRe('-chip-tool') + target.AppendModifier("ipv6only", enable_ipv4=False) + target.AppendModifier("no-ble", enable_ble=False) + target.AppendModifier("no-wifi", enable_wifi=False) + target.AppendModifier("no-thread", enable_thread=False) + target.AppendModifier("mbedtls", crypto_library=HostCryptoLibrary.MBEDTLS).ExceptIfRe('-mbedtls') + target.AppendModifier("boringssl", crypto_library=HostCryptoLibrary.BORINGSSL).ExceptIfRe('-boringssl') + target.AppendModifier("asan", use_asan=True).ExceptIfRe("-tsan") + target.AppendModifier("tsan", use_tsan=True).ExceptIfRe("-asan") + target.AppendModifier("libfuzzer", use_tsan=True).OnlyIfRe("-clang") + target.AppendModifier('coverage', use_coverage=True).OnlyIfRe('-(chip-tool|all-clusters)') + target.AppendModifier('dmalloc', use_dmalloc=True) + target.AppendModifier('clang', use_clang=True) return target @@ -328,8 +326,8 @@ def BuildEsp32Target(): TargetPart('ota-requestor', app=Esp32App.OTA_REQUESTOR), ]) - target.AppendModifier(TargetPart('rpc', enable_rpcs=True)) - target.AppendModifier(TargetPart('ipv6only', enable_ipv4=False)) + target.AppendModifier('rpc', enable_rpcs=True) + target.AppendModifier('ipv6only', enable_ipv4=False) # TODO: # yield esp32_target.Extend('qemu-tests', board=Esp32Board.QEMU, app=Esp32App.TESTS) @@ -362,8 +360,8 @@ def BuildEfr32Target(): TargetPart('lock', app=Efr32App.LOCK), ]) - target.AppendModifier(TargetPart('rpc', enable_rpcs=True)) - target.AppendModifier(TargetPart('with-ota-requestor', enable_ota_requestor=True)) + target.AppendModifier('rpc', enable_rpcs=True) + target.AppendModifier('with-ota-requestor', enable_ota_requestor=True) return target @@ -447,9 +445,9 @@ def BuildMbedTarget(): ]) # Modifiers - target.AppendModifier(TargetPart('release', profile=MbedProfile.RELEASE).ExceptIfRe('-(develop|debug)')) - target.AppendModifier(TargetPart('develop', profile=MbedProfile.DEVELOP).ExceptIfRe('-(release|debug)')) - target.AppendModifier(TargetPart('debug', profile=MbedProfile.DEBUG).ExceptIfRe('-(release|develop)')) + target.AppendModifier('release', profile=MbedProfile.RELEASE).ExceptIfRe('-(develop|debug)') + target.AppendModifier('develop', profile=MbedProfile.DEVELOP).ExceptIfRe('-(release|debug)') + target.AppendModifier('debug', profile=MbedProfile.DEBUG).ExceptIfRe('-(release|develop)') return target @@ -471,8 +469,8 @@ def BuildInfineonTarget(): ]) # modifiers - target.AppendModifier(TargetPart('ota', enable_ota_requestor=True)) - target.AppendModifier(TargetPart('updateimage', update_image=True)) + target.AppendModifier('ota', enable_ota_requestor=True) + target.AppendModifier('updateimage', update_image=True) return target @@ -507,9 +505,9 @@ def BuildK32WTarget(): TargetPart('contact', app=K32WApp.CONTACT, release=True), ]) - target.AppendModifier(TargetPart(name="no-ota", disable_ota=True)) - target.AppendModifier(TargetPart(name="low-power", low_power=True)) - target.AppendModifier(TargetPart(name="nologs", disable_logs=True)) + target.AppendModifier(name="no-ota", disable_ota=True) + target.AppendModifier(name="low-power", low_power=True) + target.AppendModifier(name="nologs", disable_logs=True) return target @@ -527,8 +525,8 @@ def Buildcc13x2x7_26x2x7Target(): TargetPart('shell', app=cc13x2x7_26x2x7App.SHELL), ]) - target.AppendModifier(TargetPart(name="ftd", openthread_ftd=True).ExceptIfRe("-mtd")) - target.AppendModifier(TargetPart(name="mtd", openthread_ftd=False).ExceptIfRe("-ftd")) + target.AppendModifier(name="ftd", openthread_ftd=True).ExceptIfRe("-mtd") + target.AppendModifier(name="mtd", openthread_ftd=False).ExceptIfRe("-ftd") return target @@ -548,7 +546,7 @@ def BuildCyw30739Target(): TargetPart('ota-requestor', app=Cyw30739App.OTA_REQUESTOR), ]) - target.AppendModifier(TargetPart(name="no-progress-logging", progress_logging=False)) + target.AppendModifier(name="no-progress-logging", progress_logging=False) return target @@ -589,9 +587,9 @@ def BuildTizenTarget(): TargetPart('light', app=TizenApp.LIGHT), ]) - target.AppendModifier(TargetPart(name="no-ble", enable_ble=False)) - target.AppendModifier(TargetPart(name="no-wifi", enable_wifi=False)) - target.AppendModifier(TargetPart(name="asan", use_asan=True)) + target.AppendModifier(name="no-ble", enable_ble=False) + target.AppendModifier(name="no-wifi", enable_wifi=False) + target.AppendModifier(name="asan", use_asan=True) return target @@ -636,7 +634,7 @@ def BuildIMXTarget(): TargetPart('ota-provider-app', app=IMXApp.OTA_PROVIDER), ]) - target.AppendModifier(TargetPart('release', release=True)) + target.AppendModifier('release', release=True) return target diff --git a/scripts/build/build/test_target.py b/scripts/build/build/test_target.py index 75275dd740cc32..bd1cb59f5a7a4b 100755 --- a/scripts/build/build/test_target.py +++ b/scripts/build/build/test_target.py @@ -89,10 +89,10 @@ def test_modifiers(self): TargetPart('two', value=2), ]) - t.AppendModifier(TargetPart('m1', m=1).ExceptIfRe('-m2')) - t.AppendModifier(TargetPart('m2', m=2).ExceptIfRe('-m1')) - t.AppendModifier(TargetPart('x1', x=1)) - t.AppendModifier(TargetPart('y1', x=1).OnlyIfRe('-foo-')) + t.AppendModifier('m1', m=1).ExceptIfRe('-m2') + t.AppendModifier('m2', m=2).ExceptIfRe('-m1') + t.AppendModifier('x1', x=1) + t.AppendModifier('y1', x=1).OnlyIfRe('-foo-') self.assertEqual( t.HumanString(), From 4b967d7503ebf138c3ce4ed32c86b7655abda7a5 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:39:42 -0400 Subject: [PATCH 14/68] Restyle --- scripts/build/build/target.py | 4 +- scripts/build/build/targets.py | 69 +++++++++++++++++----------------- 2 files changed, 36 insertions(+), 37 deletions(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index ca7d685ad2c0d7..00acdddbd0ba19 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -221,7 +221,7 @@ def AppendFixedTargets(self, parts: list[TargetPart]): """ self.fixed_targets.append(parts) - def AppendModifier(self, name:str, **kargs): + def AppendModifier(self, name: str, **kargs): """Appends a specific modifier to a build target. For example: target.AppendModifier(name='release', release=True) @@ -229,7 +229,7 @@ def AppendModifier(self, name:str, **kargs): target.AppendModifier(name='coverage', coverage=True).OnlyIfRe('-clang') """ - part=TargetPart(name, **kargs) + part = TargetPart(name, **kargs) self.modifiers.append(part) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index f61754c3489078..f025f27d8903c7 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -277,11 +277,12 @@ def BuildHostTarget(): ] if (HostBoard.NATIVE.PlatformName() == 'darwin'): - app_parts.append(TargetPart('darwin-framework-tool', app=HostApp.CHIP_TOOL_DARWIN) ) + app_parts.append(TargetPart('darwin-framework-tool', app=HostApp.CHIP_TOOL_DARWIN)) target.AppendFixedTargets(app_parts) - target.AppendModifier('nodeps', enable_ble=False, enable_wifi=False, enable_thread=False, crypto_library=HostCryptoLibrary.MBEDTLS, use_clang=True).ExceptIfRe('-(clang|noble|boringssl|mbedtls)') + target.AppendModifier('nodeps', enable_ble=False, enable_wifi=False, enable_thread=False, + crypto_library=HostCryptoLibrary.MBEDTLS, use_clang=True).ExceptIfRe('-(clang|noble|boringssl|mbedtls)') target.AppendModifier('libnl', minmdns_address_policy="libnl").OnlyIfRe('-minmdns') target.AppendModifier('same-event-loop', separate_event_loop=False).OnlyIfRe('-(chip-tool|darwin-framework-tool)') @@ -485,10 +486,10 @@ def BuildAmebaTarget(): # apps target.AppendFixedTargets([ - TargetPart('all-clusters', app=AmebaApp.ALL_CLUSTERS), - TargetPart('all-clusters-minimal', app=AmebaApp.ALL_CLUSTERS_MINIMAL), - TargetPart('light', app=AmebaApp.LIGHT), - TargetPart('pigweed', app=AmebaApp.PIGWEED), + TargetPart('all-clusters', app=AmebaApp.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', app=AmebaApp.ALL_CLUSTERS_MINIMAL), + TargetPart('light', app=AmebaApp.LIGHT), + TargetPart('pigweed', app=AmebaApp.PIGWEED), ]) return target @@ -551,7 +552,6 @@ def BuildCyw30739Target(): return target - def BuildQorvoTarget(): target = BuildTarget('qpg', QpgBuilder) @@ -598,7 +598,7 @@ def BuildBl602Target(): target = BuildTarget('bl602', Bl602Builder) target.AppendFixedTargets([ - TargetPart('light', board=Bl602Board.BL602BOARD, app=Bl602App.LIGHT), + TargetPart('light', board=Bl602Board.BL602BOARD, app=Bl602App.LIGHT), ]) return target @@ -607,16 +607,15 @@ def BuildBl602Target(): def BuildBouffalolabTarget(): target = BuildTarget('bouffalolab', BouffalolabBuilder) - # Boards target.AppendFixedTargets([ - TargetPart('BL706-IoT-DVK', board=BouffalolabBoard.BL706_IoT_DVK, module_type="BL706C-22"), - TargetPart('BL706-NIGHT-LIGHT', board=BouffalolabBoard.BL706_NIGHT_LIGHT, module_type="BL702"), + TargetPart('BL706-IoT-DVK', board=BouffalolabBoard.BL706_IoT_DVK, module_type="BL706C-22"), + TargetPart('BL706-NIGHT-LIGHT', board=BouffalolabBoard.BL706_NIGHT_LIGHT, module_type="BL702"), ]) # Apps target.AppendFixedTargets([ - TargetPart('light', board=BouffalolabApp.LIGHT), + TargetPart('light', board=BouffalolabApp.LIGHT), ]) return target @@ -626,12 +625,12 @@ def BuildIMXTarget(): target = BuildTarget('imx', IMXBuilder) target.AppendFixedTargets([ - TargetPart('chip-tool', app=IMXApp.CHIP_TOOL), - TargetPart('lighting-app', app=IMXApp.LIGHT), - TargetPart('thermostat', app=IMXApp.THERMOSTAT), - TargetPart('all-clusters-app', app=IMXApp.ALL_CLUSTERS), - TargetPart('all-clusters-minimal-app', app=IMXApp.ALL_CLUSTERS_MINIMAL), - TargetPart('ota-provider-app', app=IMXApp.OTA_PROVIDER), + TargetPart('chip-tool', app=IMXApp.CHIP_TOOL), + TargetPart('lighting-app', app=IMXApp.LIGHT), + TargetPart('thermostat', app=IMXApp.THERMOSTAT), + TargetPart('all-clusters-app', app=IMXApp.ALL_CLUSTERS), + TargetPart('all-clusters-minimal-app', app=IMXApp.ALL_CLUSTERS_MINIMAL), + TargetPart('ota-provider-app', app=IMXApp.OTA_PROVIDER), ]) target.AppendModifier('release', release=True) @@ -674,23 +673,23 @@ def BuildGenioTarget(): ALL = [] target_generators = [ - #AmebaTargets(), - #Bl602Targets(), - #BouffalolabTargets(), - #cc13x2x7_26x2x7Targets(), - #Cyw30739Targets(), - #Esp32Targets(), - #GenioTargets(), - #HostTargets(), - #IMXTargets(), - #InfineonTargets(), - #K32WTargets(), - #MbedTargets(), - #MW320Targets(), - #QorvoTargets(), - #TizenTargets(), - #AndroidTargets(), - #Efr32Targets(), + # AmebaTargets(), + # Bl602Targets(), + # BouffalolabTargets(), + # cc13x2x7_26x2x7Targets(), + # Cyw30739Targets(), + # Esp32Targets(), + # GenioTargets(), + # HostTargets(), + # IMXTargets(), + # InfineonTargets(), + # K32WTargets(), + # MbedTargets(), + # MW320Targets(), + # QorvoTargets(), + # TizenTargets(), + # AndroidTargets(), + # Efr32Targets(), NrfTargets(), ] From ee9bd0a7aa5f6f8b3ebbeaa521d2bc28c3fe9e47 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:45:13 -0400 Subject: [PATCH 15/68] All applications are converted --- scripts/build/build/targets.py | 103 ++++++++++++--------------------- 1 file changed, 38 insertions(+), 65 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index f025f27d8903c7..0219196930a4b1 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -367,38 +367,33 @@ def BuildEfr32Target(): return target -def NrfTargets(): - target = Target('nrf', NrfConnectBuilder) +def BuildNrfTarget(): + target = BuildTarget('nrf', NrfConnectBuilder) - yield target.Extend('native-posix-64-tests', board=NrfBoard.NATIVE_POSIX_64, app=NrfApp.UNIT_TESTS) + # FIXME: what now? native would be nice + # yield target.Extend('native-posix-64-tests', board=NrfBoard.NATIVE_POSIX_64, app=NrfApp.UNIT_TESTS) - targets = [ - target.Extend('nrf5340dk', board=NrfBoard.NRF5340DK), - target.Extend('nrf52840dk', board=NrfBoard.NRF52840DK), - ] - - # Enable nrf52840dongle for all-clusters and lighting app only - yield target.Extend('nrf52840dongle-all-clusters', board=NrfBoard.NRF52840DONGLE, app=NrfApp.ALL_CLUSTERS).GlobBlacklist('Out of flash when linking') - yield target.Extend('nrf52840dongle-all-clusters-minimal', board=NrfBoard.NRF52840DONGLE, app=NrfApp.ALL_CLUSTERS_MINIMAL) - yield target.Extend('nrf52840dongle-light', board=NrfBoard.NRF52840DONGLE, app=NrfApp.LIGHT) - - for target in targets: - yield target.Extend('all-clusters', app=NrfApp.ALL_CLUSTERS) - yield target.Extend('all-clusters-minimal', app=NrfApp.ALL_CLUSTERS_MINIMAL) - yield target.Extend('lock', app=NrfApp.LOCK) - yield target.Extend('light', app=NrfApp.LIGHT) - yield target.Extend('shell', app=NrfApp.SHELL) - yield target.Extend('pump', app=NrfApp.PUMP) - yield target.Extend('pump-controller', app=NrfApp.PUMP_CONTROLLER) + # board + target.AppendFixedTargets([ + TargetPart('nrf5340dk', board=NrfBoard.NRF5340DK), + TargetPart('nrf52840dk', board=NrfBoard.NRF52840DK), + TargetPart('nrf52840dongle').OnlyIfRe('-(all-clusters|light)'), + ]) - rpc = target.Extend('light-rpc', app=NrfApp.LIGHT, enable_rpcs=True) + # apps + target.AppendFixedTargets([ + TargetPart('all-clusters', app=NrfApp.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', app=NrfApp.ALL_CLUSTERS_MINIMAL), + TargetPart('lock', app=NrfApp.LOCK), + TargetPart('light', app=NrfApp.LIGHT), + TargetPart('shell', app=NrfApp.SHELL), + TargetPart('pump', app=NrfApp.PUMP), + TargetPart('pump-controller', app=NrfApp.PUMP_CONTROLLER), + ]) - if '-nrf5340dk-' in rpc.name: - rpc = rpc.GlobBlacklist( - 'Compile failure due to pw_build args not forwarded to proto compiler. ' - 'https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/66760') + target.AppendModifier('rpc', enable_rpcs=True) - yield rpc + return target def BuildAndroidTarget(): @@ -649,13 +644,27 @@ def BuildGenioTarget(): target.AppendFixedTargets([TargetPart('lighting-app', board=GenioApp.LIGHT)]) return target +def BuildTelinkTarget(): + target = BuildTarget('telink', TelinkBuilder) + target.AppendFixedTargets([TargetPart('tlsr9518adk80d', board=TelinkBoard.TLSR9518ADK80D)]) + + target.AppendFixedTargets([ + TargetPart('light', app=TelinkApp.LIGHT), + TargetPart('light-switch', app=TelinkApp.SWITCH), + TargetPart('ota-requestor', app=TelinkApp.OTA_REQUESTOR), + ]) + + return target + BUILD_TARGETS = [ BuildAmebaTarget(), + BuildAndroidTarget(), BuildBl602Target(), BuildBouffalolabTarget(), Buildcc13x2x7_26x2x7Target(), BuildCyw30739Target(), + BuildEfr32Target(), BuildEsp32Target(), BuildGenioTarget(), BuildHostTarget(), @@ -664,46 +673,10 @@ def BuildGenioTarget(): BuildK32WTarget(), BuildMbedTarget(), BuildMW320Target(), + BuildNrfTarget(), BuildQorvoTarget(), BuildTizenTarget(), - BuildAndroidTarget(), - BuildEfr32Target(), + BuildTelinkTarget(), ] ALL = [] - -target_generators = [ - # AmebaTargets(), - # Bl602Targets(), - # BouffalolabTargets(), - # cc13x2x7_26x2x7Targets(), - # Cyw30739Targets(), - # Esp32Targets(), - # GenioTargets(), - # HostTargets(), - # IMXTargets(), - # InfineonTargets(), - # K32WTargets(), - # MbedTargets(), - # MW320Targets(), - # QorvoTargets(), - # TizenTargets(), - # AndroidTargets(), - # Efr32Targets(), - NrfTargets(), -] - -for generator in target_generators: - for target in generator: - ALL.append(target) - -# Simple targets added one by one -ALL.append(Target('telink-tlsr9518adk80d-light', TelinkBuilder, - board=TelinkBoard.TLSR9518ADK80D, app=TelinkApp.LIGHT)) -ALL.append(Target('telink-tlsr9518adk80d-light-switch', TelinkBuilder, - board=TelinkBoard.TLSR9518ADK80D, app=TelinkApp.SWITCH)) -ALL.append(Target('telink-tlsr9518adk80d-ota-requestor', TelinkBuilder, - board=TelinkBoard.TLSR9518ADK80D, app=TelinkApp.OTA_REQUESTOR)) - -# have a consistent order overall -ALL.sort(key=lambda t: t.name) From 9cd533ebd12292cfd6aebebdcb651c25e0b7b76e Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:46:18 -0400 Subject: [PATCH 16/68] Remove old target code - should not be needed anymore --- scripts/build/build/targets.py | 194 --------------------------------- 1 file changed, 194 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 0219196930a4b1..675bb6ea404d3a 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -40,200 +40,6 @@ from builders.genio import GenioApp, GenioBuilder -class Target: - """Represents a build target: - Has a name identifier plus parameters on how to build it (what - builder class to use and what arguments are required to produce - the specified build) - """ - - def __init__(self, name, builder_class, **kwargs): - self.name = name - self.builder_class = builder_class - self.glob_blacklist_reason = None - - self.create_kw_args = kwargs - - def Clone(self): - """Creates a clone of self.""" - - clone = Target(self.name, self.builder_class, - **self.create_kw_args.copy()) - clone.glob_blacklist_reason = self.glob_blacklist_reason - - return clone - - def Extend(self, suffix, **kargs): - """Creates a clone of the current object extending its build parameters. - Arguments: - suffix: appended with a "-" as separator to the clone name - **kargs: arguments needed to produce the new build variant - """ - clone = self.Clone() - clone.name += "-" + suffix - clone.create_kw_args.update(kargs) - return clone - - def Create(self, runner, repository_path: str, output_prefix: str, - enable_flashbundle: bool): - builder = self.builder_class( - repository_path, runner=runner, **self.create_kw_args) - - builder.target = self - builder.identifier = self.name - builder.output_dir = os.path.join(output_prefix, self.name) - builder.chip_dir = repository_path - builder.enable_flashbundle(enable_flashbundle) - - return builder - - def GlobBlacklist(self, reason): - clone = self.Clone() - if clone.glob_blacklist_reason: - clone.glob_blacklist_reason += ", " - clone.glob_blacklist_reason += reason - else: - clone.glob_blacklist_reason = reason - - return clone - - @property - def IsGlobBlacklisted(self): - return self.glob_blacklist_reason is not None - - @property - def GlobBlacklistReason(self): - return self.glob_blacklist_reason - - -class AcceptAnyName: - def Accept(self, name: str): - return True - - -class AcceptNameWithSubstrings: - def __init__(self, substr: List[str]): - self.substr = substr - - def Accept(self, name: str): - for s in self.substr: - if s in name: - return True - return False - - -class RejectNameWithSubstrings: - def __init__(self, substr: List[str]): - self.substr = substr - - def Accept(self, name: str): - for s in self.substr: - if s in name: - return False - return True - - -class BuildVariant: - def __init__(self, name: str, validator=AcceptAnyName(), - conflicts: List[str] = [], requires: List[str] = [], - **buildargs): - self.name = name - self.validator = validator - self.conflicts = conflicts - self.buildargs = buildargs - self.requires = requires - - -def HasConflicts(items: List[BuildVariant]) -> bool: - for a, b in combinations(items, 2): - if (a.name in b.conflicts) or (b.name in a.conflicts): - return True - return False - - -def AllRequirementsMet(items: List[BuildVariant]) -> bool: - """ - Check that item.requires is satisfied for all items in the given list - """ - available = set([item.name for item in items]) - - for item in items: - for requirement in item.requires: - if requirement not in available: - return False - - return True - - -class VariantBuilder: - """Handles creating multiple build variants based on a starting target. - """ - - def __init__(self, targets: List[Target] = []): - # note the clone in case the default arg is used - self.targets = targets[:] - self.variants = [] - self.glob_whitelist = [] - - def WhitelistVariantNameForGlob(self, name): - """ - Whitelist the specified variant to be allowed for globbing. - - By default we do not want a 'build all' to select all variants, so - variants are generally glob-blacklisted. - """ - self.glob_whitelist.append(name) - - def AppendVariant(self, **args): - """ - Add another variant to accepted variants. Arguments are construction - variants to BuildVariant. - - Example usage: - - builder.AppendVariant(name="ipv6only", enable_ipv4=False) - """ - self.variants.append(BuildVariant(**args)) - - def AllVariants(self): - """ - Yields a list of acceptable variants for the given targets. - - Handles conflict resolution between build variants and globbing - whitelist targets. - """ - for target in self.targets: - yield target - - # skip variants that do not work for this target - ok_variants = [ - v for v in self.variants if v.validator.Accept(target.name)] - - # Build every possible variant - for variant_count in range(1, len(ok_variants) + 1): - for subgroup in combinations(ok_variants, variant_count): - if HasConflicts(subgroup): - continue - - if not AllRequirementsMet(subgroup): - continue - - # Target ready to be created - no conflicts - variant_target = target.Clone() - for option in subgroup: - variant_target = variant_target.Extend( - option.name, **option.buildargs) - - # Only a few are whitelisted for globs - name = '-'.join([o.name for o in subgroup]) - if name not in self.glob_whitelist: - if not variant_target.IsGlobBlacklisted: - variant_target = variant_target.GlobBlacklist( - 'Reduce default build variants') - - yield variant_target - - def BuildHostTarget(): native_board_name = HostBoard.NATIVE.BoardName() cross_compile = (HostBoard.NATIVE.PlatformName() == 'linux') and (native_board_name != HostBoard.ARM64.BoardName()) From 28bb6e5b5e39425226a7785c534da5fb2f1de6bc Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:46:32 -0400 Subject: [PATCH 17/68] Restyle --- scripts/build/build/targets.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 675bb6ea404d3a..25173d3f59cd39 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -450,14 +450,15 @@ def BuildGenioTarget(): target.AppendFixedTargets([TargetPart('lighting-app', board=GenioApp.LIGHT)]) return target + def BuildTelinkTarget(): target = BuildTarget('telink', TelinkBuilder) target.AppendFixedTargets([TargetPart('tlsr9518adk80d', board=TelinkBoard.TLSR9518ADK80D)]) target.AppendFixedTargets([ - TargetPart('light', app=TelinkApp.LIGHT), - TargetPart('light-switch', app=TelinkApp.SWITCH), - TargetPart('ota-requestor', app=TelinkApp.OTA_REQUESTOR), + TargetPart('light', app=TelinkApp.LIGHT), + TargetPart('light-switch', app=TelinkApp.SWITCH), + TargetPart('ota-requestor', app=TelinkApp.OTA_REQUESTOR), ]) return target From 4bc52aa095e85b92f2b4a363c710655db38205f6 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 17:58:55 -0400 Subject: [PATCH 18/68] Building at least chip-tool works. No introspection though --- scripts/build/build/__init__.py | 19 +++++++------ scripts/build/build/target.py | 3 +- scripts/build/build/targets.py | 4 +-- scripts/build/build_examples.py | 50 ++++----------------------------- 4 files changed, 20 insertions(+), 56 deletions(-) diff --git a/scripts/build/build/__init__.py b/scripts/build/build/__init__.py index c8c7cafeb8dd0c..cb670b64779a54 100644 --- a/scripts/build/build/__init__.py +++ b/scripts/build/build/__init__.py @@ -4,10 +4,7 @@ from enum import Enum, auto from typing import Sequence -from .targets import ALL, Target - -ALL_TARGETS = ALL - +from .targets import BUILD_TARGETS class BuildSteps(Enum): GENERATED = auto() @@ -26,7 +23,7 @@ def __init__(self, runner, repository_path: str, output_prefix: str): self.output_prefix = output_prefix self.completed_steps = set() - def SetupBuilders(self, targets: Sequence[Target], + def SetupBuilders(self, targets: Sequence[str], enable_flashbundle: bool): """ Configures internal builders for the given platform/board/app @@ -35,9 +32,15 @@ def SetupBuilders(self, targets: Sequence[Target], self.builders = [] for target in targets: - self.builders.append(target.Create( - self.runner, self.repository_path, self.output_prefix, - enable_flashbundle)) + found = False + for choice in BUILD_TARGETS: + builder = choice.Create(target, self.runner, self.repository_path, self.output_prefix, enable_flashbundle) + if builder: + self.builders.append(builder) + found = True + + if not found: + logging.error(f"Target '{target}' could not be found. Nothing executed for it") # whenever builders change, assume generation is required again self.completed_steps.discard(BuildSteps.GENERATED) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index 00acdddbd0ba19..0d95437f28b9bb 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -39,6 +39,7 @@ # but easy enough to follow when defining names for things: just don't reuse names between '-' import logging +import os import re from typing import Any, Optional @@ -267,7 +268,7 @@ def Create(self, name: str, runner, repository_path: str, output_prefix: str, parts = self.StringIntoTargetParts(name) if not parts: - raise Exception(f"Failed to build variant '{name}'") + return None kargs = {} for part in parts: diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 25173d3f59cd39..461ba4a8d07bda 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -44,7 +44,7 @@ def BuildHostTarget(): native_board_name = HostBoard.NATIVE.BoardName() cross_compile = (HostBoard.NATIVE.PlatformName() == 'linux') and (native_board_name != HostBoard.ARM64.BoardName()) - target = BuildTarget(native_board_name, HostBuilder) + target = BuildTarget('linux', HostBuilder) board_parts = [ TargetPart(native_board_name, board=HostBoard.NATIVE), @@ -485,5 +485,3 @@ def BuildTelinkTarget(): BuildTizenTarget(), BuildTelinkTarget(), ] - -ALL = [] diff --git a/scripts/build/build_examples.py b/scripts/build/build_examples.py index f9897a69a85589..01fbdba1fb97cd 100755 --- a/scripts/build/build_examples.py +++ b/scripts/build/build_examples.py @@ -68,20 +68,8 @@ def ValidateRepoPath(context, parameter, value): @click.option( '--target', default=['all'], - type=click.Choice( - ['all'] + [t.name for t in build.ALL_TARGETS], case_sensitive=False), multiple=True, - help='Build target(s). Note that "all" includes glob blacklisted targets' -) -@click.option( - '--target-glob', - default=None, - help='Glob matching for targets to include' -) -@click.option( - '--skip-target-glob', - default=None, - help='Glob matching for targets to explicitly exclude' + help='Build target(s)' ) @click.option( '--enable-flashbundle', @@ -120,7 +108,7 @@ def ValidateRepoPath(context, parameter, value): is_flag=True, help='Skip timestaps in log output') @click.pass_context -def main(context, log_level, target, target_glob, skip_target_glob, repo, +def main(context, log_level, target, repo, out_prefix, clean, dry_run, dry_run_output, enable_flashbundle, no_log_timestamps): # Ensures somewhat pretty logging of what is going on @@ -142,40 +130,13 @@ def main(context, log_level, target, target_glob, skip_target_glob, repo, else: runner = ShellRunner(root=repo) - if 'all' in target: - # NOTE: The "all" target includes things that are glob blacklisted - # (so that 'targets' works and displays all) - targets = build.ALL_TARGETS - else: - requested_targets = set([t.lower for t in target]) - targets = [ - target for target in build.ALL_TARGETS - if target.name.lower in requested_targets - ] - - actual_targes = set([t.name.lower for t in targets]) - if requested_targets != actual_targes: - logging.error('Targets not found: %s', - CommaSeparate(actual_targes)) - - if target_glob: - matcher = GlobMatcher(target_glob) - targets = [t for t in targets if matcher.matches( - t.name) and not t.IsGlobBlacklisted] - - if skip_target_glob: - matcher = GlobMatcher(skip_target_glob) - targets = [t for t in targets if not matcher.matches(t.name)] - - # force consistent sorting - targets.sort(key=lambda t: t.name) - logging.info('Building targets: %s', - CommaSeparate([t.name for t in targets])) + requested_targets = set([t.lower() for t in target]) + logging.info('Building targets: %s', CommaSeparate(requested_targets)) context.obj = build.Context( repository_path=repo, output_prefix=out_prefix, runner=runner) context.obj.SetupBuilders( - targets=targets, enable_flashbundle=enable_flashbundle) + targets=requested_targets, enable_flashbundle=enable_flashbundle) if clean: context.obj.CleanOutputDirectories() @@ -194,6 +155,7 @@ def cmd_generate(context): 'the input arguments')) @click.pass_context def cmd_targets(context): + # FIXME: implement for builder in context.obj.builders: if builder.target.IsGlobBlacklisted: print("%s (NOGLOB: %s)" % From 9b05be03612ed84a979016b03dfb908348991dbc Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 18:00:08 -0400 Subject: [PATCH 19/68] Fix typo in m5 builds --- scripts/build/build/targets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 461ba4a8d07bda..be467ada728687 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -121,10 +121,10 @@ def BuildEsp32Target(): # applications target.AppendFixedTargets([ - TargetPart('all-clusters', board=Esp32App.ALL_CLUSTERS), - TargetPart('all-clusters-minimal', board=Esp32App.ALL_CLUSTERS_MINIMAL), - TargetPart('ota-requestor', board=Esp32App.OTA_REQUESTOR), - TargetPart('ota-requestor', board=Esp32App.OTA_REQUESTOR), + TargetPart('all-clusters', app=Esp32App.ALL_CLUSTERS), + TargetPart('all-clusters-minimal', app=Esp32App.ALL_CLUSTERS_MINIMAL), + TargetPart('ota-requestor', app=Esp32App.OTA_REQUESTOR), + TargetPart('ota-requestor', app=Esp32App.OTA_REQUESTOR), TargetPart('shell', app=Esp32App.SHELL), TargetPart('light', app=Esp32App.LIGHT), TargetPart('lock', app=Esp32App.LOCK), From 726308563e68d7eb1ee90410e6974b8d377f179b Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 18:01:48 -0400 Subject: [PATCH 20/68] A bit easier to parse logging --- scripts/build/build/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index 0d95437f28b9bb..64c737c624c062 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -77,7 +77,7 @@ def ExceptIfRe(self, expr: str): def Accept(self, full_input: str): if self.except_if_re: if self.except_if_re.search(full_input): - logging.warning(f"{self.name} does not support '{full_input}' due to rule EXCEPT IF '{self.except_if_re.pattern}'") + logging.warning(f"'{self.name}' does not support '{full_input}' due to rule EXCEPT IF '{self.except_if_re.pattern}'") return False if self.only_if_re: From 6f395586f00d0ad4e036e5494f9d269828c026c2 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 5 Oct 2022 18:02:32 -0400 Subject: [PATCH 21/68] More updates --- scripts/build/build/target.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index 64c737c624c062..d4823b662b745c 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -77,12 +77,14 @@ def ExceptIfRe(self, expr: str): def Accept(self, full_input: str): if self.except_if_re: if self.except_if_re.search(full_input): - logging.warning(f"'{self.name}' does not support '{full_input}' due to rule EXCEPT IF '{self.except_if_re.pattern}'") + # likely nothing will match when we get such an error + logging.error(f"'{self.name}' does not support '{full_input}' due to rule EXCEPT IF '{self.except_if_re.pattern}'") return False if self.only_if_re: if not self.only_if_re.search(full_input): - logging.warning(f"{self.name} does not support '{full_input}' due to rule ONLY IF '{self.only_if_re.pattern}'") + # likely nothing will match when we get such an error + logging.error(f"'{self.name}' does not support '{full_input}' due to rule ONLY IF '{self.only_if_re.pattern}'") return False return True From a46d6446a84646e9e7cbd191c8b7d821e2396eda Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:06:04 -0400 Subject: [PATCH 22/68] Add ability to output all variants of some target --- scripts/build/build/target.py | 60 +++++++++++++++++++++++++++++- scripts/build/build/test_target.py | 42 +++++++++++++++++++++ 2 files changed, 101 insertions(+), 1 deletion(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index d4823b662b745c..d50b7748731822 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -38,12 +38,14 @@ # combination of platform/board/app/modifier(s). This requirement is unenfornced in code # but easy enough to follow when defining names for things: just don't reuse names between '-' +import itertools import logging import os import re -from typing import Any, Optional +from collections.abc import Iterable from dataclasses import dataclass +from typing import Any, Optional @dataclass(init=False) @@ -254,6 +256,62 @@ def HumanString(self): return result + def AllVariants(self) -> Iterable[str]: + """Returns all possible accepted variants by this target. + + For example name-{a,b}-{c,d}[-1][-2] could return (there may be Only/ExceptIfRe rules): + + name-a-c + name-a-c-1 + name-a-c-2 + name-a-c-1-2 + name-a-d + name-a-d-1 + ... + name-b-d-2 + name-b-d-1-2 + + Notice that this DOES increase exponentially and is potentially a very long list + """ + + # Output is made out of 2 separate parts: + # - a valid combination of "fixed parts" + # - a combination of modifiers + + fixed_indices = [0]*len(self.fixed_targets) + + while True: + + prefix = "-".join(map( + lambda p: self.fixed_targets[p[0]][p[1]].name, enumerate(fixed_indices) + )) + + for n in range(len(self.modifiers) + 1): + for c in itertools.combinations(self.modifiers, n): + suffix = "" + for m in c: + suffix += "-" + m.name + option = f"{self.name}-{prefix}{suffix}" + + if self.StringIntoTargetParts(option) is not None: + yield option + + # Move to the next index in fixed_indices or exit loop if we cannot move + move_idx = len(fixed_indices) - 1 + while move_idx >= 0: + if fixed_indices[move_idx] + 1 < len(self.fixed_targets[move_idx]): + fixed_indices[move_idx] += 1 + break + + # need to move the previous value + fixed_indices[move_idx] = 0 + move_idx -= 1 + + if move_idx < 0: + # done iterating through all + return + + def StringIntoTargetParts(self, value: str): """Given an input string, process through all the input rules and return the underlying list of target parts for the input. diff --git a/scripts/build/build/test_target.py b/scripts/build/build/test_target.py index bd1cb59f5a7a4b..6ee66a6d08facc 100755 --- a/scripts/build/build/test_target.py +++ b/scripts/build/build/test_target.py @@ -99,6 +99,48 @@ def test_modifiers(self): "fake-{foo,bar}-{one,two}[-m1][-m2][-x1][-y1]" ) + self.assertEqual( + set(t.AllVariants()), + { + 'fake-foo-one', + 'fake-foo-one-m1', + 'fake-foo-one-m1-x1', + 'fake-foo-one-m1-x1-y1', + 'fake-foo-one-m1-y1', + 'fake-foo-one-m2', + 'fake-foo-one-m2-x1', + 'fake-foo-one-m2-x1-y1', + 'fake-foo-one-m2-y1', + 'fake-foo-one-x1', + 'fake-foo-one-x1-y1', + 'fake-foo-one-y1', + 'fake-foo-two', + 'fake-foo-two-m1', + 'fake-foo-two-m1-x1', + 'fake-foo-two-m1-x1-y1', + 'fake-foo-two-m1-y1', + 'fake-foo-two-m2', + 'fake-foo-two-m2-x1', + 'fake-foo-two-m2-x1-y1', + 'fake-foo-two-m2-y1', + 'fake-foo-two-x1', + 'fake-foo-two-x1-y1', + 'fake-foo-two-y1', + 'fake-bar-one', + 'fake-bar-one-m1', + 'fake-bar-one-m1-x1', + 'fake-bar-one-m2', + 'fake-bar-one-m2-x1', + 'fake-bar-one-x1', + 'fake-bar-two', + 'fake-bar-two-m1', + 'fake-bar-two-m1-x1', + 'fake-bar-two-m2', + 'fake-bar-two-m2-x1', + 'fake-bar-two-x1', + } + ) + self.assertIsNotNone(t.StringIntoTargetParts('fake-foo-one')) self.assertIsNotNone(t.StringIntoTargetParts('fake-bar-one-m1')) self.assertIsNotNone(t.StringIntoTargetParts('fake-foo-one-m2')) From 4810c3c33a6d80075eca2ff6c0f99c26e502f913 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:06:26 -0400 Subject: [PATCH 23/68] Restyle --- scripts/build/build/__init__.py | 1 + scripts/build/build/target.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build/build/__init__.py b/scripts/build/build/__init__.py index cb670b64779a54..fc0ee056590aab 100644 --- a/scripts/build/build/__init__.py +++ b/scripts/build/build/__init__.py @@ -6,6 +6,7 @@ from .targets import BUILD_TARGETS + class BuildSteps(Enum): GENERATED = auto() diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index d50b7748731822..9bd7ca002cedf1 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -292,7 +292,7 @@ def AllVariants(self) -> Iterable[str]: for m in c: suffix += "-" + m.name option = f"{self.name}-{prefix}{suffix}" - + if self.StringIntoTargetParts(option) is not None: yield option @@ -311,7 +311,6 @@ def AllVariants(self) -> Iterable[str]: # done iterating through all return - def StringIntoTargetParts(self, value: str): """Given an input string, process through all the input rules and return the underlying list of target parts for the input. From d151f1bcc39821f1e2bf21d317def7cfa39d7353 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:13:40 -0400 Subject: [PATCH 24/68] Add the ability to print all possible targets --- scripts/build/BUILD.gn | 1 + scripts/build/build_examples.py | 18 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/scripts/build/BUILD.gn b/scripts/build/BUILD.gn index 706dcaed32a433..a82ae166466975 100644 --- a/scripts/build/BUILD.gn +++ b/scripts/build/BUILD.gn @@ -59,5 +59,6 @@ pw_python_package("build_examples") { tests = [ "test.py", "test_glob_matcher.py", + "build/test_target.py", ] } diff --git a/scripts/build/build_examples.py b/scripts/build/build_examples.py index 01fbdba1fb97cd..ead1e35d61c0c1 100755 --- a/scripts/build/build_examples.py +++ b/scripts/build/build_examples.py @@ -153,15 +153,19 @@ def cmd_generate(context): 'targets', help=('List the targets that would be generated/built given ' 'the input arguments')) +@click.option( + '--expand', + default=False, + is_flag=True, + help='Expand all possible targets rather than the shorthand string') @click.pass_context -def cmd_targets(context): - # FIXME: implement - for builder in context.obj.builders: - if builder.target.IsGlobBlacklisted: - print("%s (NOGLOB: %s)" % - (builder.target.name, builder.target.GlobBlacklistReason)) +def cmd_targets(context, expand): + for target in build.targets.BUILD_TARGETS: + if expand: + for s in target.AllVariants(): + print(s) else: - print(builder.target.name) + print(target.HumanString() @main.command('build', help='generate and run ninja/make as needed to compile') From 76fef85b5440e71b007abd918020331c6f6dc91b Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:16:14 -0400 Subject: [PATCH 25/68] Add esp32 qemu support --- scripts/build/build/targets.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index be467ada728687..7e8467f89c634b 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -117,6 +117,7 @@ def BuildEsp32Target(): TargetPart('m5stack', board=Esp32Board.M5Stack).OnlyIfRe('-(all-clusters|ota-requestor)'), TargetPart('c3devkit', board=Esp32Board.C3DevKit), TargetPart('devkitc', board=Esp32Board.DevKitC), + TargetPart('qemu', board=Esp32Board.QEMU).OnlyIfRe('-tests'), ]) # applications @@ -131,14 +132,12 @@ def BuildEsp32Target(): TargetPart('bridge', app=Esp32App.BRIDGE), TargetPart('temperature-measurement', app=Esp32App.TEMPERATURE_MEASUREMENT), TargetPart('ota-requestor', app=Esp32App.OTA_REQUESTOR), + TargetPart('tests', app=Esp32App.TESTS).OnlyIfRe('-qemu-'), ]) target.AppendModifier('rpc', enable_rpcs=True) target.AppendModifier('ipv6only', enable_ipv4=False) - # TODO: - # yield esp32_target.Extend('qemu-tests', board=Esp32Board.QEMU, app=Esp32App.TESTS) - # yield esp32_target.Extend('qemu-tests', board=Esp32Board.QEMU, app=Esp32App.TESTS) return target From f3e4c57bab5fc71738da671975260a0687317da2 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:16:37 -0400 Subject: [PATCH 26/68] Restyle --- scripts/build/build_examples.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build/build_examples.py b/scripts/build/build_examples.py index ead1e35d61c0c1..afb36683c49ff1 100755 --- a/scripts/build/build_examples.py +++ b/scripts/build/build_examples.py @@ -168,18 +168,18 @@ def cmd_targets(context, expand): print(target.HumanString() -@main.command('build', help='generate and run ninja/make as needed to compile') -@click.option( +@ main.command('build', help='generate and run ninja/make as needed to compile') +@ click.option( '--copy-artifacts-to', default=None, type=click.Path(file_okay=False, resolve_path=True), help='Prefix for the generated file output.') -@click.option( +@ click.option( '--create-archives', default=None, type=click.Path(file_okay=False, resolve_path=True), help='Prefix of compressed archives of the generated files.') -@click.pass_context +@ click.pass_context def cmd_build(context, copy_artifacts_to, create_archives): context.obj.Build() From 07fcd35c51b43816ae6304f6ead935b1ea48b40e Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:18:25 -0400 Subject: [PATCH 27/68] Fix typo --- scripts/build/build_examples.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/build/build_examples.py b/scripts/build/build_examples.py index afb36683c49ff1..4d290f54600cd1 100755 --- a/scripts/build/build_examples.py +++ b/scripts/build/build_examples.py @@ -165,21 +165,21 @@ def cmd_targets(context, expand): for s in target.AllVariants(): print(s) else: - print(target.HumanString() + print(target.HumanString()) -@ main.command('build', help='generate and run ninja/make as needed to compile') -@ click.option( +@main.command('build', help='generate and run ninja/make as needed to compile') +@click.option( '--copy-artifacts-to', default=None, type=click.Path(file_okay=False, resolve_path=True), help='Prefix for the generated file output.') -@ click.option( +@click.option( '--create-archives', default=None, type=click.Path(file_okay=False, resolve_path=True), help='Prefix of compressed archives of the generated files.') -@ click.pass_context +@click.pass_context def cmd_build(context, copy_artifacts_to, create_archives): context.obj.Build() From 866921a84e420f6b6f030fa13928281ece3f93b9 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:24:35 -0400 Subject: [PATCH 28/68] Simplify target printout, make nrf tests work --- scripts/build/build/target.py | 6 +++++- scripts/build/build/targets.py | 13 ++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index 9bd7ca002cedf1..19091220ec069d 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -246,10 +246,14 @@ def HumanString(self): like: foo-{bar,baz}[-modifier1][modifier2][modifier3] + foo-bar-{a,b,c}[-m1][-m2] """ result = self.name for fixed in self.fixed_targets: - result += '-{' + ",".join(map(lambda x: x.name, fixed)) + '}' + if len(fixed) > 1: + result += '-{' + ",".join(map(lambda x: x.name, fixed)) + '}' + else: + result += '-' + fixed[0].name for modifier in self.modifiers: result += f"[-{modifier.name}]" diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 7e8467f89c634b..69083130ed1c02 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -171,13 +171,19 @@ def BuildEfr32Target(): return target +def BuildNrfNativeTarget(): + target = BuildTarget('nrf', NrfConnectBuilder) + + target.AppendFixedTargets([ + TargetPart('native-posix-64-tests', board=NrfBoard.NATIVE_POSIX_64, app=NrfApp.UNIT_TESTS), + ]) + + return target + def BuildNrfTarget(): target = BuildTarget('nrf', NrfConnectBuilder) - # FIXME: what now? native would be nice - # yield target.Extend('native-posix-64-tests', board=NrfBoard.NATIVE_POSIX_64, app=NrfApp.UNIT_TESTS) - # board target.AppendFixedTargets([ TargetPart('nrf5340dk', board=NrfBoard.NRF5340DK), @@ -480,6 +486,7 @@ def BuildTelinkTarget(): BuildMbedTarget(), BuildMW320Target(), BuildNrfTarget(), + BuildNrfNativeTarget(), BuildQorvoTarget(), BuildTizenTarget(), BuildTelinkTarget(), From 705655fa1b47fa5af8cfb15d407d15cbd462fd4c Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:26:47 -0400 Subject: [PATCH 29/68] Restyle --- scripts/build/build/targets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 69083130ed1c02..94750aa8b0fa23 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -171,6 +171,7 @@ def BuildEfr32Target(): return target + def BuildNrfNativeTarget(): target = BuildTarget('nrf', NrfConnectBuilder) From 9aa07f6a526c4e141c60581b93e5000daeb50ead Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:30:16 -0400 Subject: [PATCH 30/68] Remove some usages of target glob --- scripts/build/README.md | 21 +++++---------------- src/test_driver/efr32/README.md | 2 +- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/scripts/build/README.md b/scripts/build/README.md index d2279c18460adb..194b550ca90f5c 100644 --- a/scripts/build/README.md +++ b/scripts/build/README.md @@ -32,39 +32,28 @@ requirement. Usage examples: -1. Compiles all targets - - ```sh - ./scripts/build/build_examples.py --target all build - ``` - -2. Compile the all clusters app for a ESP32 DevKitC +1. Compile the all clusters app for a ESP32 DevKitC ```sh ./scripts/build/build_examples.py --target esp32-devkitc-all-clusters build ``` -3. Generate all the makefiles (but do not compile) using a specific output root +2. Generate all the makefiles (but do not compile) using a specific output root ```sh ./scripts/build/build_examples.py --target linux-x64-chip-tool --out-prefix ./mydir gen ``` -4. Compile the qpg lock app and copy the output in a 'artifact' folder. Note the +3. Compile the qpg lock app and copy the output in a 'artifact' folder. Note the argument order (artifact copying is an argument for the build command) ```sh ./scripts/build/build_examples.py --target qpg-lock build --copy-artifacts-to /tmp/artifacts ``` -5. Find out all possible targets for compiling the 'light' app: +4. Find out possible target choices: ```sh - ./scripts/build/build_examples.py --target-glob '*light' --log-level fatal targets + ./scripts/build/build_examples.py--log-level fatal targets ``` -6. Compile everything except linux or darwin: - - ```sh - ./scripts/build/build_examples.py --skip-target-glob '{darwin,linux}-*' --log-level fatal build - ``` diff --git a/src/test_driver/efr32/README.md b/src/test_driver/efr32/README.md index 5c9817b8da6948..d79aef59866578 100644 --- a/src/test_driver/efr32/README.md +++ b/src/test_driver/efr32/README.md @@ -98,7 +98,7 @@ Or build using build script from the root ``` cd - ./scripts/build/build_examples.py --target-glob '*nl-test-runner' build + ./scripts/build/build_examples.py --target linux-x64-nl-test-runner build ``` The runner will be installed into the venv and python wheels will be packaged in From 5407ffefeba5ddaf6868fc1f23be09f0d0ca5dd2 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:51:19 -0400 Subject: [PATCH 31/68] Replace glob in build scripts --- .restyled.yaml | 1 + integrations/cloudbuild/build-all.yaml | 119 +++++++++++++++++++++++- integrations/cloudbuild/smoke-test.yaml | 89 +++++++++++------- 3 files changed, 171 insertions(+), 38 deletions(-) diff --git a/.restyled.yaml b/.restyled.yaml index 9b6e7bcde82817..5d4ba637148bf0 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -75,6 +75,7 @@ exclude: - "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm" # https://github.com/project-chip/connectedhomeip/issues/20236 - "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h" # https://github.com/project-chip/connectedhomeip/issues/20236 - "examples/platform/nxp/k32w/k32w0/scripts/demo_generated_certs/**/*" + - "integrations/cloudbuild/*.yaml" # uglier long command line content changed_paths: diff --git a/integrations/cloudbuild/build-all.yaml b/integrations/cloudbuild/build-all.yaml index bae33cbf0e1a9b..22bd58ef5ab6a8 100644 --- a/integrations/cloudbuild/build-all.yaml +++ b/integrations/cloudbuild/build-all.yaml @@ -27,8 +27,123 @@ steps: args: - >- ./scripts/build/build_examples.py --enable-flashbundle - --target-glob '*' --skip-target-glob - '{imx-*,tizen-*,*-androidstudio-*,*-tests*,*-chip-test}' build + --target ameba-amebad-light + --target ameba-amebad-pigweed + --target android-arm-chip-tool + --target android-arm64-chip-tool + --target android-arm64-tv-casting-app + --target android-arm64-tv-server + --target android-x64-chip-tool + --target bl602-light + --target bouffalolab-BL706-IoT-DVK-light-rpc + --target cc13x2x7_26x2x7-lock-ftd + --target cc13x2x7_26x2x7-lock-mtd + --target cc13x2x7_26x2x7-shell + --target cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging + --target efr32-brd4161a-light-rpc + --target efr32-brd4161a-lock + --target efr32-brd4161a-switch + --target efr32-brd4161a-window-covering + --target efr32-brd4187c-window-covering + --target esp32-c3devkit-all-clusters + --target esp32-c3devkit-all-clusters-minimal + --target esp32-devkitc-all-clusters-ipv6only + --target esp32-devkitc-all-clusters-minimal-ipv6only + --target esp32-devkitc-bridge + --target esp32-devkitc-light-rpc + --target esp32-devkitc-lock + --target esp32-devkitc-ota-requestor-rpc + --target esp32-devkitc-shell + --target esp32-m5stack-all-clusters + --target esp32-m5stack-all-clusters-ipv6only + --target esp32-m5stack-all-clusters-minimal + --target esp32-m5stack-all-clusters-minimal-ipv6only + --target esp32-m5stack-all-clusters-minimal-rpc + --target esp32-m5stack-all-clusters-minimal-rpc-ipv6only + --target esp32-m5stack-ota-requestor + --target genio-lighting-app + --target imx-all-clusters-app + --target imx-chip-tool + --target imx-thermostat + --target infineon-psoc6-all-clusters + --target infineon-psoc6-all-clusters-minimal + --target infineon-psoc6-light + --target infineon-psoc6-lock + --target k32w-contact-release + --target k32w-light-release-no-ota + --target k32w-lock-release + --target k32w-shell-release + --target linux-arm64-clang-all-clusters + --target linux-arm64-clang-all-clusters-app-nodeps + --target linux-arm64-clang-all-clusters-app-nodeps-ipv6only + --target linux-arm64-clang-all-clusters-ipv6only + --target linux-arm64-clang-all-clusters-minimal + --target linux-arm64-clang-all-clusters-minimal-ipv6only + --target linux-arm64-clang-bridge-ipv6only + --target linux-arm64-clang-chip-tool + --target linux-arm64-clang-chip-tool-ipv6only + --target linux-arm64-clang-chip-tool-nodeps + --target linux-arm64-clang-chip-tool-nodeps-ipv6only + --target linux-arm64-clang-dynamic-bridge-ipv6only + --target linux-arm64-clang-light + --target linux-arm64-clang-light-ipv6only + --target linux-arm64-clang-light-rpc + --target linux-arm64-clang-light-rpc-ipv6only + --target linux-arm64-clang-lock + --target linux-arm64-clang-lock-ipv6only + --target linux-arm64-clang-minmdns + --target linux-arm64-clang-ota-provider-nodeps-ipv6only + --target linux-arm64-clang-ota-requestor-nodeps-ipv6only + --target linux-arm64-clang-shell-ipv6only + --target linux-arm64-clang-thermostat-ipv6only + --target linux-arm64-clang-tv-app-ipv6only + --target linux-arm64-clang-tv-casting-app-ipv6only + --target linux-x64-address-resolve-tool + --target linux-x64-all-clusters + --target linux-x64-all-clusters-nodeps + --target linux-x64-all-clusters-nodeps-ipv6only + --target linux-x64-all-clusters-coverage + --target linux-x64-all-clusters-ipv6only + --target linux-x64-all-clusters-minimal + --target linux-x64-all-clusters-minimal-ipv6only + --target linux-x64-bridge-ipv6only + --target linux-x64-chip-cert + --target linux-x64-chip-tool + --target linux-x64-chip-tool-coverage + --target linux-x64-chip-tool-nodeps-ipv6only + --target linux-x64-dynamic-bridge-ipv6only + --target linux-x64-light-rpc-ipv6only + --target linux-x64-lock-ipv6only + --target linux-x64-minmdns + --target linux-x64-nl-test-runner + --target linux-x64-ota-provider + --target linux-x64-ota-provider-nodeps-ipv6only + --target linux-x64-ota-requestor-nodeps-ipv6only + --target linux-x64-rpc-console + --target linux-x64-shell-ipv6only + --target linux-x64-thermostat-ipv6only + --target linux-x64-tv-app-ipv6only + --target linux-x64-tv-casting-app-ipv6only + --target mbed-CY8CPROTO_062_4343W-light-release + --target mbed-CY8CPROTO_062_4343W-lock-release + --target mbed-CY8CPROTO_062_4343W-pigweed-release + --target mw320-all-clusters-app + --target nrf-nrf52840dk-all-clusters + --target nrf-nrf52840dk-all-clusters-minimal + --target nrf-nrf52840dk-light-rpc + --target nrf-nrf52840dk-lock + --target nrf-nrf52840dk-pump + --target nrf-nrf52840dk-pump-controller + --target nrf-nrf52840dk-shell + --target nrf-nrf52840dongle-light + --target nrf-nrf5340dk-all-clusters + --target nrf-nrf5340dk-all-clusters-minimal + --target nrf-nrf5340dk-shell + --target qpg-light + --target qpg-shell + --target telink-tlsr9518adk80d-light + --target tizen-arm-light + build --create-archives /workspace/artifacts/ id: CompileAll waitFor: diff --git a/integrations/cloudbuild/smoke-test.yaml b/integrations/cloudbuild/smoke-test.yaml index b6e1d7497387da..19e5ef63bf3898 100644 --- a/integrations/cloudbuild/smoke-test.yaml +++ b/integrations/cloudbuild/smoke-test.yaml @@ -48,8 +48,12 @@ steps: args: - >- ./scripts/build/build_examples.py --enable-flashbundle - --target-glob '*-nrf52840*{lock,light}*' build --create-archives - /workspace/artifacts/ + --target nrf-nrf52840dk-light + --target nrf-nrf52840dk-light-rpc + --target nrf-nrf52840dk-lock + --target nrf-nrf52840dongle-light + build + --create-archives /workspace/artifacts/ waitFor: - Bootstrap - ESP32 @@ -65,7 +69,11 @@ steps: args: - >- ./scripts/build/build_examples.py --enable-flashbundle - --target-glob '*-brd4161a-{lock,light,unit-test}*' build + --target nrf-nrf52840dk-light + --target nrf-nrf52840dk-light-rpc + --target nrf-nrf52840dk-lock + --target nrf-nrf52840dongle-light + build --create-archives /workspace/artifacts/ waitFor: - Bootstrap @@ -81,37 +89,45 @@ steps: - PW_ENVIRONMENT_ROOT=/pwenv args: - >- - ./scripts/build/build_examples.py --enable-flashbundle --target - linux-arm64-clang-all-clusters --target - linux-arm64-clang-all-clusters-app-nodeps-ipv6only --target - linux-arm64-clang-all-clusters-minimal-ipv6only --target - linux-arm64-clang-bridge-ipv6only --target - linux-arm64-clang-chip-tool-ipv6only --target - linux-arm64-clang-chip-tool-nodeps-ipv6only --target - linux-arm64-clang-dynamic-bridge-ipv6only --target - linux-arm64-clang-light-rpc-ipv6only --target - linux-arm64-clang-lock-ipv6only --target linux-arm64-clang-minmdns - --target linux-arm64-clang-ota-provider-nodeps-ipv6only --target - linux-arm64-clang-ota-requestor-nodeps-ipv6only --target - linux-arm64-clang-python-bindings --target - linux-arm64-clang-shell-ipv6only --target - linux-arm64-clang-thermostat-ipv6only --target - linux-arm64-clang-tv-app-ipv6only --target - linux-arm64-clang-tv-casting-app-ipv6only --target - linux-x64-address-resolve-tool --target - linux-x64-all-clusters-app-nodeps-ipv6only --target - linux-x64-all-clusters-coverage --target linux-x64-bridge-ipv6only - --target linux-x64-chip-cert --target linux-x64-chip-tool-ipv6only - --target linux-x64-dynamic-bridge-ipv6only --target - linux-x64-light-rpc-ipv6only --target linux-x64-lock-ipv6only - --target linux-x64-minmdns-ipv6only --target - linux-x64-ota-provider-ipv6only --target - linux-x64-ota-requestor-ipv6only --target - linux-x64-python-bindings --target linux-x64-rpc-console --target - linux-x64-shell-ipv6only --target linux-x64-thermostat-ipv6only - --target linux-x64-tv-app-ipv6only --target - linux-x64-tv-casting-app-ipv6only build --create-archives - /workspace/artifacts/ + ./scripts/build/build_examples.py + --enable-flashbundle + --target linux-arm64-clang-all-clusters + --target linux-arm64-clang-all-clusters-app-nodeps-ipv6only + --target linux-arm64-clang-all-clusters-minimal-ipv6only + --target linux-arm64-clang-bridge-ipv6only + --target linux-arm64-clang-chip-tool-ipv6only + --target linux-arm64-clang-chip-tool-nodeps-ipv6only + --target linux-arm64-clang-dynamic-bridge-ipv6only + --target linux-arm64-clang-light-rpc-ipv6only + --target linux-arm64-clang-lock-ipv6only + --target linux-arm64-clang-minmdns + --target linux-arm64-clang-ota-provider-nodeps-ipv6only + --target linux-arm64-clang-ota-requestor-nodeps-ipv6only + --target linux-arm64-clang-python-bindings + --target linux-arm64-clang-shell-ipv6only + --target linux-arm64-clang-thermostat-ipv6only + --target linux-arm64-clang-tv-app-ipv6only + --target linux-arm64-clang-tv-casting-app-ipv6only + --target linux-x64-address-resolve-tool + --target linux-x64-all-clusters-app-nodeps-ipv6only + --target linux-x64-all-clusters-coverage + --target linux-x64-bridge-ipv6only + --target linux-x64-chip-cert + --target linux-x64-chip-tool-ipv6only + --target linux-x64-dynamic-bridge-ipv6only + --target linux-x64-light-rpc-ipv6only + --target linux-x64-lock-ipv6only + --target linux-x64-minmdns-ipv6only + --target linux-x64-ota-provider-ipv6only + --target linux-x64-ota-requestor-ipv6only + --target linux-x64-python-bindings + --target linux-x64-rpc-console + --target linux-x64-shell-ipv6only + --target linux-x64-thermostat-ipv6only + --target linux-x64-tv-app-ipv6only + --target linux-x64-tv-casting-app-ipv6only + build + --create-archives /workspace/artifacts/ waitFor: - Bootstrap - EFR32 @@ -127,8 +143,9 @@ steps: args: - >- ./scripts/build/build_examples.py --enable-flashbundle - --target-glob 'android-arm64-chip-tool' build --create-archives - /workspace/artifacts/ + --target 'android-arm64-chip-tool' + build + --create-archives /workspace/artifacts/ waitFor: - Bootstrap - Linux From 1375af387c4b48abc248fbe62f6ac3ad9aff781c Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 10:51:37 -0400 Subject: [PATCH 32/68] Restyle --- scripts/build/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/build/README.md b/scripts/build/README.md index 194b550ca90f5c..bba19a6ab174bf 100644 --- a/scripts/build/README.md +++ b/scripts/build/README.md @@ -56,4 +56,3 @@ Usage examples: ```sh ./scripts/build/build_examples.py--log-level fatal targets ``` - From c8675172d0aff19ddabe142f210f1eaf09b222ae Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 11:07:27 -0400 Subject: [PATCH 33/68] convert some globs into instructions, fix some target compile bugs --- integrations/cloudbuild/build-all.yaml | 62 +++++++++++++------------- scripts/build/build/target.py | 6 ++- scripts/build/build/targets.py | 6 +-- 3 files changed, 38 insertions(+), 36 deletions(-) diff --git a/integrations/cloudbuild/build-all.yaml b/integrations/cloudbuild/build-all.yaml index 22bd58ef5ab6a8..c9bf06cf2ac07c 100644 --- a/integrations/cloudbuild/build-all.yaml +++ b/integrations/cloudbuild/build-all.yaml @@ -69,35 +69,35 @@ steps: --target infineon-psoc6-all-clusters-minimal --target infineon-psoc6-light --target infineon-psoc6-lock - --target k32w-contact-release - --target k32w-light-release-no-ota - --target k32w-lock-release - --target k32w-shell-release - --target linux-arm64-clang-all-clusters - --target linux-arm64-clang-all-clusters-app-nodeps - --target linux-arm64-clang-all-clusters-app-nodeps-ipv6only - --target linux-arm64-clang-all-clusters-ipv6only - --target linux-arm64-clang-all-clusters-minimal - --target linux-arm64-clang-all-clusters-minimal-ipv6only - --target linux-arm64-clang-bridge-ipv6only - --target linux-arm64-clang-chip-tool - --target linux-arm64-clang-chip-tool-ipv6only - --target linux-arm64-clang-chip-tool-nodeps - --target linux-arm64-clang-chip-tool-nodeps-ipv6only - --target linux-arm64-clang-dynamic-bridge-ipv6only - --target linux-arm64-clang-light - --target linux-arm64-clang-light-ipv6only - --target linux-arm64-clang-light-rpc - --target linux-arm64-clang-light-rpc-ipv6only - --target linux-arm64-clang-lock - --target linux-arm64-clang-lock-ipv6only - --target linux-arm64-clang-minmdns - --target linux-arm64-clang-ota-provider-nodeps-ipv6only - --target linux-arm64-clang-ota-requestor-nodeps-ipv6only - --target linux-arm64-clang-shell-ipv6only - --target linux-arm64-clang-thermostat-ipv6only - --target linux-arm64-clang-tv-app-ipv6only - --target linux-arm64-clang-tv-casting-app-ipv6only + --target k32w-contact + --target k32w-light-no-ota + --target k32w-lock + --target k32w-shell + --target linux-arm64-all-clusters-clang + --target linux-arm64-all-clusters-app-nodeps + --target linux-arm64-all-clusters-app-nodeps-ipv6only + --target linux-arm64-all-clusters-ipv6only-clang + --target linux-arm64-all-clusters-minimal-clang + --target linux-arm64-all-clusters-minimal-ipv6only-clang + --target linux-arm64-bridge-ipv6only-clang + --target linux-arm64-chip-tool-clang + --target linux-arm64-chip-tool-ipv6only-clang + --target linux-arm64-chip-tool-nodeps + --target linux-arm64-chip-tool-nodeps-ipv6only + --target linux-arm64-dynamic-bridge-ipv6only-clang + --target linux-arm64-light-clang + --target linux-arm64-light-ipv6only-clang + --target linux-arm64-light-rpc-clang + --target linux-arm64-light-rpc-ipv6only-clang + --target linux-arm64-lock-clang + --target linux-arm64-lock-ipv6only-clang + --target linux-arm64-minmdns-clang + --target linux-arm64-ota-provider-nodeps-ipv6only + --target linux-arm64-ota-requestor-nodeps-ipv6only + --target linux-arm64-shell-ipv6only-clang + --target linux-arm64-thermostat-ipv6only-clang + --target linux-arm64-tv-app-ipv6only-clang + --target linux-arm64-tv-casting-app-ipv6only-clang --target linux-x64-address-resolve-tool --target linux-x64-all-clusters --target linux-x64-all-clusters-nodeps @@ -139,8 +139,8 @@ steps: --target nrf-nrf5340dk-all-clusters --target nrf-nrf5340dk-all-clusters-minimal --target nrf-nrf5340dk-shell - --target qpg-light - --target qpg-shell + --target qpg-qpg6105-light + --target qpg-qpg6105-shell --target telink-tlsr9518adk80d-light --target tizen-arm-light build diff --git a/scripts/build/build/target.py b/scripts/build/build/target.py index 19091220ec069d..9d7be75afceef3 100644 --- a/scripts/build/build/target.py +++ b/scripts/build/build/target.py @@ -65,7 +65,7 @@ class TargetPart: except_if_re: Optional[re.Pattern] = None def __init__(self, name, **kargs): - self.name = name + self.name = name.lower() self.build_arguments = kargs def OnlyIfRe(self, expr: str): @@ -180,7 +180,7 @@ def __init__(self, name, builder_class, **kwargs): """ Sets up a new build tareget starting with the given builder class and initial arguments """ - self.name = name + self.name = name.lower() self.builder_class = builder_class self.create_kw_args = kwargs @@ -337,6 +337,8 @@ def Create(self, name: str, runner, repository_path: str, output_prefix: str, for part in parts: kargs.update(part.build_arguments) + logging.info("Preparing builder '%s'" % (name,)) + builder = self.builder_class(repository_path, runner=runner, **kargs) builder.target = self builder.identifier = name diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 94750aa8b0fa23..bbcd0710ced139 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -52,7 +52,7 @@ def BuildHostTarget(): ] if cross_compile: - board_parts.append(TargetPart('arm64', board=HostBoard.ARM64).OnlyIfRe('-clang')) + board_parts.append(TargetPart('arm64', board=HostBoard.ARM64).OnlyIfRe('-(clang|nodeps)')) target.AppendFixedTargets(board_parts) @@ -447,13 +447,13 @@ def BuildIMXTarget(): def BuildMW320Target(): target = BuildTarget('mw320', MW320Builder) - target.AppendFixedTargets([TargetPart('all-clusters-app', board=MW320App.ALL_CLUSTERS)]) + target.AppendFixedTargets([TargetPart('all-clusters-app', app=MW320App.ALL_CLUSTERS)]) return target def BuildGenioTarget(): target = BuildTarget('genio', GenioBuilder) - target.AppendFixedTargets([TargetPart('lighting-app', board=GenioApp.LIGHT)]) + target.AppendFixedTargets([TargetPart('lighting-app', app=GenioApp.LIGHT)]) return target From fcdae7c4850338c02bbe963180f7c47391732f65 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 11:35:01 -0400 Subject: [PATCH 34/68] make unit tests pass --- scripts/build/BUILD.gn | 5 +- scripts/build/build/test_target.py | 5 +- scripts/build/test.py | 25 +- .../testdata/all_targets_except_host.txt | 300 -- .../build/testdata/build_all_except_host.txt | 2616 ----------------- scripts/build/testdata/build_linux_on_x64.txt | 674 ----- .../glob_star_targets_except_host.txt | 130 - 7 files changed, 8 insertions(+), 3747 deletions(-) delete mode 100644 scripts/build/testdata/all_targets_except_host.txt delete mode 100644 scripts/build/testdata/build_all_except_host.txt delete mode 100644 scripts/build/testdata/build_linux_on_x64.txt delete mode 100644 scripts/build/testdata/glob_star_targets_except_host.txt diff --git a/scripts/build/BUILD.gn b/scripts/build/BUILD.gn index a82ae166466975..ec2d222a2ba9a2 100644 --- a/scripts/build/BUILD.gn +++ b/scripts/build/BUILD.gn @@ -22,13 +22,12 @@ pw_python_package("build_examples") { setup = [ "setup.py" ] inputs = [ # Dependency for the unit test - "testdata/all_targets_except_host.txt", - "testdata/build_all_except_host.txt", - "testdata/build_linux_on_x64.txt", + "testdata/all_targets_linux_x64.txt", ] sources = [ "build/__init__.py", + "build/target.py", "build/targets.py", "build_examples.py", "builders/__init__.py", diff --git a/scripts/build/build/test_target.py b/scripts/build/build/test_target.py index 6ee66a6d08facc..a8d5bda2667eb0 100755 --- a/scripts/build/build/test_target.py +++ b/scripts/build/build/test_target.py @@ -21,8 +21,9 @@ import sys import os - sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) - from build.target import * + sys.path.append(os.path.abspath(os.path.dirname(__file__))) + from target import * + class FakeBuilder: diff --git a/scripts/build/test.py b/scripts/build/test.py index 056d34166a40ef..88d9bee83cdb8e 100644 --- a/scripts/build/test.py +++ b/scripts/build/test.py @@ -91,31 +91,12 @@ def assertCommandOutput(self, expected_file: str, args: List[str]): '{root}').replace(OUT, '{out}').strip()) self.fail(msg) - def test_output(self): - self.assertCommandOutput( - os.path.join('testdata', 'build_all_except_host.txt'), - '--skip-target-glob {linux,darwin}-* build'.split(' ') - ) - - def test_targets(self): - self.assertCommandOutput( - os.path.join('testdata', 'all_targets_except_host.txt'), - '--skip-target-glob {linux,darwin}-* targets'.split(' ') - ) - - def test_glob_targets(self): - self.assertCommandOutput( - os.path.join('testdata', 'glob_star_targets_except_host.txt'), - '--target-glob * --skip-target-glob {linux,darwin}-* targets'.split( - ' ') - ) - @unittest.skipUnless(sys.platform == 'linux', 'Build on linux test') @unittest.skipUnless(os.uname().machine == 'x86_64', 'Validation x64 and crosscompile, requires linux x64') - def test_linux_build(self): + def test_linux64_targets(self): self.assertCommandOutput( - os.path.join('testdata', 'build_linux_on_x64.txt'), - '--target-glob {linux}-* build'.split(' ') + os.path.join('testdata', 'all_targets_linux_x64.txt'), + 'targets'.split(' ') ) diff --git a/scripts/build/testdata/all_targets_except_host.txt b/scripts/build/testdata/all_targets_except_host.txt deleted file mode 100644 index d1f5868963d6b1..00000000000000 --- a/scripts/build/testdata/all_targets_except_host.txt +++ /dev/null @@ -1,300 +0,0 @@ -ameba-amebad-all-clusters -ameba-amebad-all-clusters-minimal -ameba-amebad-light -ameba-amebad-pigweed -android-androidstudio-arm-chip-tool -android-androidstudio-arm64-chip-tool -android-androidstudio-x64-chip-tool -android-androidstudio-x86-chip-tool -android-arm-chip-tool -android-arm-tv-casting-app -android-arm-tv-server -android-arm64-chip-test -android-arm64-chip-tool -android-arm64-tv-casting-app -android-arm64-tv-server -android-x64-chip-tool -android-x64-tv-server -android-x86-chip-tool -android-x86-tv-server -bl602-light -bouffalolab-BL706-IoT-DVK-light -bouffalolab-BL706-IoT-DVK-light-rpc -bouffalolab-BL706-NIGHT-LIGHT-light -cc13x2x7_26x2x7-all-clusters -cc13x2x7_26x2x7-all-clusters-minimal -cc13x2x7_26x2x7-lock-ftd -cc13x2x7_26x2x7-lock-mtd -cc13x2x7_26x2x7-pump -cc13x2x7_26x2x7-pump-controller -cc13x2x7_26x2x7-shell -cyw30739-cyw930739m2evb_01-light -cyw30739-cyw930739m2evb_01-lock -cyw30739-cyw930739m2evb_01-ota-requestor (NOGLOB: Running out of XIP flash space) -cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging -efr32-brd4161a-light -efr32-brd4161a-light-rpc -efr32-brd4161a-light-rpc-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4161a-light-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4161a-lock -efr32-brd4161a-lock-rpc -efr32-brd4161a-lock-rpc-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4161a-lock-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4161a-switch -efr32-brd4161a-switch-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4161a-unit-test -efr32-brd4161a-unit-test-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4161a-window-covering -efr32-brd4161a-window-covering-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4163a-light (NOGLOB: only user requested) -efr32-brd4163a-light-rpc (NOGLOB: only user requested) -efr32-brd4163a-light-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4163a-light-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4163a-lock (NOGLOB: only user requested) -efr32-brd4163a-lock-rpc (NOGLOB: only user requested) -efr32-brd4163a-lock-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4163a-lock-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4163a-switch (NOGLOB: only user requested) -efr32-brd4163a-switch-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4163a-unit-test (NOGLOB: only user requested) -efr32-brd4163a-unit-test-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4163a-window-covering (NOGLOB: only user requested) -efr32-brd4163a-window-covering-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4164a-light (NOGLOB: only user requested) -efr32-brd4164a-light-rpc (NOGLOB: only user requested) -efr32-brd4164a-light-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4164a-light-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4164a-lock (NOGLOB: only user requested) -efr32-brd4164a-lock-rpc (NOGLOB: only user requested) -efr32-brd4164a-lock-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4164a-lock-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4164a-switch (NOGLOB: only user requested) -efr32-brd4164a-switch-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4164a-unit-test (NOGLOB: only user requested) -efr32-brd4164a-unit-test-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4164a-window-covering (NOGLOB: only user requested) -efr32-brd4164a-window-covering-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4166a-light (NOGLOB: only user requested) -efr32-brd4166a-light-rpc (NOGLOB: only user requested) -efr32-brd4166a-light-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4166a-light-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4166a-lock (NOGLOB: only user requested) -efr32-brd4166a-lock-rpc (NOGLOB: only user requested) -efr32-brd4166a-lock-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4166a-lock-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4166a-switch (NOGLOB: only user requested) -efr32-brd4166a-switch-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4166a-unit-test (NOGLOB: only user requested) -efr32-brd4166a-unit-test-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4166a-window-covering (NOGLOB: only user requested) -efr32-brd4166a-window-covering-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4170a-light (NOGLOB: only user requested) -efr32-brd4170a-light-rpc (NOGLOB: only user requested) -efr32-brd4170a-light-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4170a-light-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4170a-lock (NOGLOB: only user requested) -efr32-brd4170a-lock-rpc (NOGLOB: only user requested) -efr32-brd4170a-lock-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4170a-lock-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4170a-switch (NOGLOB: only user requested) -efr32-brd4170a-switch-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4170a-unit-test (NOGLOB: only user requested) -efr32-brd4170a-unit-test-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4170a-window-covering (NOGLOB: only user requested) -efr32-brd4170a-window-covering-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4186a-light (NOGLOB: only user requested) -efr32-brd4186a-light-rpc (NOGLOB: only user requested) -efr32-brd4186a-light-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4186a-light-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4186a-lock (NOGLOB: only user requested) -efr32-brd4186a-lock-rpc (NOGLOB: only user requested) -efr32-brd4186a-lock-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4186a-lock-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4186a-switch (NOGLOB: only user requested) -efr32-brd4186a-switch-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4186a-unit-test (NOGLOB: only user requested) -efr32-brd4186a-unit-test-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4186a-window-covering (NOGLOB: only user requested) -efr32-brd4186a-window-covering-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4187a-light (NOGLOB: only user requested) -efr32-brd4187a-light-rpc (NOGLOB: only user requested) -efr32-brd4187a-light-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4187a-light-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4187a-lock (NOGLOB: only user requested) -efr32-brd4187a-lock-rpc (NOGLOB: only user requested) -efr32-brd4187a-lock-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4187a-lock-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4187a-switch (NOGLOB: only user requested) -efr32-brd4187a-switch-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4187a-unit-test (NOGLOB: only user requested) -efr32-brd4187a-unit-test-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4187a-window-covering (NOGLOB: only user requested) -efr32-brd4187a-window-covering-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4187c-light -efr32-brd4187c-light-rpc -efr32-brd4187c-light-rpc-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4187c-light-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4187c-lock -efr32-brd4187c-lock-rpc -efr32-brd4187c-lock-rpc-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4187c-lock-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4187c-switch -efr32-brd4187c-switch-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4187c-unit-test -efr32-brd4187c-unit-test-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4187c-window-covering -efr32-brd4187c-window-covering-with-ota-requestor (NOGLOB: Reduce default build variants) -efr32-brd4304a-light (NOGLOB: only user requested) -efr32-brd4304a-light-rpc (NOGLOB: only user requested) -efr32-brd4304a-light-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4304a-light-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4304a-lock (NOGLOB: only user requested) -efr32-brd4304a-lock-rpc (NOGLOB: only user requested) -efr32-brd4304a-lock-rpc-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4304a-lock-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4304a-switch (NOGLOB: only user requested) -efr32-brd4304a-switch-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4304a-unit-test (NOGLOB: only user requested) -efr32-brd4304a-unit-test-with-ota-requestor (NOGLOB: only user requested) -efr32-brd4304a-window-covering (NOGLOB: only user requested) -efr32-brd4304a-window-covering-with-ota-requestor (NOGLOB: only user requested) -esp32-c3devkit-all-clusters -esp32-c3devkit-all-clusters-minimal -esp32-devkitc-all-clusters -esp32-devkitc-all-clusters-ipv6only -esp32-devkitc-all-clusters-minimal -esp32-devkitc-all-clusters-minimal-ipv6only -esp32-devkitc-bridge -esp32-devkitc-light -esp32-devkitc-light-rpc -esp32-devkitc-lock -esp32-devkitc-ota-requestor -esp32-devkitc-ota-requestor-rpc -esp32-devkitc-shell -esp32-devkitc-temperature-measurement -esp32-devkitc-temperature-measurement-rpc -esp32-m5stack-all-clusters -esp32-m5stack-all-clusters-ipv6only -esp32-m5stack-all-clusters-minimal -esp32-m5stack-all-clusters-minimal-ipv6only -esp32-m5stack-all-clusters-minimal-rpc -esp32-m5stack-all-clusters-minimal-rpc-ipv6only -esp32-m5stack-all-clusters-rpc -esp32-m5stack-all-clusters-rpc-ipv6only -esp32-m5stack-ota-requestor -esp32-m5stack-ota-requestor-rpc -esp32-qemu-tests -genio-lighting-app -imx-all-clusters-app -imx-all-clusters-app-release -imx-all-clusters-minimal-app -imx-all-clusters-minimal-app-release -imx-chip-tool -imx-chip-tool-release -imx-lighting-app -imx-lighting-app-release -imx-ota-provider-app -imx-ota-provider-app-release -imx-thermostat -imx-thermostat-release -infineon-psoc6-all-clusters -infineon-psoc6-all-clusters-minimal -infineon-psoc6-all-clusters-minimal-ota (NOGLOB: Reduce default build variants) -infineon-psoc6-all-clusters-minimal-ota-updateimage (NOGLOB: Reduce default build variants) -infineon-psoc6-all-clusters-minimal-updateimage (NOGLOB: Reduce default build variants) -infineon-psoc6-all-clusters-ota (NOGLOB: Reduce default build variants) -infineon-psoc6-all-clusters-ota-updateimage (NOGLOB: Reduce default build variants) -infineon-psoc6-all-clusters-updateimage (NOGLOB: Reduce default build variants) -infineon-psoc6-light -infineon-psoc6-light-ota (NOGLOB: Reduce default build variants) -infineon-psoc6-light-ota-updateimage (NOGLOB: Reduce default build variants) -infineon-psoc6-light-updateimage (NOGLOB: Reduce default build variants) -infineon-psoc6-lock -infineon-psoc6-lock-ota (NOGLOB: Reduce default build variants) -infineon-psoc6-lock-ota-updateimage (NOGLOB: Reduce default build variants) -infineon-psoc6-lock-updateimage (NOGLOB: Reduce default build variants) -k32w-contact-low-power-release (NOGLOB: Only on demand build) -k32w-contact-release -k32w-light-ota-se (NOGLOB: Only on demand build) -k32w-light-release-no-ota -k32w-lock-low-power-release (NOGLOB: Only on demand build) -k32w-lock-release -k32w-shell-release -mbed-CY8CPROTO_062_4343W-all-clusters-debug (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-all-clusters-develop (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-all-clusters-minimal-debug (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-all-clusters-minimal-develop (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release -mbed-CY8CPROTO_062_4343W-all-clusters-release -mbed-CY8CPROTO_062_4343W-light-debug (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-light-develop (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-light-release -mbed-CY8CPROTO_062_4343W-lock-debug (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-lock-develop (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-lock-release -mbed-CY8CPROTO_062_4343W-pigweed-debug (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-pigweed-develop (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-pigweed-release -mbed-CY8CPROTO_062_4343W-shell-debug (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-shell-develop (NOGLOB: Compile only for debugging purpose - https://os.mbed.com/docs/mbed-os/latest/program-setup/build-profiles-and-rules.html) -mbed-CY8CPROTO_062_4343W-shell-release -mw320-all-clusters-app -nrf-native-posix-64-tests -nrf-nrf52840dk-all-clusters -nrf-nrf52840dk-all-clusters-minimal -nrf-nrf52840dk-light -nrf-nrf52840dk-light-rpc -nrf-nrf52840dk-lock -nrf-nrf52840dk-pump -nrf-nrf52840dk-pump-controller -nrf-nrf52840dk-shell -nrf-nrf52840dongle-all-clusters (NOGLOB: Out of flash when linking) -nrf-nrf52840dongle-all-clusters-minimal -nrf-nrf52840dongle-light -nrf-nrf5340dk-all-clusters -nrf-nrf5340dk-all-clusters-minimal -nrf-nrf5340dk-light -nrf-nrf5340dk-light-rpc (NOGLOB: Compile failure due to pw_build args not forwarded to proto compiler. https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/66760) -nrf-nrf5340dk-lock -nrf-nrf5340dk-pump -nrf-nrf5340dk-pump-controller -nrf-nrf5340dk-shell -qpg-light -qpg-lock -qpg-persistent-storage -qpg-shell -telink-tlsr9518adk80d-light -telink-tlsr9518adk80d-light-switch -telink-tlsr9518adk80d-ota-requestor -tizen-arm-all-clusters -tizen-arm-all-clusters-asan (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-minimal -tizen-arm-all-clusters-minimal-asan (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-minimal-no-ble (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-minimal-no-ble-asan (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-minimal-no-ble-no-wifi (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-minimal-no-ble-no-wifi-asan (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-minimal-no-wifi (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-minimal-no-wifi-asan (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-no-ble (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-no-ble-asan (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-no-ble-no-wifi (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-no-ble-no-wifi-asan (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-no-wifi (NOGLOB: Reduce default build variants) -tizen-arm-all-clusters-no-wifi-asan (NOGLOB: Reduce default build variants) -tizen-arm-chip-tool -tizen-arm-chip-tool-asan (NOGLOB: Reduce default build variants) -tizen-arm-chip-tool-no-ble (NOGLOB: Reduce default build variants) -tizen-arm-chip-tool-no-ble-asan (NOGLOB: Reduce default build variants) -tizen-arm-chip-tool-no-ble-no-wifi (NOGLOB: Reduce default build variants) -tizen-arm-chip-tool-no-ble-no-wifi-asan (NOGLOB: Reduce default build variants) -tizen-arm-chip-tool-no-wifi (NOGLOB: Reduce default build variants) -tizen-arm-chip-tool-no-wifi-asan (NOGLOB: Reduce default build variants) -tizen-arm-light -tizen-arm-light-asan (NOGLOB: Reduce default build variants) -tizen-arm-light-no-ble (NOGLOB: Reduce default build variants) -tizen-arm-light-no-ble-asan (NOGLOB: Reduce default build variants) -tizen-arm-light-no-ble-no-wifi (NOGLOB: Reduce default build variants) -tizen-arm-light-no-ble-no-wifi-asan (NOGLOB: Reduce default build variants) -tizen-arm-light-no-wifi (NOGLOB: Reduce default build variants) -tizen-arm-light-no-wifi-asan (NOGLOB: Reduce default build variants) diff --git a/scripts/build/testdata/build_all_except_host.txt b/scripts/build/testdata/build_all_except_host.txt deleted file mode 100644 index 4fc2526a63d102..00000000000000 --- a/scripts/build/testdata/build_all_except_host.txt +++ /dev/null @@ -1,2616 +0,0 @@ -# Commands will be run in CHIP project root. -cd "{root}" - -# Generating ameba-amebad-all-clusters -bash -c '$AMEBA_PATH/project/realtek_amebaD_va0_example/GCC-RELEASE/build.sh {root} ninja {out}/ameba-amebad-all-clusters all-clusters-app' - -# Generating ameba-amebad-all-clusters-minimal -bash -c '$AMEBA_PATH/project/realtek_amebaD_va0_example/GCC-RELEASE/build.sh {root} ninja {out}/ameba-amebad-all-clusters-minimal all-clusters-minimal-app' - -# Generating ameba-amebad-light -bash -c '$AMEBA_PATH/project/realtek_amebaD_va0_example/GCC-RELEASE/build.sh {root} ninja {out}/ameba-amebad-light lighting-app' - -# Generating ameba-amebad-pigweed -bash -c '$AMEBA_PATH/project/realtek_amebaD_va0_example/GCC-RELEASE/build.sh -r {root} ninja {out}/ameba-amebad-pigweed pigweed-app' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-androidstudio-arm-chip-tool -gn gen --check --fail-on-unused-args {out}/android-androidstudio-arm-chip-tool '--args=target_os="android" target_cpu="arm" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' --ide=json --json-ide-script=//scripts/examples/gn_to_cmakelists.py - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-androidstudio-arm64-chip-tool -gn gen --check --fail-on-unused-args {out}/android-androidstudio-arm64-chip-tool '--args=target_os="android" target_cpu="arm64" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' --ide=json --json-ide-script=//scripts/examples/gn_to_cmakelists.py - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-androidstudio-x64-chip-tool -gn gen --check --fail-on-unused-args {out}/android-androidstudio-x64-chip-tool '--args=target_os="android" target_cpu="x64" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' --ide=json --json-ide-script=//scripts/examples/gn_to_cmakelists.py - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-androidstudio-x86-chip-tool -gn gen --check --fail-on-unused-args {out}/android-androidstudio-x86-chip-tool '--args=target_os="android" target_cpu="x86" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' --ide=json --json-ide-script=//scripts/examples/gn_to_cmakelists.py - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-arm-chip-tool -gn gen --check --fail-on-unused-args {out}/android-arm-chip-tool '--args=target_os="android" target_cpu="arm" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-arm-tv-casting-app -gn gen --check --fail-on-unused-args {out}/android-arm-tv-casting-app '--args=target_os="android" target_cpu="arm" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" chip_config_network_layer_ble=false ' --root={root}/examples/tv-casting-app/android/ - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-arm-tv-server -gn gen --check --fail-on-unused-args {out}/android-arm-tv-server '--args=target_os="android" target_cpu="arm" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" chip_config_network_layer_ble=false ' --root={root}/examples/tv-app/android/ - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-arm64-chip-test -gn gen --check --fail-on-unused-args {out}/android-arm64-chip-test '--args=target_os="android" target_cpu="arm64" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-arm64-chip-tool -gn gen --check --fail-on-unused-args {out}/android-arm64-chip-tool '--args=target_os="android" target_cpu="arm64" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-arm64-tv-casting-app -gn gen --check --fail-on-unused-args {out}/android-arm64-tv-casting-app '--args=target_os="android" target_cpu="arm64" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" chip_config_network_layer_ble=false ' --root={root}/examples/tv-casting-app/android/ - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-arm64-tv-server -gn gen --check --fail-on-unused-args {out}/android-arm64-tv-server '--args=target_os="android" target_cpu="arm64" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" chip_config_network_layer_ble=false ' --root={root}/examples/tv-app/android/ - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-x64-chip-tool -gn gen --check --fail-on-unused-args {out}/android-x64-chip-tool '--args=target_os="android" target_cpu="x64" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-x64-tv-server -gn gen --check --fail-on-unused-args {out}/android-x64-tv-server '--args=target_os="android" target_cpu="x64" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" chip_config_network_layer_ble=false ' --root={root}/examples/tv-app/android/ - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-x86-chip-tool -gn gen --check --fail-on-unused-args {out}/android-x86-chip-tool '--args=target_os="android" target_cpu="x86" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Setting up Android deps through Gradle -python3 third_party/android_deps/set_up_android_deps.py - -# Generating android-x86-tv-server -gn gen --check --fail-on-unused-args {out}/android-x86-tv-server '--args=target_os="android" target_cpu="x86" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" chip_config_network_layer_ble=false ' --root={root}/examples/tv-app/android/ - -# Accepting NDK licenses @ tools -bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' - -# Generating bl602-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/bouffalolab/bl602 '--args=custom_toolchain="{root}/../../examples/platform/bouffalolab/common/toolchain:riscv_gcc" bl602_board="BL-HWC-G1"' {out}/bl602-light - -# Generating bouffalolab-BL706-IoT-DVK-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/bouffalolab/bl702 '--args=custom_toolchain="{root}/../../examples/platform/bouffalolab/common/toolchain:riscv_gcc" board="BL706-IoT-DVK" module_type="BL706C-22"' {out}/bouffalolab-BL706-IoT-DVK-light - -# Generating bouffalolab-BL706-IoT-DVK-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/bouffalolab/bl702 '--args=custom_toolchain="{root}/../../examples/platform/bouffalolab/common/toolchain:riscv_gcc" board="BL706-IoT-DVK" module_type="BL706C-22" import("//with_pw_rpc.gni")' {out}/bouffalolab-BL706-IoT-DVK-light-rpc - -# Generating bouffalolab-BL706-NIGHT-LIGHT-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/bouffalolab/bl702 '--args=custom_toolchain="{root}/../../examples/platform/bouffalolab/common/toolchain:riscv_gcc" board="BL706-NIGHT-LIGHT" module_type="BL702"' {out}/bouffalolab-BL706-NIGHT-LIGHT-light - -# Generating cc13x2x7_26x2x7-all-clusters -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT"' {out}/cc13x2x7_26x2x7-all-clusters - -# Generating cc13x2x7_26x2x7-all-clusters-minimal -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT"' {out}/cc13x2x7_26x2x7-all-clusters-minimal - -# Generating cc13x2x7_26x2x7-lock-ftd -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT" chip_openthread_ftd=true chip_progress_logging=false' {out}/cc13x2x7_26x2x7-lock-ftd - -# Generating cc13x2x7_26x2x7-lock-mtd -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT" chip_openthread_ftd=false' {out}/cc13x2x7_26x2x7-lock-mtd - -# Generating cc13x2x7_26x2x7-pump -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/pump-app/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT"' {out}/cc13x2x7_26x2x7-pump - -# Generating cc13x2x7_26x2x7-pump-controller -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/pump-controller-app/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT"' {out}/cc13x2x7_26x2x7-pump-controller - -# Generating cc13x2x7_26x2x7-shell -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/shell/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT"' {out}/cc13x2x7_26x2x7-shell - -# Generating cyw30739-cyw930739m2evb_01-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/cyw30739 {out}/cyw30739-cyw930739m2evb_01-light - -# Generating cyw30739-cyw930739m2evb_01-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/cyw30739 {out}/cyw30739-cyw930739m2evb_01-lock - -# Generating cyw30739-cyw930739m2evb_01-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/infineon/cyw30739 {out}/cyw30739-cyw930739m2evb_01-ota-requestor - -# Generating cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/infineon/cyw30739 --args=chip_progress_logging=false {out}/cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging - -# Generating efr32-brd4161a-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4161A"' {out}/efr32-brd4161a-light - -# Generating efr32-brd4161a-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4161A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4161a-light-rpc - -# Generating efr32-brd4161a-light-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4161A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4161a-light-rpc-with-ota-requestor - -# Generating efr32-brd4161a-light-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4161A" chip_enable_ota_requestor=true' {out}/efr32-brd4161a-light-with-ota-requestor - -# Generating efr32-brd4161a-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4161A"' {out}/efr32-brd4161a-lock - -# Generating efr32-brd4161a-lock-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4161A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4161a-lock-rpc - -# Generating efr32-brd4161a-lock-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4161A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4161a-lock-rpc-with-ota-requestor - -# Generating efr32-brd4161a-lock-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4161A" chip_enable_ota_requestor=true' {out}/efr32-brd4161a-lock-with-ota-requestor - -# Generating efr32-brd4161a-switch -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4161A"' {out}/efr32-brd4161a-switch - -# Generating efr32-brd4161a-switch-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4161A" chip_enable_ota_requestor=true' {out}/efr32-brd4161a-switch-with-ota-requestor - -# Generating efr32-brd4161a-unit-test -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4161A"' {out}/efr32-brd4161a-unit-test - -# Generating efr32-brd4161a-unit-test-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4161A" chip_enable_ota_requestor=true' {out}/efr32-brd4161a-unit-test-with-ota-requestor - -# Generating efr32-brd4161a-window-covering -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4161A"' {out}/efr32-brd4161a-window-covering - -# Generating efr32-brd4161a-window-covering-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4161A" chip_enable_ota_requestor=true' {out}/efr32-brd4161a-window-covering-with-ota-requestor - -# Generating efr32-brd4163a-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4163A"' {out}/efr32-brd4163a-light - -# Generating efr32-brd4163a-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4163A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4163a-light-rpc - -# Generating efr32-brd4163a-light-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4163A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4163a-light-rpc-with-ota-requestor - -# Generating efr32-brd4163a-light-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4163A" chip_enable_ota_requestor=true' {out}/efr32-brd4163a-light-with-ota-requestor - -# Generating efr32-brd4163a-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4163A"' {out}/efr32-brd4163a-lock - -# Generating efr32-brd4163a-lock-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4163A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4163a-lock-rpc - -# Generating efr32-brd4163a-lock-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4163A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4163a-lock-rpc-with-ota-requestor - -# Generating efr32-brd4163a-lock-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4163A" chip_enable_ota_requestor=true' {out}/efr32-brd4163a-lock-with-ota-requestor - -# Generating efr32-brd4163a-switch -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4163A"' {out}/efr32-brd4163a-switch - -# Generating efr32-brd4163a-switch-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4163A" chip_enable_ota_requestor=true' {out}/efr32-brd4163a-switch-with-ota-requestor - -# Generating efr32-brd4163a-unit-test -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4163A"' {out}/efr32-brd4163a-unit-test - -# Generating efr32-brd4163a-unit-test-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4163A" chip_enable_ota_requestor=true' {out}/efr32-brd4163a-unit-test-with-ota-requestor - -# Generating efr32-brd4163a-window-covering -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4163A"' {out}/efr32-brd4163a-window-covering - -# Generating efr32-brd4163a-window-covering-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4163A" chip_enable_ota_requestor=true' {out}/efr32-brd4163a-window-covering-with-ota-requestor - -# Generating efr32-brd4164a-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4164A"' {out}/efr32-brd4164a-light - -# Generating efr32-brd4164a-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4164A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4164a-light-rpc - -# Generating efr32-brd4164a-light-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4164A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4164a-light-rpc-with-ota-requestor - -# Generating efr32-brd4164a-light-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4164A" chip_enable_ota_requestor=true' {out}/efr32-brd4164a-light-with-ota-requestor - -# Generating efr32-brd4164a-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4164A"' {out}/efr32-brd4164a-lock - -# Generating efr32-brd4164a-lock-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4164A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4164a-lock-rpc - -# Generating efr32-brd4164a-lock-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4164A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4164a-lock-rpc-with-ota-requestor - -# Generating efr32-brd4164a-lock-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4164A" chip_enable_ota_requestor=true' {out}/efr32-brd4164a-lock-with-ota-requestor - -# Generating efr32-brd4164a-switch -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4164A"' {out}/efr32-brd4164a-switch - -# Generating efr32-brd4164a-switch-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4164A" chip_enable_ota_requestor=true' {out}/efr32-brd4164a-switch-with-ota-requestor - -# Generating efr32-brd4164a-unit-test -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4164A"' {out}/efr32-brd4164a-unit-test - -# Generating efr32-brd4164a-unit-test-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4164A" chip_enable_ota_requestor=true' {out}/efr32-brd4164a-unit-test-with-ota-requestor - -# Generating efr32-brd4164a-window-covering -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4164A"' {out}/efr32-brd4164a-window-covering - -# Generating efr32-brd4164a-window-covering-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4164A" chip_enable_ota_requestor=true' {out}/efr32-brd4164a-window-covering-with-ota-requestor - -# Generating efr32-brd4166a-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4166A"' {out}/efr32-brd4166a-light - -# Generating efr32-brd4166a-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4166A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4166a-light-rpc - -# Generating efr32-brd4166a-light-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4166A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4166a-light-rpc-with-ota-requestor - -# Generating efr32-brd4166a-light-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4166A" chip_enable_ota_requestor=true' {out}/efr32-brd4166a-light-with-ota-requestor - -# Generating efr32-brd4166a-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4166A"' {out}/efr32-brd4166a-lock - -# Generating efr32-brd4166a-lock-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4166A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4166a-lock-rpc - -# Generating efr32-brd4166a-lock-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4166A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4166a-lock-rpc-with-ota-requestor - -# Generating efr32-brd4166a-lock-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4166A" chip_enable_ota_requestor=true' {out}/efr32-brd4166a-lock-with-ota-requestor - -# Generating efr32-brd4166a-switch -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4166A"' {out}/efr32-brd4166a-switch - -# Generating efr32-brd4166a-switch-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4166A" chip_enable_ota_requestor=true' {out}/efr32-brd4166a-switch-with-ota-requestor - -# Generating efr32-brd4166a-unit-test -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4166A"' {out}/efr32-brd4166a-unit-test - -# Generating efr32-brd4166a-unit-test-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4166A" chip_enable_ota_requestor=true' {out}/efr32-brd4166a-unit-test-with-ota-requestor - -# Generating efr32-brd4166a-window-covering -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4166A"' {out}/efr32-brd4166a-window-covering - -# Generating efr32-brd4166a-window-covering-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4166A" chip_enable_ota_requestor=true' {out}/efr32-brd4166a-window-covering-with-ota-requestor - -# Generating efr32-brd4170a-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4170A"' {out}/efr32-brd4170a-light - -# Generating efr32-brd4170a-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4170A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4170a-light-rpc - -# Generating efr32-brd4170a-light-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4170A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4170a-light-rpc-with-ota-requestor - -# Generating efr32-brd4170a-light-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4170A" chip_enable_ota_requestor=true' {out}/efr32-brd4170a-light-with-ota-requestor - -# Generating efr32-brd4170a-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4170A"' {out}/efr32-brd4170a-lock - -# Generating efr32-brd4170a-lock-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4170A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4170a-lock-rpc - -# Generating efr32-brd4170a-lock-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4170A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4170a-lock-rpc-with-ota-requestor - -# Generating efr32-brd4170a-lock-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4170A" chip_enable_ota_requestor=true' {out}/efr32-brd4170a-lock-with-ota-requestor - -# Generating efr32-brd4170a-switch -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4170A"' {out}/efr32-brd4170a-switch - -# Generating efr32-brd4170a-switch-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4170A" chip_enable_ota_requestor=true' {out}/efr32-brd4170a-switch-with-ota-requestor - -# Generating efr32-brd4170a-unit-test -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4170A"' {out}/efr32-brd4170a-unit-test - -# Generating efr32-brd4170a-unit-test-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4170A" chip_enable_ota_requestor=true' {out}/efr32-brd4170a-unit-test-with-ota-requestor - -# Generating efr32-brd4170a-window-covering -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4170A"' {out}/efr32-brd4170a-window-covering - -# Generating efr32-brd4170a-window-covering-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4170A" chip_enable_ota_requestor=true' {out}/efr32-brd4170a-window-covering-with-ota-requestor - -# Generating efr32-brd4186a-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4186A"' {out}/efr32-brd4186a-light - -# Generating efr32-brd4186a-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4186A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4186a-light-rpc - -# Generating efr32-brd4186a-light-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4186A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4186a-light-rpc-with-ota-requestor - -# Generating efr32-brd4186a-light-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4186A" chip_enable_ota_requestor=true' {out}/efr32-brd4186a-light-with-ota-requestor - -# Generating efr32-brd4186a-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4186A"' {out}/efr32-brd4186a-lock - -# Generating efr32-brd4186a-lock-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4186A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4186a-lock-rpc - -# Generating efr32-brd4186a-lock-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4186A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4186a-lock-rpc-with-ota-requestor - -# Generating efr32-brd4186a-lock-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4186A" chip_enable_ota_requestor=true' {out}/efr32-brd4186a-lock-with-ota-requestor - -# Generating efr32-brd4186a-switch -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4186A"' {out}/efr32-brd4186a-switch - -# Generating efr32-brd4186a-switch-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4186A" chip_enable_ota_requestor=true' {out}/efr32-brd4186a-switch-with-ota-requestor - -# Generating efr32-brd4186a-unit-test -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4186A"' {out}/efr32-brd4186a-unit-test - -# Generating efr32-brd4186a-unit-test-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4186A" chip_enable_ota_requestor=true' {out}/efr32-brd4186a-unit-test-with-ota-requestor - -# Generating efr32-brd4186a-window-covering -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4186A"' {out}/efr32-brd4186a-window-covering - -# Generating efr32-brd4186a-window-covering-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4186A" chip_enable_ota_requestor=true' {out}/efr32-brd4186a-window-covering-with-ota-requestor - -# Generating efr32-brd4187a-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4187A"' {out}/efr32-brd4187a-light - -# Generating efr32-brd4187a-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4187A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4187a-light-rpc - -# Generating efr32-brd4187a-light-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4187A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4187a-light-rpc-with-ota-requestor - -# Generating efr32-brd4187a-light-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4187A" chip_enable_ota_requestor=true' {out}/efr32-brd4187a-light-with-ota-requestor - -# Generating efr32-brd4187a-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4187A"' {out}/efr32-brd4187a-lock - -# Generating efr32-brd4187a-lock-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4187A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4187a-lock-rpc - -# Generating efr32-brd4187a-lock-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4187A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4187a-lock-rpc-with-ota-requestor - -# Generating efr32-brd4187a-lock-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4187A" chip_enable_ota_requestor=true' {out}/efr32-brd4187a-lock-with-ota-requestor - -# Generating efr32-brd4187a-switch -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4187A"' {out}/efr32-brd4187a-switch - -# Generating efr32-brd4187a-switch-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4187A" chip_enable_ota_requestor=true' {out}/efr32-brd4187a-switch-with-ota-requestor - -# Generating efr32-brd4187a-unit-test -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4187A"' {out}/efr32-brd4187a-unit-test - -# Generating efr32-brd4187a-unit-test-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4187A" chip_enable_ota_requestor=true' {out}/efr32-brd4187a-unit-test-with-ota-requestor - -# Generating efr32-brd4187a-window-covering -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4187A"' {out}/efr32-brd4187a-window-covering - -# Generating efr32-brd4187a-window-covering-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4187A" chip_enable_ota_requestor=true' {out}/efr32-brd4187a-window-covering-with-ota-requestor - -# Generating efr32-brd4187c-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4187C"' {out}/efr32-brd4187c-light - -# Generating efr32-brd4187c-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4187C" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4187c-light-rpc - -# Generating efr32-brd4187c-light-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4187C" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4187c-light-rpc-with-ota-requestor - -# Generating efr32-brd4187c-light-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4187C" chip_enable_ota_requestor=true' {out}/efr32-brd4187c-light-with-ota-requestor - -# Generating efr32-brd4187c-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4187C"' {out}/efr32-brd4187c-lock - -# Generating efr32-brd4187c-lock-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4187C" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4187c-lock-rpc - -# Generating efr32-brd4187c-lock-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4187C" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4187c-lock-rpc-with-ota-requestor - -# Generating efr32-brd4187c-lock-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4187C" chip_enable_ota_requestor=true' {out}/efr32-brd4187c-lock-with-ota-requestor - -# Generating efr32-brd4187c-switch -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4187C"' {out}/efr32-brd4187c-switch - -# Generating efr32-brd4187c-switch-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4187C" chip_enable_ota_requestor=true' {out}/efr32-brd4187c-switch-with-ota-requestor - -# Generating efr32-brd4187c-unit-test -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4187C"' {out}/efr32-brd4187c-unit-test - -# Generating efr32-brd4187c-unit-test-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4187C" chip_enable_ota_requestor=true' {out}/efr32-brd4187c-unit-test-with-ota-requestor - -# Generating efr32-brd4187c-window-covering -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4187C"' {out}/efr32-brd4187c-window-covering - -# Generating efr32-brd4187c-window-covering-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4187C" chip_enable_ota_requestor=true' {out}/efr32-brd4187c-window-covering-with-ota-requestor - -# Generating efr32-brd4304a-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4304A"' {out}/efr32-brd4304a-light - -# Generating efr32-brd4304a-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4304A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4304a-light-rpc - -# Generating efr32-brd4304a-light-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4304A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4304a-light-rpc-with-ota-requestor - -# Generating efr32-brd4304a-light-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4304A" chip_enable_ota_requestor=true' {out}/efr32-brd4304a-light-with-ota-requestor - -# Generating efr32-brd4304a-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4304A"' {out}/efr32-brd4304a-lock - -# Generating efr32-brd4304a-lock-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4304A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4304a-lock-rpc - -# Generating efr32-brd4304a-lock-rpc-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4304A" is_debug=false import("//with_pw_rpc.gni") chip_enable_ota_requestor=true' {out}/efr32-brd4304a-lock-rpc-with-ota-requestor - -# Generating efr32-brd4304a-lock-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/efr32 '--args=silabs_board="BRD4304A" chip_enable_ota_requestor=true' {out}/efr32-brd4304a-lock-with-ota-requestor - -# Generating efr32-brd4304a-switch -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4304A"' {out}/efr32-brd4304a-switch - -# Generating efr32-brd4304a-switch-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/light-switch-app/efr32 '--args=silabs_board="BRD4304A" chip_enable_ota_requestor=true' {out}/efr32-brd4304a-switch-with-ota-requestor - -# Generating efr32-brd4304a-unit-test -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4304A"' {out}/efr32-brd4304a-unit-test - -# Generating efr32-brd4304a-unit-test-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4304A" chip_enable_ota_requestor=true' {out}/efr32-brd4304a-unit-test-with-ota-requestor - -# Generating efr32-brd4304a-window-covering -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4304A"' {out}/efr32-brd4304a-window-covering - -# Generating efr32-brd4304a-window-covering-with-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/window-app/efr32 '--args=silabs_board="BRD4304A" chip_enable_ota_requestor=true' {out}/efr32-brd4304a-window-covering-with-ota-requestor - -# Generating esp32-c3devkit-all-clusters -mkdir -p {out}/esp32-c3devkit-all-clusters - -cp examples/all-clusters-app/esp32/sdkconfig_c3devkit.defaults {out}/esp32-c3devkit-all-clusters/sdkconfig.defaults - -rm -f examples/all-clusters-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-c3devkit-all-clusters/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-c3devkit-all-clusters reconfigure' - -# Generating esp32-c3devkit-all-clusters-minimal -mkdir -p {out}/esp32-c3devkit-all-clusters-minimal - -cp examples/all-clusters-minimal-app/esp32/sdkconfig_c3devkit.defaults {out}/esp32-c3devkit-all-clusters-minimal/sdkconfig.defaults - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-c3devkit-all-clusters-minimal/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-c3devkit-all-clusters-minimal reconfigure' - -# Generating esp32-devkitc-all-clusters -mkdir -p {out}/esp32-devkitc-all-clusters - -cp examples/all-clusters-app/esp32/sdkconfig.defaults {out}/esp32-devkitc-all-clusters/sdkconfig.defaults - -rm -f examples/all-clusters-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-all-clusters/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-devkitc-all-clusters reconfigure' - -# Generating esp32-devkitc-all-clusters-ipv6only -mkdir -p {out}/esp32-devkitc-all-clusters-ipv6only - -cp examples/all-clusters-app/esp32/sdkconfig.defaults {out}/esp32-devkitc-all-clusters-ipv6only/sdkconfig.defaults - -rm -f examples/all-clusters-app/esp32/sdkconfig - -bash -c 'echo -e "\nCONFIG_DISABLE_IPV4=y\n" >>{out}/esp32-devkitc-all-clusters-ipv6only/sdkconfig.defaults' - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-all-clusters-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-devkitc-all-clusters-ipv6only reconfigure' - -# Generating esp32-devkitc-all-clusters-minimal -mkdir -p {out}/esp32-devkitc-all-clusters-minimal - -cp examples/all-clusters-minimal-app/esp32/sdkconfig.defaults {out}/esp32-devkitc-all-clusters-minimal/sdkconfig.defaults - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-all-clusters-minimal/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-devkitc-all-clusters-minimal reconfigure' - -# Generating esp32-devkitc-all-clusters-minimal-ipv6only -mkdir -p {out}/esp32-devkitc-all-clusters-minimal-ipv6only - -cp examples/all-clusters-minimal-app/esp32/sdkconfig.defaults {out}/esp32-devkitc-all-clusters-minimal-ipv6only/sdkconfig.defaults - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -bash -c 'echo -e "\nCONFIG_DISABLE_IPV4=y\n" >>{out}/esp32-devkitc-all-clusters-minimal-ipv6only/sdkconfig.defaults' - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-all-clusters-minimal-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-devkitc-all-clusters-minimal-ipv6only reconfigure' - -# Generating esp32-devkitc-bridge -mkdir -p {out}/esp32-devkitc-bridge - -cp examples/bridge-app/esp32/sdkconfig.defaults {out}/esp32-devkitc-bridge/sdkconfig.defaults - -rm -f examples/bridge-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-bridge/sdkconfig.defaults -idf.py -C examples/bridge-app/esp32 -B {out}/esp32-devkitc-bridge reconfigure' - -# Generating esp32-devkitc-light -mkdir -p {out}/esp32-devkitc-light - -cp examples/lighting-app/esp32/sdkconfig.defaults {out}/esp32-devkitc-light/sdkconfig.defaults - -rm -f examples/lighting-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-light/sdkconfig.defaults -idf.py -C examples/lighting-app/esp32 -B {out}/esp32-devkitc-light reconfigure' - -# Generating esp32-devkitc-light-rpc -mkdir -p {out}/esp32-devkitc-light-rpc - -cp examples/lighting-app/esp32/sdkconfig_rpc.defaults {out}/esp32-devkitc-light-rpc/sdkconfig.defaults - -rm -f examples/lighting-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-light-rpc/sdkconfig.defaults -idf.py -C examples/lighting-app/esp32 -B {out}/esp32-devkitc-light-rpc reconfigure' - -# Generating esp32-devkitc-lock -mkdir -p {out}/esp32-devkitc-lock - -cp examples/lock-app/esp32/sdkconfig.defaults {out}/esp32-devkitc-lock/sdkconfig.defaults - -rm -f examples/lock-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-lock/sdkconfig.defaults -idf.py -C examples/lock-app/esp32 -B {out}/esp32-devkitc-lock reconfigure' - -# Generating esp32-devkitc-ota-requestor -mkdir -p {out}/esp32-devkitc-ota-requestor - -cp examples/ota-requestor-app/esp32/sdkconfig.defaults {out}/esp32-devkitc-ota-requestor/sdkconfig.defaults - -rm -f examples/ota-requestor-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-ota-requestor/sdkconfig.defaults -idf.py -C examples/ota-requestor-app/esp32 -B {out}/esp32-devkitc-ota-requestor reconfigure' - -# Generating esp32-devkitc-ota-requestor-rpc -mkdir -p {out}/esp32-devkitc-ota-requestor-rpc - -cp examples/ota-requestor-app/esp32/sdkconfig_rpc.defaults {out}/esp32-devkitc-ota-requestor-rpc/sdkconfig.defaults - -rm -f examples/ota-requestor-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-ota-requestor-rpc/sdkconfig.defaults -idf.py -C examples/ota-requestor-app/esp32 -B {out}/esp32-devkitc-ota-requestor-rpc reconfigure' - -# Generating esp32-devkitc-shell -mkdir -p {out}/esp32-devkitc-shell - -cp examples/shell/esp32/sdkconfig.defaults {out}/esp32-devkitc-shell/sdkconfig.defaults - -rm -f examples/shell/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-shell/sdkconfig.defaults -idf.py -C examples/shell/esp32 -B {out}/esp32-devkitc-shell reconfigure' - -# Generating esp32-devkitc-temperature-measurement -mkdir -p {out}/esp32-devkitc-temperature-measurement - -cp examples/temperature-measurement-app/esp32/sdkconfig.defaults {out}/esp32-devkitc-temperature-measurement/sdkconfig.defaults - -rm -f examples/temperature-measurement-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-temperature-measurement/sdkconfig.defaults -idf.py -C examples/temperature-measurement-app/esp32 -B {out}/esp32-devkitc-temperature-measurement reconfigure' - -# Generating esp32-devkitc-temperature-measurement-rpc -mkdir -p {out}/esp32-devkitc-temperature-measurement-rpc - -cp examples/temperature-measurement-app/esp32/sdkconfig_rpc.defaults {out}/esp32-devkitc-temperature-measurement-rpc/sdkconfig.defaults - -rm -f examples/temperature-measurement-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-temperature-measurement-rpc/sdkconfig.defaults -idf.py -C examples/temperature-measurement-app/esp32 -B {out}/esp32-devkitc-temperature-measurement-rpc reconfigure' - -# Generating esp32-m5stack-all-clusters -mkdir -p {out}/esp32-m5stack-all-clusters - -cp examples/all-clusters-app/esp32/sdkconfig_m5stack.defaults {out}/esp32-m5stack-all-clusters/sdkconfig.defaults - -rm -f examples/all-clusters-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters reconfigure' - -# Generating esp32-m5stack-all-clusters-ipv6only -mkdir -p {out}/esp32-m5stack-all-clusters-ipv6only - -cp examples/all-clusters-app/esp32/sdkconfig_m5stack.defaults {out}/esp32-m5stack-all-clusters-ipv6only/sdkconfig.defaults - -rm -f examples/all-clusters-app/esp32/sdkconfig - -bash -c 'echo -e "\nCONFIG_DISABLE_IPV4=y\n" >>{out}/esp32-m5stack-all-clusters-ipv6only/sdkconfig.defaults' - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters-ipv6only reconfigure' - -# Generating esp32-m5stack-all-clusters-minimal -mkdir -p {out}/esp32-m5stack-all-clusters-minimal - -cp examples/all-clusters-minimal-app/esp32/sdkconfig_m5stack.defaults {out}/esp32-m5stack-all-clusters-minimal/sdkconfig.defaults - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal reconfigure' - -# Generating esp32-m5stack-all-clusters-minimal-ipv6only -mkdir -p {out}/esp32-m5stack-all-clusters-minimal-ipv6only - -cp examples/all-clusters-minimal-app/esp32/sdkconfig_m5stack.defaults {out}/esp32-m5stack-all-clusters-minimal-ipv6only/sdkconfig.defaults - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -bash -c 'echo -e "\nCONFIG_DISABLE_IPV4=y\n" >>{out}/esp32-m5stack-all-clusters-minimal-ipv6only/sdkconfig.defaults' - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal-ipv6only reconfigure' - -# Generating esp32-m5stack-all-clusters-minimal-rpc -mkdir -p {out}/esp32-m5stack-all-clusters-minimal-rpc - -cp examples/all-clusters-minimal-app/esp32/sdkconfig_m5stack_rpc.defaults {out}/esp32-m5stack-all-clusters-minimal-rpc/sdkconfig.defaults - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal-rpc/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal-rpc reconfigure' - -# Generating esp32-m5stack-all-clusters-minimal-rpc-ipv6only -mkdir -p {out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only - -cp examples/all-clusters-minimal-app/esp32/sdkconfig_m5stack_rpc.defaults {out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only/sdkconfig.defaults - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -bash -c 'echo -e "\nCONFIG_DISABLE_IPV4=y\n" >>{out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only/sdkconfig.defaults' - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only reconfigure' - -# Generating esp32-m5stack-all-clusters-rpc -mkdir -p {out}/esp32-m5stack-all-clusters-rpc - -cp examples/all-clusters-app/esp32/sdkconfig_m5stack_rpc.defaults {out}/esp32-m5stack-all-clusters-rpc/sdkconfig.defaults - -rm -f examples/all-clusters-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-rpc/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters-rpc reconfigure' - -# Generating esp32-m5stack-all-clusters-rpc-ipv6only -mkdir -p {out}/esp32-m5stack-all-clusters-rpc-ipv6only - -cp examples/all-clusters-app/esp32/sdkconfig_m5stack_rpc.defaults {out}/esp32-m5stack-all-clusters-rpc-ipv6only/sdkconfig.defaults - -rm -f examples/all-clusters-app/esp32/sdkconfig - -bash -c 'echo -e "\nCONFIG_DISABLE_IPV4=y\n" >>{out}/esp32-m5stack-all-clusters-rpc-ipv6only/sdkconfig.defaults' - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-rpc-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters-rpc-ipv6only reconfigure' - -# Generating esp32-m5stack-ota-requestor -mkdir -p {out}/esp32-m5stack-ota-requestor - -cp examples/ota-requestor-app/esp32/sdkconfig_m5stack.defaults {out}/esp32-m5stack-ota-requestor/sdkconfig.defaults - -rm -f examples/ota-requestor-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-ota-requestor/sdkconfig.defaults -idf.py -C examples/ota-requestor-app/esp32 -B {out}/esp32-m5stack-ota-requestor reconfigure' - -# Generating esp32-m5stack-ota-requestor-rpc -mkdir -p {out}/esp32-m5stack-ota-requestor-rpc - -cp examples/ota-requestor-app/esp32/sdkconfig_m5stack_rpc.defaults {out}/esp32-m5stack-ota-requestor-rpc/sdkconfig.defaults - -rm -f examples/ota-requestor-app/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-ota-requestor-rpc/sdkconfig.defaults -idf.py -C examples/ota-requestor-app/esp32 -B {out}/esp32-m5stack-ota-requestor-rpc reconfigure' - -# Generating esp32-qemu-tests -mkdir -p {out}/esp32-qemu-tests - -cp src/test_driver/esp32/sdkconfig_qemu.defaults {out}/esp32-qemu-tests/sdkconfig.defaults - -rm -f src/test_driver/esp32/sdkconfig - -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-qemu-tests/sdkconfig.defaults -idf.py -C src/test_driver/esp32 -B {out}/esp32-qemu-tests reconfigure' - -# Generating genio-lighting-app -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/genio {out}/genio-lighting-app - -# Generating imx-all-clusters-app -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" optimize_debug=true' {out}/imx-all-clusters-app - -# Generating imx-all-clusters-app-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" is_debug=false' {out}/imx-all-clusters-app-release - -# Generating imx-all-clusters-minimal-app -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" optimize_debug=true' {out}/imx-all-clusters-minimal-app - -# Generating imx-all-clusters-minimal-app-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" is_debug=false' {out}/imx-all-clusters-minimal-app-release - -# Generating imx-chip-tool -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" optimize_debug=true' {out}/imx-chip-tool - -# Generating imx-chip-tool-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" is_debug=false' {out}/imx-chip-tool-release - -# Generating imx-lighting-app -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" optimize_debug=true' {out}/imx-lighting-app - -# Generating imx-lighting-app-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" is_debug=false' {out}/imx-lighting-app-release - -# Generating imx-ota-provider-app -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" optimize_debug=true' {out}/imx-ota-provider-app - -# Generating imx-ota-provider-app-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" is_debug=false' {out}/imx-ota-provider-app-release - -# Generating imx-thermostat -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/thermostat/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" optimize_debug=true' {out}/imx-thermostat - -# Generating imx-thermostat-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/thermostat/linux '--args=treat_warnings_as_errors=false target_os="linux" target_cpu="arm64" arm_arch="armv8-a" import("//build_overrides/build.gni") custom_toolchain="${build_root}/toolchain/custom" sysroot="IMX_SDK_ROOT/sysroots/cortexa53-crypto-poky-linux" target_cflags=[ "-DCHIP_DEVICE_CONFIG_WIFI_STATION_IF_NAME=\"mlan0\"", "-DCHIP_DEVICE_CONFIG_LINUX_DHCPC_CMD=\"udhcpc -b -i %s \"" ] target_cc="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc" target_cxx="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++" target_ar="IMX_SDK_ROOT/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ar" is_debug=false' {out}/imx-thermostat-release - -# Generating infineon-psoc6-all-clusters -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012"' {out}/infineon-psoc6-all-clusters - -# Generating infineon-psoc6-all-clusters-minimal -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012"' {out}/infineon-psoc6-all-clusters-minimal - -# Generating infineon-psoc6-all-clusters-minimal-ota -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-psoc6-all-clusters-minimal-ota - -# Generating infineon-psoc6-all-clusters-minimal-ota-updateimage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-psoc6-all-clusters-minimal-ota-updateimage - -# Generating infineon-psoc6-all-clusters-minimal-updateimage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-psoc6-all-clusters-minimal-updateimage - -# Generating infineon-psoc6-all-clusters-ota -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-psoc6-all-clusters-ota - -# Generating infineon-psoc6-all-clusters-ota-updateimage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-psoc6-all-clusters-ota-updateimage - -# Generating infineon-psoc6-all-clusters-updateimage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-psoc6-all-clusters-updateimage - -# Generating infineon-psoc6-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012"' {out}/infineon-psoc6-light - -# Generating infineon-psoc6-light-ota -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-psoc6-light-ota - -# Generating infineon-psoc6-light-ota-updateimage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-psoc6-light-ota-updateimage - -# Generating infineon-psoc6-light-updateimage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-psoc6-light-updateimage - -# Generating infineon-psoc6-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012"' {out}/infineon-psoc6-lock - -# Generating infineon-psoc6-lock-ota -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true' {out}/infineon-psoc6-lock-ota - -# Generating infineon-psoc6-lock-ota-updateimage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" chip_enable_ota_requestor=true build_update_image=true' {out}/infineon-psoc6-lock-ota-updateimage - -# Generating infineon-psoc6-lock-updateimage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/infineon/psoc6 '--args=psoc6_board="CY8CKIT-062S2-43012" build_update_image=true' {out}/infineon-psoc6-lock-updateimage - -{root}/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh - -# Generating k32w-contact-low-power-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/contact-sensor-app/nxp/k32w/k32w0 '--args=k32w0_sdk_root="TEST_NXP_K32W0_SDK_ROOT" chip_with_low_power=1 chip_pw_tokenizer_logging=true is_debug=false chip_logging=false chip_crypto="tinycrypt" mbedtls_repo="//third_party/connectedhomeip/third_party/nxp/libs/mbedtls"' {out}/k32w-contact-low-power-release - -{root}/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh - -# Generating k32w-contact-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/contact-sensor-app/nxp/k32w/k32w0 '--args=k32w0_sdk_root="TEST_NXP_K32W0_SDK_ROOT" chip_with_low_power=0 chip_pw_tokenizer_logging=true is_debug=false chip_crypto="tinycrypt" mbedtls_repo="//third_party/connectedhomeip/third_party/nxp/libs/mbedtls"' {out}/k32w-contact-release - -{root}/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh - -# Generating k32w-light-ota-se -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/nxp/k32w/k32w0 '--args=k32w0_sdk_root="TEST_NXP_K32W0_SDK_ROOT" chip_with_low_power=0 is_debug=false chip_enable_ble=false chip_with_se05x=true' {out}/k32w-light-ota-se - -{root}/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh - -# Generating k32w-light-release-no-ota -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/nxp/k32w/k32w0 '--args=k32w0_sdk_root="TEST_NXP_K32W0_SDK_ROOT" chip_with_low_power=0 chip_pw_tokenizer_logging=true is_debug=false chip_enable_ota_requestor=false chip_crypto="tinycrypt" mbedtls_repo="//third_party/connectedhomeip/third_party/nxp/libs/mbedtls"' {out}/k32w-light-release-no-ota - -{root}/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh - -# Generating k32w-lock-low-power-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/nxp/k32w/k32w0 '--args=k32w0_sdk_root="TEST_NXP_K32W0_SDK_ROOT" chip_with_low_power=1 is_debug=false chip_logging=false' {out}/k32w-lock-low-power-release - -{root}/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh - -# Generating k32w-lock-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/nxp/k32w/k32w0 '--args=k32w0_sdk_root="TEST_NXP_K32W0_SDK_ROOT" chip_with_low_power=0 is_debug=false' {out}/k32w-lock-release - -{root}/third_party/nxp/k32w0_sdk/sdk_fixes/patch_k32w_sdk.sh - -# Generating k32w-shell-release -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/shell/nxp/k32w/k32w0 '--args=k32w0_sdk_root="TEST_NXP_K32W0_SDK_ROOT" chip_with_low_power=0 is_debug=false chip_logging=false' {out}/k32w-shell-release - -# Generating config mbed-CY8CPROTO_062_4343W-all-clusters-debug -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/all-clusters-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-all-clusters-debug --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-all-clusters-debug -cmake -S {root}/examples/all-clusters-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-all-clusters-debug -GNinja -DCMAKE_BUILD_TYPE=debug -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-all-clusters-develop -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/all-clusters-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-all-clusters-develop --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-all-clusters-develop -cmake -S {root}/examples/all-clusters-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-all-clusters-develop -GNinja -DCMAKE_BUILD_TYPE=develop -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-all-clusters-minimal-debug -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/all-clusters-minimal-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-debug --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-all-clusters-minimal-debug -cmake -S {root}/examples/all-clusters-minimal-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-debug -GNinja -DCMAKE_BUILD_TYPE=debug -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-all-clusters-minimal-develop -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/all-clusters-minimal-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-develop --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-all-clusters-minimal-develop -cmake -S {root}/examples/all-clusters-minimal-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-develop -GNinja -DCMAKE_BUILD_TYPE=develop -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/all-clusters-minimal-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release -cmake -S {root}/examples/all-clusters-minimal-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release -GNinja -DCMAKE_BUILD_TYPE=release -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-all-clusters-release -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/all-clusters-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-all-clusters-release --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-all-clusters-release -cmake -S {root}/examples/all-clusters-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-all-clusters-release -GNinja -DCMAKE_BUILD_TYPE=release -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-light-debug -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/lighting-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-light-debug --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-light-debug -cmake -S {root}/examples/lighting-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-light-debug -GNinja -DCMAKE_BUILD_TYPE=debug -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-light-develop -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/lighting-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-light-develop --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-light-develop -cmake -S {root}/examples/lighting-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-light-develop -GNinja -DCMAKE_BUILD_TYPE=develop -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-light-release -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/lighting-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-light-release --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-light-release -cmake -S {root}/examples/lighting-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-light-release -GNinja -DCMAKE_BUILD_TYPE=release -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-lock-debug -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/lock-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-lock-debug --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-lock-debug -cmake -S {root}/examples/lock-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-lock-debug -GNinja -DCMAKE_BUILD_TYPE=debug -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-lock-develop -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/lock-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-lock-develop --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-lock-develop -cmake -S {root}/examples/lock-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-lock-develop -GNinja -DCMAKE_BUILD_TYPE=develop -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-lock-release -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/lock-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-lock-release --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-lock-release -cmake -S {root}/examples/lock-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-lock-release -GNinja -DCMAKE_BUILD_TYPE=release -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-pigweed-debug -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/pigweed-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-pigweed-debug --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-pigweed-debug -cmake -S {root}/examples/pigweed-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-pigweed-debug -GNinja -DCMAKE_BUILD_TYPE=debug -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-pigweed-develop -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/pigweed-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-pigweed-develop --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-pigweed-develop -cmake -S {root}/examples/pigweed-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-pigweed-develop -GNinja -DCMAKE_BUILD_TYPE=develop -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-pigweed-release -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/pigweed-app/mbed -o {out}/mbed-CY8CPROTO_062_4343W-pigweed-release --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-pigweed-release -cmake -S {root}/examples/pigweed-app/mbed -B {out}/mbed-CY8CPROTO_062_4343W-pigweed-release -GNinja -DCMAKE_BUILD_TYPE=release -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-shell-debug -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/shell/mbed -o {out}/mbed-CY8CPROTO_062_4343W-shell-debug --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-shell-debug -cmake -S {root}/examples/shell/mbed -B {out}/mbed-CY8CPROTO_062_4343W-shell-debug -GNinja -DCMAKE_BUILD_TYPE=debug -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-shell-develop -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/shell/mbed -o {out}/mbed-CY8CPROTO_062_4343W-shell-develop --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-shell-develop -cmake -S {root}/examples/shell/mbed -B {out}/mbed-CY8CPROTO_062_4343W-shell-develop -GNinja -DCMAKE_BUILD_TYPE=develop -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating config mbed-CY8CPROTO_062_4343W-shell-release -mbed-tools configure -t GCC_ARM -m CY8CPROTO_062_4343W -p {root}/examples/shell/mbed -o {out}/mbed-CY8CPROTO_062_4343W-shell-release --mbed-os-path {root}/third_party/mbed-os/repo - -# Generating mbed-CY8CPROTO_062_4343W-shell-release -cmake -S {root}/examples/shell/mbed -B {out}/mbed-CY8CPROTO_062_4343W-shell-release -GNinja -DCMAKE_BUILD_TYPE=release -DMBED_OS_PATH={root}/third_party/mbed-os/repo -DMBED_OS_POSIX_SOCKET_PATH={root}/third_party/mbed-os-posix-socket/repo - -# Generating mw320-all-clusters-app -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/nxp/mw320 {out}/mw320-all-clusters-app - -# Generating nrf-native-posix-64-tests -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-native-posix-64-tests -b native_posix_64 {root}/src/test_driver/nrfconnect' - -# Generating nrf-nrf52840dk-all-clusters -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dk-all-clusters -b nrf52840dk_nrf52840 {root}/examples/all-clusters-app/nrfconnect' - -# Generating nrf-nrf52840dk-all-clusters-minimal -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dk-all-clusters-minimal -b nrf52840dk_nrf52840 {root}/examples/all-clusters-minimal-app/nrfconnect' - -# Generating nrf-nrf52840dk-light -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dk-light -b nrf52840dk_nrf52840 {root}/examples/lighting-app/nrfconnect' - -# Generating nrf-nrf52840dk-light-rpc -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dk-light-rpc -b nrf52840dk_nrf52840 {root}/examples/lighting-app/nrfconnect -- -DOVERLAY_CONFIG=rpc.overlay' - -# Generating nrf-nrf52840dk-lock -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dk-lock -b nrf52840dk_nrf52840 {root}/examples/lock-app/nrfconnect' - -# Generating nrf-nrf52840dk-pump -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dk-pump -b nrf52840dk_nrf52840 {root}/examples/pump-app/nrfconnect' - -# Generating nrf-nrf52840dk-pump-controller -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dk-pump-controller -b nrf52840dk_nrf52840 {root}/examples/pump-controller-app/nrfconnect' - -# Generating nrf-nrf52840dk-shell -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dk-shell -b nrf52840dk_nrf52840 {root}/examples/shell/nrfconnect' - -# Generating nrf-nrf52840dongle-all-clusters -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dongle-all-clusters -b nrf52840dongle_nrf52840 {root}/examples/all-clusters-app/nrfconnect' - -# Generating nrf-nrf52840dongle-all-clusters-minimal -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dongle-all-clusters-minimal -b nrf52840dongle_nrf52840 {root}/examples/all-clusters-minimal-app/nrfconnect' - -# Generating nrf-nrf52840dongle-light -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf52840dongle-light -b nrf52840dongle_nrf52840 {root}/examples/lighting-app/nrfconnect -- -DCONF_FILE=prj_no_dfu.conf' - -# Generating nrf-nrf5340dk-all-clusters -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf5340dk-all-clusters -b nrf5340dk_nrf5340_cpuapp {root}/examples/all-clusters-app/nrfconnect' - -# Generating nrf-nrf5340dk-all-clusters-minimal -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf5340dk-all-clusters-minimal -b nrf5340dk_nrf5340_cpuapp {root}/examples/all-clusters-minimal-app/nrfconnect' - -# Generating nrf-nrf5340dk-light -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf5340dk-light -b nrf5340dk_nrf5340_cpuapp {root}/examples/lighting-app/nrfconnect' - -# Generating nrf-nrf5340dk-light-rpc -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf5340dk-light-rpc -b nrf5340dk_nrf5340_cpuapp {root}/examples/lighting-app/nrfconnect -- -DOVERLAY_CONFIG=rpc.overlay' - -# Generating nrf-nrf5340dk-lock -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf5340dk-lock -b nrf5340dk_nrf5340_cpuapp {root}/examples/lock-app/nrfconnect' - -# Generating nrf-nrf5340dk-pump -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf5340dk-pump -b nrf5340dk_nrf5340_cpuapp {root}/examples/pump-app/nrfconnect' - -# Generating nrf-nrf5340dk-pump-controller -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf5340dk-pump-controller -b nrf5340dk_nrf5340_cpuapp {root}/examples/pump-controller-app/nrfconnect' - -# Generating nrf-nrf5340dk-shell -bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; -export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; -west build --cmake-only -d {out}/nrf-nrf5340dk-shell -b nrf5340dk_nrf5340_cpuapp {root}/examples/shell/nrfconnect' - -# Generating qpg-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/qpg '--args=qpg_target_ic="qpg6105"' {out}/qpg-light - -# Generating qpg-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/qpg '--args=qpg_target_ic="qpg6105"' {out}/qpg-lock - -# Generating qpg-persistent-storage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/persistent-storage/qpg '--args=qpg_target_ic="qpg6105"' {out}/qpg-persistent-storage - -# Generating qpg-shell -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/shell/qpg '--args=qpg_target_ic="qpg6105"' {out}/qpg-shell - -# Generating telink-tlsr9518adk80d-light -bash -c 'export ZEPHYR_TOOLCHAIN_VARIANT=zephyr -export ZEPHYR_BASE="$TELINK_ZEPHYR_BASE" -export ZEPHYR_SDK_INSTALL_DIR="$TELINK_ZEPHYR_SDK_DIR" -source "$ZEPHYR_BASE/zephyr-env.sh"; -west build --cmake-only -d {out}/telink-tlsr9518adk80d-light -b tlsr9518adk80d {root}/examples/lighting-app/telink' - -# Generating telink-tlsr9518adk80d-light-switch -bash -c 'export ZEPHYR_TOOLCHAIN_VARIANT=zephyr -export ZEPHYR_BASE="$TELINK_ZEPHYR_BASE" -export ZEPHYR_SDK_INSTALL_DIR="$TELINK_ZEPHYR_SDK_DIR" -source "$ZEPHYR_BASE/zephyr-env.sh"; -west build --cmake-only -d {out}/telink-tlsr9518adk80d-light-switch -b tlsr9518adk80d {root}/examples/light-switch-app/telink' - -# Generating telink-tlsr9518adk80d-ota-requestor -bash -c 'export ZEPHYR_TOOLCHAIN_VARIANT=zephyr -export ZEPHYR_BASE="$TELINK_ZEPHYR_BASE" -export ZEPHYR_SDK_INSTALL_DIR="$TELINK_ZEPHYR_SDK_DIR" -source "$ZEPHYR_BASE/zephyr-env.sh"; -west build --cmake-only -d {out}/telink-tlsr9518adk80d-ota-requestor -b tlsr9518adk80d {root}/examples/ota-requestor-app/telink' - -# Generating tizen-arm-all-clusters -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/tizen '--args=target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters - -# Generating tizen-arm-all-clusters-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/tizen '--args=is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-asan - -# Generating tizen-arm-all-clusters-minimal -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/tizen '--args=target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-minimal - -# Generating tizen-arm-all-clusters-minimal-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/tizen '--args=is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-minimal-asan - -# Generating tizen-arm-all-clusters-minimal-no-ble -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/tizen '--args=chip_config_network_layer_ble=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-minimal-no-ble - -# Generating tizen-arm-all-clusters-minimal-no-ble-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/tizen '--args=chip_config_network_layer_ble=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-minimal-no-ble-asan - -# Generating tizen-arm-all-clusters-minimal-no-ble-no-wifi -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/tizen '--args=chip_config_network_layer_ble=false chip_enable_wifi=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-minimal-no-ble-no-wifi - -# Generating tizen-arm-all-clusters-minimal-no-ble-no-wifi-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/tizen '--args=chip_config_network_layer_ble=false chip_enable_wifi=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-minimal-no-ble-no-wifi-asan - -# Generating tizen-arm-all-clusters-minimal-no-wifi -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/tizen '--args=chip_enable_wifi=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-minimal-no-wifi - -# Generating tizen-arm-all-clusters-minimal-no-wifi-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/tizen '--args=chip_enable_wifi=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-minimal-no-wifi-asan - -# Generating tizen-arm-all-clusters-no-ble -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/tizen '--args=chip_config_network_layer_ble=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-no-ble - -# Generating tizen-arm-all-clusters-no-ble-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/tizen '--args=chip_config_network_layer_ble=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-no-ble-asan - -# Generating tizen-arm-all-clusters-no-ble-no-wifi -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/tizen '--args=chip_config_network_layer_ble=false chip_enable_wifi=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-no-ble-no-wifi - -# Generating tizen-arm-all-clusters-no-ble-no-wifi-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/tizen '--args=chip_config_network_layer_ble=false chip_enable_wifi=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-no-ble-no-wifi-asan - -# Generating tizen-arm-all-clusters-no-wifi -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/tizen '--args=chip_enable_wifi=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-no-wifi - -# Generating tizen-arm-all-clusters-no-wifi-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/tizen '--args=chip_enable_wifi=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-all-clusters-no-wifi-asan - -# Generating tizen-arm-chip-tool -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-chip-tool - -# Generating tizen-arm-chip-tool-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-chip-tool-asan - -# Generating tizen-arm-chip-tool-no-ble -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_config_network_layer_ble=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-chip-tool-no-ble - -# Generating tizen-arm-chip-tool-no-ble-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_config_network_layer_ble=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-chip-tool-no-ble-asan - -# Generating tizen-arm-chip-tool-no-ble-no-wifi -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_config_network_layer_ble=false chip_enable_wifi=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-chip-tool-no-ble-no-wifi - -# Generating tizen-arm-chip-tool-no-ble-no-wifi-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_config_network_layer_ble=false chip_enable_wifi=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-chip-tool-no-ble-no-wifi-asan - -# Generating tizen-arm-chip-tool-no-wifi -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_enable_wifi=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-chip-tool-no-wifi - -# Generating tizen-arm-chip-tool-no-wifi-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_enable_wifi=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-chip-tool-no-wifi-asan - -# Generating tizen-arm-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/tizen '--args=target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-light - -# Generating tizen-arm-light-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/tizen '--args=is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-light-asan - -# Generating tizen-arm-light-no-ble -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/tizen '--args=chip_config_network_layer_ble=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-light-no-ble - -# Generating tizen-arm-light-no-ble-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/tizen '--args=chip_config_network_layer_ble=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-light-no-ble-asan - -# Generating tizen-arm-light-no-ble-no-wifi -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/tizen '--args=chip_config_network_layer_ble=false chip_enable_wifi=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-light-no-ble-no-wifi - -# Generating tizen-arm-light-no-ble-no-wifi-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/tizen '--args=chip_config_network_layer_ble=false chip_enable_wifi=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-light-no-ble-no-wifi-asan - -# Generating tizen-arm-light-no-wifi -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/tizen '--args=chip_enable_wifi=false target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-light-no-wifi - -# Generating tizen-arm-light-no-wifi-asan -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/tizen '--args=chip_enable_wifi=false is_asan=true target_os="tizen" target_cpu="arm" tizen_sdk_root="TEST_TIZEN_SDK_ROOT" tizen_sdk_sysroot="TEST_TIZEN_SDK_SYSROOT"' {out}/tizen-arm-light-no-wifi-asan - -# Building ameba-amebad-all-clusters -ninja -C {out}/ameba-amebad-all-clusters - -# Building ameba-amebad-all-clusters-minimal -ninja -C {out}/ameba-amebad-all-clusters-minimal - -# Building ameba-amebad-light -ninja -C {out}/ameba-amebad-light - -# Building ameba-amebad-pigweed -ninja -C {out}/ameba-amebad-pigweed - -# Building APP android-androidstudio-arm-chip-tool -{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-arm-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=armeabi-v7a assembleDebug - -# Building APP android-androidstudio-arm64-chip-tool -{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-arm64-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=arm64-v8a assembleDebug - -# Building APP android-androidstudio-x64-chip-tool -{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-x64-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=x86_64 assembleDebug - -# Building APP android-androidstudio-x86-chip-tool -{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-androidstudio-x86-chip-tool -PmatterSdkSourceBuild=true -PmatterSourceBuildAbiFilters=x86 assembleDebug - -# Building JNI android-arm-chip-tool -ninja -C {out}/android-arm-chip-tool - -# Prepare Native libs android-arm-chip-tool -mkdir -p {root}/examples/android/CHIPTool/app/libs/jniLibs/armeabi-v7a - -cp {out}/android-arm-chip-tool/lib/jni/armeabi-v7a/libSetupPayloadParser.so {root}/examples/android/CHIPTool/app/libs/jniLibs/armeabi-v7a/libSetupPayloadParser.so - -cp {out}/android-arm-chip-tool/lib/jni/armeabi-v7a/libCHIPController.so {root}/examples/android/CHIPTool/app/libs/jniLibs/armeabi-v7a/libCHIPController.so - -cp {out}/android-arm-chip-tool/lib/jni/armeabi-v7a/libc++_shared.so {root}/examples/android/CHIPTool/app/libs/jniLibs/armeabi-v7a/libc++_shared.so - -cp {out}/android-arm-chip-tool/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTool/app/libs/CHIPController.jar - -cp {out}/android-arm-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTool/app/libs/SetupPayloadParser.jar - -cp {out}/android-arm-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTool/app/libs/AndroidPlatform.jar - -# Building APP android-arm-chip-tool -{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-arm-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm-chip-tool assembleDebug - -# Building JNI android-arm-tv-casting-app -ninja -C {out}/android-arm-tv-casting-app - -# Prepare Native libs android-arm-tv-casting-app -mkdir -p {root}/examples/tv-casting-app/android/App/app/libs/jniLibs/armeabi-v7a - -cp {out}/android-arm-tv-casting-app/lib/jni/armeabi-v7a/libc++_shared.so {root}/examples/tv-casting-app/android/App/app/libs/jniLibs/armeabi-v7a/libc++_shared.so - -cp {out}/android-arm-tv-casting-app/lib/jni/armeabi-v7a/libTvCastingApp.so {root}/examples/tv-casting-app/android/App/app/libs/jniLibs/armeabi-v7a/libTvCastingApp.so - -cp {out}/android-arm-tv-casting-app/lib/third_party/connectedhomeip/src/platform/android/AndroidPlatform.jar {root}/examples/tv-casting-app/android/App/app/libs/AndroidPlatform.jar - -cp {out}/android-arm-tv-casting-app/lib/third_party/connectedhomeip/src/app/server/java/CHIPAppServer.jar {root}/examples/tv-casting-app/android/App/app/libs/CHIPAppServer.jar - -cp {out}/android-arm-tv-casting-app/lib/TvCastingApp.jar {root}/examples/tv-casting-app/android/App/app/libs/TvCastingApp.jar - -# Building Example android-arm-tv-casting-app -{root}/examples/tv-casting-app/android/App/gradlew -p {root}/examples/tv-casting-app/android/App/ -PmatterBuildSrcDir={out}/android-arm-tv-casting-app -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm-tv-casting-app assembleDebug - -# Building JNI android-arm-tv-server -ninja -C {out}/android-arm-tv-server - -# Prepare Native libs android-arm-tv-server -mkdir -p {root}/examples/tv-app/android/App/app/libs/jniLibs/armeabi-v7a - -cp {out}/android-arm-tv-server/lib/jni/armeabi-v7a/libSetupPayloadParser.so {root}/examples/tv-app/android/App/app/libs/jniLibs/armeabi-v7a/libSetupPayloadParser.so - -cp {out}/android-arm-tv-server/lib/jni/armeabi-v7a/libc++_shared.so {root}/examples/tv-app/android/App/app/libs/jniLibs/armeabi-v7a/libc++_shared.so - -cp {out}/android-arm-tv-server/lib/jni/armeabi-v7a/libTvApp.so {root}/examples/tv-app/android/App/app/libs/jniLibs/armeabi-v7a/libTvApp.so - -cp {out}/android-arm-tv-server/lib/third_party/connectedhomeip/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/tv-app/android/App/app/libs/SetupPayloadParser.jar - -cp {out}/android-arm-tv-server/lib/third_party/connectedhomeip/src/platform/android/AndroidPlatform.jar {root}/examples/tv-app/android/App/app/libs/AndroidPlatform.jar - -cp {out}/android-arm-tv-server/lib/third_party/connectedhomeip/src/app/server/java/CHIPAppServer.jar {root}/examples/tv-app/android/App/app/libs/CHIPAppServer.jar - -cp {out}/android-arm-tv-server/lib/TvApp.jar {root}/examples/tv-app/android/App/app/libs/TvApp.jar - -# Building Example android-arm-tv-server, module platform-app -{root}/examples/tv-app/android/App/gradlew -p {root}/examples/tv-app/android/App/ -PmatterBuildSrcDir={out}/android-arm-tv-server -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm-tv-server/platform-app :platform-app:assembleDebug - -# Building Example android-arm-tv-server, module content-app -{root}/examples/tv-app/android/App/gradlew -p {root}/examples/tv-app/android/App/ -PmatterBuildSrcDir={out}/android-arm-tv-server -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm-tv-server/content-app :content-app:assembleDebug - -# Building JNI android-arm64-chip-test -ninja -C {out}/android-arm64-chip-test - -# Prepare Native libs android-arm64-chip-test -mkdir -p {root}/examples/android/CHIPTest/app/libs/jniLibs/arm64-v8a - -cp {out}/android-arm64-chip-test/lib/jni/arm64-v8a/libSetupPayloadParser.so {root}/examples/android/CHIPTest/app/libs/jniLibs/arm64-v8a/libSetupPayloadParser.so - -cp {out}/android-arm64-chip-test/lib/jni/arm64-v8a/libCHIPController.so {root}/examples/android/CHIPTest/app/libs/jniLibs/arm64-v8a/libCHIPController.so - -cp {out}/android-arm64-chip-test/lib/jni/arm64-v8a/libc++_shared.so {root}/examples/android/CHIPTest/app/libs/jniLibs/arm64-v8a/libc++_shared.so - -cp {out}/android-arm64-chip-test/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTest/app/libs/CHIPController.jar - -cp {out}/android-arm64-chip-test/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTest/app/libs/SetupPayloadParser.jar - -cp {out}/android-arm64-chip-test/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTest/app/libs/AndroidPlatform.jar - -# Building APP android-arm64-chip-test -{root}/examples/android/CHIPTest/gradlew -p {root}/examples/android/CHIPTest -PmatterBuildSrcDir={out}/android-arm64-chip-test -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-chip-test assembleDebug - -# Building JNI android-arm64-chip-tool -ninja -C {out}/android-arm64-chip-tool - -# Prepare Native libs android-arm64-chip-tool -mkdir -p {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a - -cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libSetupPayloadParser.so {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libSetupPayloadParser.so - -cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libCHIPController.so {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libCHIPController.so - -cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libc++_shared.so {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libc++_shared.so - -cp {out}/android-arm64-chip-tool/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTool/app/libs/CHIPController.jar - -cp {out}/android-arm64-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTool/app/libs/SetupPayloadParser.jar - -cp {out}/android-arm64-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTool/app/libs/AndroidPlatform.jar - -# Building APP android-arm64-chip-tool -{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-arm64-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-chip-tool assembleDebug - -# Building JNI android-arm64-tv-casting-app -ninja -C {out}/android-arm64-tv-casting-app - -# Prepare Native libs android-arm64-tv-casting-app -mkdir -p {root}/examples/tv-casting-app/android/App/app/libs/jniLibs/arm64-v8a - -cp {out}/android-arm64-tv-casting-app/lib/jni/arm64-v8a/libc++_shared.so {root}/examples/tv-casting-app/android/App/app/libs/jniLibs/arm64-v8a/libc++_shared.so - -cp {out}/android-arm64-tv-casting-app/lib/jni/arm64-v8a/libTvCastingApp.so {root}/examples/tv-casting-app/android/App/app/libs/jniLibs/arm64-v8a/libTvCastingApp.so - -cp {out}/android-arm64-tv-casting-app/lib/third_party/connectedhomeip/src/platform/android/AndroidPlatform.jar {root}/examples/tv-casting-app/android/App/app/libs/AndroidPlatform.jar - -cp {out}/android-arm64-tv-casting-app/lib/third_party/connectedhomeip/src/app/server/java/CHIPAppServer.jar {root}/examples/tv-casting-app/android/App/app/libs/CHIPAppServer.jar - -cp {out}/android-arm64-tv-casting-app/lib/TvCastingApp.jar {root}/examples/tv-casting-app/android/App/app/libs/TvCastingApp.jar - -# Building Example android-arm64-tv-casting-app -{root}/examples/tv-casting-app/android/App/gradlew -p {root}/examples/tv-casting-app/android/App/ -PmatterBuildSrcDir={out}/android-arm64-tv-casting-app -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-tv-casting-app assembleDebug - -# Building JNI android-arm64-tv-server -ninja -C {out}/android-arm64-tv-server - -# Prepare Native libs android-arm64-tv-server -mkdir -p {root}/examples/tv-app/android/App/app/libs/jniLibs/arm64-v8a - -cp {out}/android-arm64-tv-server/lib/jni/arm64-v8a/libSetupPayloadParser.so {root}/examples/tv-app/android/App/app/libs/jniLibs/arm64-v8a/libSetupPayloadParser.so - -cp {out}/android-arm64-tv-server/lib/jni/arm64-v8a/libc++_shared.so {root}/examples/tv-app/android/App/app/libs/jniLibs/arm64-v8a/libc++_shared.so - -cp {out}/android-arm64-tv-server/lib/jni/arm64-v8a/libTvApp.so {root}/examples/tv-app/android/App/app/libs/jniLibs/arm64-v8a/libTvApp.so - -cp {out}/android-arm64-tv-server/lib/third_party/connectedhomeip/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/tv-app/android/App/app/libs/SetupPayloadParser.jar - -cp {out}/android-arm64-tv-server/lib/third_party/connectedhomeip/src/platform/android/AndroidPlatform.jar {root}/examples/tv-app/android/App/app/libs/AndroidPlatform.jar - -cp {out}/android-arm64-tv-server/lib/third_party/connectedhomeip/src/app/server/java/CHIPAppServer.jar {root}/examples/tv-app/android/App/app/libs/CHIPAppServer.jar - -cp {out}/android-arm64-tv-server/lib/TvApp.jar {root}/examples/tv-app/android/App/app/libs/TvApp.jar - -# Building Example android-arm64-tv-server, module platform-app -{root}/examples/tv-app/android/App/gradlew -p {root}/examples/tv-app/android/App/ -PmatterBuildSrcDir={out}/android-arm64-tv-server -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-tv-server/platform-app :platform-app:assembleDebug - -# Building Example android-arm64-tv-server, module content-app -{root}/examples/tv-app/android/App/gradlew -p {root}/examples/tv-app/android/App/ -PmatterBuildSrcDir={out}/android-arm64-tv-server -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-tv-server/content-app :content-app:assembleDebug - -# Building JNI android-x64-chip-tool -ninja -C {out}/android-x64-chip-tool - -# Prepare Native libs android-x64-chip-tool -mkdir -p {root}/examples/android/CHIPTool/app/libs/jniLibs/x86_64 - -cp {out}/android-x64-chip-tool/lib/jni/x86_64/libSetupPayloadParser.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86_64/libSetupPayloadParser.so - -cp {out}/android-x64-chip-tool/lib/jni/x86_64/libCHIPController.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86_64/libCHIPController.so - -cp {out}/android-x64-chip-tool/lib/jni/x86_64/libc++_shared.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86_64/libc++_shared.so - -cp {out}/android-x64-chip-tool/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTool/app/libs/CHIPController.jar - -cp {out}/android-x64-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTool/app/libs/SetupPayloadParser.jar - -cp {out}/android-x64-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTool/app/libs/AndroidPlatform.jar - -# Building APP android-x64-chip-tool -{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-x64-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x64-chip-tool assembleDebug - -# Building JNI android-x64-tv-server -ninja -C {out}/android-x64-tv-server - -# Prepare Native libs android-x64-tv-server -mkdir -p {root}/examples/tv-app/android/App/app/libs/jniLibs/x86_64 - -cp {out}/android-x64-tv-server/lib/jni/x86_64/libSetupPayloadParser.so {root}/examples/tv-app/android/App/app/libs/jniLibs/x86_64/libSetupPayloadParser.so - -cp {out}/android-x64-tv-server/lib/jni/x86_64/libc++_shared.so {root}/examples/tv-app/android/App/app/libs/jniLibs/x86_64/libc++_shared.so - -cp {out}/android-x64-tv-server/lib/jni/x86_64/libTvApp.so {root}/examples/tv-app/android/App/app/libs/jniLibs/x86_64/libTvApp.so - -cp {out}/android-x64-tv-server/lib/third_party/connectedhomeip/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/tv-app/android/App/app/libs/SetupPayloadParser.jar - -cp {out}/android-x64-tv-server/lib/third_party/connectedhomeip/src/platform/android/AndroidPlatform.jar {root}/examples/tv-app/android/App/app/libs/AndroidPlatform.jar - -cp {out}/android-x64-tv-server/lib/third_party/connectedhomeip/src/app/server/java/CHIPAppServer.jar {root}/examples/tv-app/android/App/app/libs/CHIPAppServer.jar - -cp {out}/android-x64-tv-server/lib/TvApp.jar {root}/examples/tv-app/android/App/app/libs/TvApp.jar - -# Building Example android-x64-tv-server, module platform-app -{root}/examples/tv-app/android/App/gradlew -p {root}/examples/tv-app/android/App/ -PmatterBuildSrcDir={out}/android-x64-tv-server -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x64-tv-server/platform-app :platform-app:assembleDebug - -# Building Example android-x64-tv-server, module content-app -{root}/examples/tv-app/android/App/gradlew -p {root}/examples/tv-app/android/App/ -PmatterBuildSrcDir={out}/android-x64-tv-server -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x64-tv-server/content-app :content-app:assembleDebug - -# Building JNI android-x86-chip-tool -ninja -C {out}/android-x86-chip-tool - -# Prepare Native libs android-x86-chip-tool -mkdir -p {root}/examples/android/CHIPTool/app/libs/jniLibs/x86 - -cp {out}/android-x86-chip-tool/lib/jni/x86/libSetupPayloadParser.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86/libSetupPayloadParser.so - -cp {out}/android-x86-chip-tool/lib/jni/x86/libCHIPController.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86/libCHIPController.so - -cp {out}/android-x86-chip-tool/lib/jni/x86/libc++_shared.so {root}/examples/android/CHIPTool/app/libs/jniLibs/x86/libc++_shared.so - -cp {out}/android-x86-chip-tool/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTool/app/libs/CHIPController.jar - -cp {out}/android-x86-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTool/app/libs/SetupPayloadParser.jar - -cp {out}/android-x86-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTool/app/libs/AndroidPlatform.jar - -# Building APP android-x86-chip-tool -{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-x86-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x86-chip-tool assembleDebug - -# Building JNI android-x86-tv-server -ninja -C {out}/android-x86-tv-server - -# Prepare Native libs android-x86-tv-server -mkdir -p {root}/examples/tv-app/android/App/app/libs/jniLibs/x86 - -cp {out}/android-x86-tv-server/lib/jni/x86/libSetupPayloadParser.so {root}/examples/tv-app/android/App/app/libs/jniLibs/x86/libSetupPayloadParser.so - -cp {out}/android-x86-tv-server/lib/jni/x86/libc++_shared.so {root}/examples/tv-app/android/App/app/libs/jniLibs/x86/libc++_shared.so - -cp {out}/android-x86-tv-server/lib/jni/x86/libTvApp.so {root}/examples/tv-app/android/App/app/libs/jniLibs/x86/libTvApp.so - -cp {out}/android-x86-tv-server/lib/third_party/connectedhomeip/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/tv-app/android/App/app/libs/SetupPayloadParser.jar - -cp {out}/android-x86-tv-server/lib/third_party/connectedhomeip/src/platform/android/AndroidPlatform.jar {root}/examples/tv-app/android/App/app/libs/AndroidPlatform.jar - -cp {out}/android-x86-tv-server/lib/third_party/connectedhomeip/src/app/server/java/CHIPAppServer.jar {root}/examples/tv-app/android/App/app/libs/CHIPAppServer.jar - -cp {out}/android-x86-tv-server/lib/TvApp.jar {root}/examples/tv-app/android/App/app/libs/TvApp.jar - -# Building Example android-x86-tv-server, module platform-app -{root}/examples/tv-app/android/App/gradlew -p {root}/examples/tv-app/android/App/ -PmatterBuildSrcDir={out}/android-x86-tv-server -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x86-tv-server/platform-app :platform-app:assembleDebug - -# Building Example android-x86-tv-server, module content-app -{root}/examples/tv-app/android/App/gradlew -p {root}/examples/tv-app/android/App/ -PmatterBuildSrcDir={out}/android-x86-tv-server -PmatterSdkSourceBuild=false -PbuildDir={out}/android-x86-tv-server/content-app :content-app:assembleDebug - -# Building bl602-light -ninja -C {out}/bl602-light - -# Building bouffalolab-BL706-IoT-DVK-light -ninja -C {out}/bouffalolab-BL706-IoT-DVK-light - -# Building bouffalolab-BL706-IoT-DVK-light-rpc -ninja -C {out}/bouffalolab-BL706-IoT-DVK-light-rpc - -# Building bouffalolab-BL706-NIGHT-LIGHT-light -ninja -C {out}/bouffalolab-BL706-NIGHT-LIGHT-light - -# Building cc13x2x7_26x2x7-all-clusters -ninja -C {out}/cc13x2x7_26x2x7-all-clusters - -# Building cc13x2x7_26x2x7-all-clusters-minimal -ninja -C {out}/cc13x2x7_26x2x7-all-clusters-minimal - -# Building cc13x2x7_26x2x7-lock-ftd -ninja -C {out}/cc13x2x7_26x2x7-lock-ftd - -# Building cc13x2x7_26x2x7-lock-mtd -ninja -C {out}/cc13x2x7_26x2x7-lock-mtd - -# Building cc13x2x7_26x2x7-pump -ninja -C {out}/cc13x2x7_26x2x7-pump - -# Building cc13x2x7_26x2x7-pump-controller -ninja -C {out}/cc13x2x7_26x2x7-pump-controller - -# Building cc13x2x7_26x2x7-shell -ninja -C {out}/cc13x2x7_26x2x7-shell - -# Building cyw30739-cyw930739m2evb_01-light -ninja -C {out}/cyw30739-cyw930739m2evb_01-light - -# Building cyw30739-cyw930739m2evb_01-lock -ninja -C {out}/cyw30739-cyw930739m2evb_01-lock - -# Building cyw30739-cyw930739m2evb_01-ota-requestor -ninja -C {out}/cyw30739-cyw930739m2evb_01-ota-requestor - -# Building cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging -ninja -C {out}/cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging - -# Building efr32-brd4161a-light -ninja -C {out}/efr32-brd4161a-light - -# Building efr32-brd4161a-light-rpc -ninja -C {out}/efr32-brd4161a-light-rpc - -# Building efr32-brd4161a-light-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4161a-light-rpc-with-ota-requestor - -# Building efr32-brd4161a-light-with-ota-requestor -ninja -C {out}/efr32-brd4161a-light-with-ota-requestor - -# Building efr32-brd4161a-lock -ninja -C {out}/efr32-brd4161a-lock - -# Building efr32-brd4161a-lock-rpc -ninja -C {out}/efr32-brd4161a-lock-rpc - -# Building efr32-brd4161a-lock-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4161a-lock-rpc-with-ota-requestor - -# Building efr32-brd4161a-lock-with-ota-requestor -ninja -C {out}/efr32-brd4161a-lock-with-ota-requestor - -# Building efr32-brd4161a-switch -ninja -C {out}/efr32-brd4161a-switch - -# Building efr32-brd4161a-switch-with-ota-requestor -ninja -C {out}/efr32-brd4161a-switch-with-ota-requestor - -# Building efr32-brd4161a-unit-test -ninja -C {out}/efr32-brd4161a-unit-test - -# Building efr32-brd4161a-unit-test-with-ota-requestor -ninja -C {out}/efr32-brd4161a-unit-test-with-ota-requestor - -# Building efr32-brd4161a-window-covering -ninja -C {out}/efr32-brd4161a-window-covering - -# Building efr32-brd4161a-window-covering-with-ota-requestor -ninja -C {out}/efr32-brd4161a-window-covering-with-ota-requestor - -# Building efr32-brd4163a-light -ninja -C {out}/efr32-brd4163a-light - -# Building efr32-brd4163a-light-rpc -ninja -C {out}/efr32-brd4163a-light-rpc - -# Building efr32-brd4163a-light-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4163a-light-rpc-with-ota-requestor - -# Building efr32-brd4163a-light-with-ota-requestor -ninja -C {out}/efr32-brd4163a-light-with-ota-requestor - -# Building efr32-brd4163a-lock -ninja -C {out}/efr32-brd4163a-lock - -# Building efr32-brd4163a-lock-rpc -ninja -C {out}/efr32-brd4163a-lock-rpc - -# Building efr32-brd4163a-lock-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4163a-lock-rpc-with-ota-requestor - -# Building efr32-brd4163a-lock-with-ota-requestor -ninja -C {out}/efr32-brd4163a-lock-with-ota-requestor - -# Building efr32-brd4163a-switch -ninja -C {out}/efr32-brd4163a-switch - -# Building efr32-brd4163a-switch-with-ota-requestor -ninja -C {out}/efr32-brd4163a-switch-with-ota-requestor - -# Building efr32-brd4163a-unit-test -ninja -C {out}/efr32-brd4163a-unit-test - -# Building efr32-brd4163a-unit-test-with-ota-requestor -ninja -C {out}/efr32-brd4163a-unit-test-with-ota-requestor - -# Building efr32-brd4163a-window-covering -ninja -C {out}/efr32-brd4163a-window-covering - -# Building efr32-brd4163a-window-covering-with-ota-requestor -ninja -C {out}/efr32-brd4163a-window-covering-with-ota-requestor - -# Building efr32-brd4164a-light -ninja -C {out}/efr32-brd4164a-light - -# Building efr32-brd4164a-light-rpc -ninja -C {out}/efr32-brd4164a-light-rpc - -# Building efr32-brd4164a-light-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4164a-light-rpc-with-ota-requestor - -# Building efr32-brd4164a-light-with-ota-requestor -ninja -C {out}/efr32-brd4164a-light-with-ota-requestor - -# Building efr32-brd4164a-lock -ninja -C {out}/efr32-brd4164a-lock - -# Building efr32-brd4164a-lock-rpc -ninja -C {out}/efr32-brd4164a-lock-rpc - -# Building efr32-brd4164a-lock-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4164a-lock-rpc-with-ota-requestor - -# Building efr32-brd4164a-lock-with-ota-requestor -ninja -C {out}/efr32-brd4164a-lock-with-ota-requestor - -# Building efr32-brd4164a-switch -ninja -C {out}/efr32-brd4164a-switch - -# Building efr32-brd4164a-switch-with-ota-requestor -ninja -C {out}/efr32-brd4164a-switch-with-ota-requestor - -# Building efr32-brd4164a-unit-test -ninja -C {out}/efr32-brd4164a-unit-test - -# Building efr32-brd4164a-unit-test-with-ota-requestor -ninja -C {out}/efr32-brd4164a-unit-test-with-ota-requestor - -# Building efr32-brd4164a-window-covering -ninja -C {out}/efr32-brd4164a-window-covering - -# Building efr32-brd4164a-window-covering-with-ota-requestor -ninja -C {out}/efr32-brd4164a-window-covering-with-ota-requestor - -# Building efr32-brd4166a-light -ninja -C {out}/efr32-brd4166a-light - -# Building efr32-brd4166a-light-rpc -ninja -C {out}/efr32-brd4166a-light-rpc - -# Building efr32-brd4166a-light-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4166a-light-rpc-with-ota-requestor - -# Building efr32-brd4166a-light-with-ota-requestor -ninja -C {out}/efr32-brd4166a-light-with-ota-requestor - -# Building efr32-brd4166a-lock -ninja -C {out}/efr32-brd4166a-lock - -# Building efr32-brd4166a-lock-rpc -ninja -C {out}/efr32-brd4166a-lock-rpc - -# Building efr32-brd4166a-lock-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4166a-lock-rpc-with-ota-requestor - -# Building efr32-brd4166a-lock-with-ota-requestor -ninja -C {out}/efr32-brd4166a-lock-with-ota-requestor - -# Building efr32-brd4166a-switch -ninja -C {out}/efr32-brd4166a-switch - -# Building efr32-brd4166a-switch-with-ota-requestor -ninja -C {out}/efr32-brd4166a-switch-with-ota-requestor - -# Building efr32-brd4166a-unit-test -ninja -C {out}/efr32-brd4166a-unit-test - -# Building efr32-brd4166a-unit-test-with-ota-requestor -ninja -C {out}/efr32-brd4166a-unit-test-with-ota-requestor - -# Building efr32-brd4166a-window-covering -ninja -C {out}/efr32-brd4166a-window-covering - -# Building efr32-brd4166a-window-covering-with-ota-requestor -ninja -C {out}/efr32-brd4166a-window-covering-with-ota-requestor - -# Building efr32-brd4170a-light -ninja -C {out}/efr32-brd4170a-light - -# Building efr32-brd4170a-light-rpc -ninja -C {out}/efr32-brd4170a-light-rpc - -# Building efr32-brd4170a-light-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4170a-light-rpc-with-ota-requestor - -# Building efr32-brd4170a-light-with-ota-requestor -ninja -C {out}/efr32-brd4170a-light-with-ota-requestor - -# Building efr32-brd4170a-lock -ninja -C {out}/efr32-brd4170a-lock - -# Building efr32-brd4170a-lock-rpc -ninja -C {out}/efr32-brd4170a-lock-rpc - -# Building efr32-brd4170a-lock-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4170a-lock-rpc-with-ota-requestor - -# Building efr32-brd4170a-lock-with-ota-requestor -ninja -C {out}/efr32-brd4170a-lock-with-ota-requestor - -# Building efr32-brd4170a-switch -ninja -C {out}/efr32-brd4170a-switch - -# Building efr32-brd4170a-switch-with-ota-requestor -ninja -C {out}/efr32-brd4170a-switch-with-ota-requestor - -# Building efr32-brd4170a-unit-test -ninja -C {out}/efr32-brd4170a-unit-test - -# Building efr32-brd4170a-unit-test-with-ota-requestor -ninja -C {out}/efr32-brd4170a-unit-test-with-ota-requestor - -# Building efr32-brd4170a-window-covering -ninja -C {out}/efr32-brd4170a-window-covering - -# Building efr32-brd4170a-window-covering-with-ota-requestor -ninja -C {out}/efr32-brd4170a-window-covering-with-ota-requestor - -# Building efr32-brd4186a-light -ninja -C {out}/efr32-brd4186a-light - -# Building efr32-brd4186a-light-rpc -ninja -C {out}/efr32-brd4186a-light-rpc - -# Building efr32-brd4186a-light-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4186a-light-rpc-with-ota-requestor - -# Building efr32-brd4186a-light-with-ota-requestor -ninja -C {out}/efr32-brd4186a-light-with-ota-requestor - -# Building efr32-brd4186a-lock -ninja -C {out}/efr32-brd4186a-lock - -# Building efr32-brd4186a-lock-rpc -ninja -C {out}/efr32-brd4186a-lock-rpc - -# Building efr32-brd4186a-lock-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4186a-lock-rpc-with-ota-requestor - -# Building efr32-brd4186a-lock-with-ota-requestor -ninja -C {out}/efr32-brd4186a-lock-with-ota-requestor - -# Building efr32-brd4186a-switch -ninja -C {out}/efr32-brd4186a-switch - -# Building efr32-brd4186a-switch-with-ota-requestor -ninja -C {out}/efr32-brd4186a-switch-with-ota-requestor - -# Building efr32-brd4186a-unit-test -ninja -C {out}/efr32-brd4186a-unit-test - -# Building efr32-brd4186a-unit-test-with-ota-requestor -ninja -C {out}/efr32-brd4186a-unit-test-with-ota-requestor - -# Building efr32-brd4186a-window-covering -ninja -C {out}/efr32-brd4186a-window-covering - -# Building efr32-brd4186a-window-covering-with-ota-requestor -ninja -C {out}/efr32-brd4186a-window-covering-with-ota-requestor - -# Building efr32-brd4187a-light -ninja -C {out}/efr32-brd4187a-light - -# Building efr32-brd4187a-light-rpc -ninja -C {out}/efr32-brd4187a-light-rpc - -# Building efr32-brd4187a-light-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4187a-light-rpc-with-ota-requestor - -# Building efr32-brd4187a-light-with-ota-requestor -ninja -C {out}/efr32-brd4187a-light-with-ota-requestor - -# Building efr32-brd4187a-lock -ninja -C {out}/efr32-brd4187a-lock - -# Building efr32-brd4187a-lock-rpc -ninja -C {out}/efr32-brd4187a-lock-rpc - -# Building efr32-brd4187a-lock-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4187a-lock-rpc-with-ota-requestor - -# Building efr32-brd4187a-lock-with-ota-requestor -ninja -C {out}/efr32-brd4187a-lock-with-ota-requestor - -# Building efr32-brd4187a-switch -ninja -C {out}/efr32-brd4187a-switch - -# Building efr32-brd4187a-switch-with-ota-requestor -ninja -C {out}/efr32-brd4187a-switch-with-ota-requestor - -# Building efr32-brd4187a-unit-test -ninja -C {out}/efr32-brd4187a-unit-test - -# Building efr32-brd4187a-unit-test-with-ota-requestor -ninja -C {out}/efr32-brd4187a-unit-test-with-ota-requestor - -# Building efr32-brd4187a-window-covering -ninja -C {out}/efr32-brd4187a-window-covering - -# Building efr32-brd4187a-window-covering-with-ota-requestor -ninja -C {out}/efr32-brd4187a-window-covering-with-ota-requestor - -# Building efr32-brd4187c-light -ninja -C {out}/efr32-brd4187c-light - -# Building efr32-brd4187c-light-rpc -ninja -C {out}/efr32-brd4187c-light-rpc - -# Building efr32-brd4187c-light-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4187c-light-rpc-with-ota-requestor - -# Building efr32-brd4187c-light-with-ota-requestor -ninja -C {out}/efr32-brd4187c-light-with-ota-requestor - -# Building efr32-brd4187c-lock -ninja -C {out}/efr32-brd4187c-lock - -# Building efr32-brd4187c-lock-rpc -ninja -C {out}/efr32-brd4187c-lock-rpc - -# Building efr32-brd4187c-lock-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4187c-lock-rpc-with-ota-requestor - -# Building efr32-brd4187c-lock-with-ota-requestor -ninja -C {out}/efr32-brd4187c-lock-with-ota-requestor - -# Building efr32-brd4187c-switch -ninja -C {out}/efr32-brd4187c-switch - -# Building efr32-brd4187c-switch-with-ota-requestor -ninja -C {out}/efr32-brd4187c-switch-with-ota-requestor - -# Building efr32-brd4187c-unit-test -ninja -C {out}/efr32-brd4187c-unit-test - -# Building efr32-brd4187c-unit-test-with-ota-requestor -ninja -C {out}/efr32-brd4187c-unit-test-with-ota-requestor - -# Building efr32-brd4187c-window-covering -ninja -C {out}/efr32-brd4187c-window-covering - -# Building efr32-brd4187c-window-covering-with-ota-requestor -ninja -C {out}/efr32-brd4187c-window-covering-with-ota-requestor - -# Building efr32-brd4304a-light -ninja -C {out}/efr32-brd4304a-light - -# Building efr32-brd4304a-light-rpc -ninja -C {out}/efr32-brd4304a-light-rpc - -# Building efr32-brd4304a-light-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4304a-light-rpc-with-ota-requestor - -# Building efr32-brd4304a-light-with-ota-requestor -ninja -C {out}/efr32-brd4304a-light-with-ota-requestor - -# Building efr32-brd4304a-lock -ninja -C {out}/efr32-brd4304a-lock - -# Building efr32-brd4304a-lock-rpc -ninja -C {out}/efr32-brd4304a-lock-rpc - -# Building efr32-brd4304a-lock-rpc-with-ota-requestor -ninja -C {out}/efr32-brd4304a-lock-rpc-with-ota-requestor - -# Building efr32-brd4304a-lock-with-ota-requestor -ninja -C {out}/efr32-brd4304a-lock-with-ota-requestor - -# Building efr32-brd4304a-switch -ninja -C {out}/efr32-brd4304a-switch - -# Building efr32-brd4304a-switch-with-ota-requestor -ninja -C {out}/efr32-brd4304a-switch-with-ota-requestor - -# Building efr32-brd4304a-unit-test -ninja -C {out}/efr32-brd4304a-unit-test - -# Building efr32-brd4304a-unit-test-with-ota-requestor -ninja -C {out}/efr32-brd4304a-unit-test-with-ota-requestor - -# Building efr32-brd4304a-window-covering -ninja -C {out}/efr32-brd4304a-window-covering - -# Building efr32-brd4304a-window-covering-with-ota-requestor -ninja -C {out}/efr32-brd4304a-window-covering-with-ota-requestor - -rm -f examples/all-clusters-app/esp32/sdkconfig - -# Building esp32-c3devkit-all-clusters -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-c3devkit-all-clusters/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-c3devkit-all-clusters build' - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -# Building esp32-c3devkit-all-clusters-minimal -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-c3devkit-all-clusters-minimal/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-c3devkit-all-clusters-minimal build' - -rm -f examples/all-clusters-app/esp32/sdkconfig - -# Building esp32-devkitc-all-clusters -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-all-clusters/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-devkitc-all-clusters build' - -rm -f examples/all-clusters-app/esp32/sdkconfig - -# Building esp32-devkitc-all-clusters-ipv6only -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-all-clusters-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-devkitc-all-clusters-ipv6only build' - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -# Building esp32-devkitc-all-clusters-minimal -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-all-clusters-minimal/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-devkitc-all-clusters-minimal build' - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -# Building esp32-devkitc-all-clusters-minimal-ipv6only -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-all-clusters-minimal-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-devkitc-all-clusters-minimal-ipv6only build' - -rm -f examples/bridge-app/esp32/sdkconfig - -# Building esp32-devkitc-bridge -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-bridge/sdkconfig.defaults -idf.py -C examples/bridge-app/esp32 -B {out}/esp32-devkitc-bridge build' - -rm -f examples/lighting-app/esp32/sdkconfig - -# Building esp32-devkitc-light -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-light/sdkconfig.defaults -idf.py -C examples/lighting-app/esp32 -B {out}/esp32-devkitc-light build' - -rm -f examples/lighting-app/esp32/sdkconfig - -# Building esp32-devkitc-light-rpc -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-light-rpc/sdkconfig.defaults -idf.py -C examples/lighting-app/esp32 -B {out}/esp32-devkitc-light-rpc build' - -rm -f examples/lock-app/esp32/sdkconfig - -# Building esp32-devkitc-lock -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-lock/sdkconfig.defaults -idf.py -C examples/lock-app/esp32 -B {out}/esp32-devkitc-lock build' - -rm -f examples/ota-requestor-app/esp32/sdkconfig - -# Building esp32-devkitc-ota-requestor -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-ota-requestor/sdkconfig.defaults -idf.py -C examples/ota-requestor-app/esp32 -B {out}/esp32-devkitc-ota-requestor build' - -rm -f examples/ota-requestor-app/esp32/sdkconfig - -# Building esp32-devkitc-ota-requestor-rpc -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-ota-requestor-rpc/sdkconfig.defaults -idf.py -C examples/ota-requestor-app/esp32 -B {out}/esp32-devkitc-ota-requestor-rpc build' - -rm -f examples/shell/esp32/sdkconfig - -# Building esp32-devkitc-shell -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-shell/sdkconfig.defaults -idf.py -C examples/shell/esp32 -B {out}/esp32-devkitc-shell build' - -rm -f examples/temperature-measurement-app/esp32/sdkconfig - -# Building esp32-devkitc-temperature-measurement -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-temperature-measurement/sdkconfig.defaults -idf.py -C examples/temperature-measurement-app/esp32 -B {out}/esp32-devkitc-temperature-measurement build' - -rm -f examples/temperature-measurement-app/esp32/sdkconfig - -# Building esp32-devkitc-temperature-measurement-rpc -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-temperature-measurement-rpc/sdkconfig.defaults -idf.py -C examples/temperature-measurement-app/esp32 -B {out}/esp32-devkitc-temperature-measurement-rpc build' - -rm -f examples/all-clusters-app/esp32/sdkconfig - -# Building esp32-m5stack-all-clusters -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters build' - -rm -f examples/all-clusters-app/esp32/sdkconfig - -# Building esp32-m5stack-all-clusters-ipv6only -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters-ipv6only build' - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -# Building esp32-m5stack-all-clusters-minimal -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal build' - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -# Building esp32-m5stack-all-clusters-minimal-ipv6only -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal-ipv6only build' - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -# Building esp32-m5stack-all-clusters-minimal-rpc -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal-rpc/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal-rpc build' - -rm -f examples/all-clusters-minimal-app/esp32/sdkconfig - -# Building esp32-m5stack-all-clusters-minimal-rpc-ipv6only -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only build' - -rm -f examples/all-clusters-app/esp32/sdkconfig - -# Building esp32-m5stack-all-clusters-rpc -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-rpc/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters-rpc build' - -rm -f examples/all-clusters-app/esp32/sdkconfig - -# Building esp32-m5stack-all-clusters-rpc-ipv6only -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-rpc-ipv6only/sdkconfig.defaults -idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters-rpc-ipv6only build' - -rm -f examples/ota-requestor-app/esp32/sdkconfig - -# Building esp32-m5stack-ota-requestor -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-ota-requestor/sdkconfig.defaults -idf.py -C examples/ota-requestor-app/esp32 -B {out}/esp32-m5stack-ota-requestor build' - -rm -f examples/ota-requestor-app/esp32/sdkconfig - -# Building esp32-m5stack-ota-requestor-rpc -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-ota-requestor-rpc/sdkconfig.defaults -idf.py -C examples/ota-requestor-app/esp32 -B {out}/esp32-m5stack-ota-requestor-rpc build' - -rm -f src/test_driver/esp32/sdkconfig - -# Building esp32-qemu-tests -bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; -export SDKCONFIG_DEFAULTS={out}/esp32-qemu-tests/sdkconfig.defaults -idf.py -C src/test_driver/esp32 -B {out}/esp32-qemu-tests build' - -# Building genio-lighting-app -ninja -C {out}/genio-lighting-app - -# Building imx-all-clusters-app -ninja -C {out}/imx-all-clusters-app - -# Building imx-all-clusters-app-release -ninja -C {out}/imx-all-clusters-app-release - -# Building imx-all-clusters-minimal-app -ninja -C {out}/imx-all-clusters-minimal-app - -# Building imx-all-clusters-minimal-app-release -ninja -C {out}/imx-all-clusters-minimal-app-release - -# Building imx-chip-tool -ninja -C {out}/imx-chip-tool - -# Building imx-chip-tool-release -ninja -C {out}/imx-chip-tool-release - -# Building imx-lighting-app -ninja -C {out}/imx-lighting-app - -# Building imx-lighting-app-release -ninja -C {out}/imx-lighting-app-release - -# Building imx-ota-provider-app -ninja -C {out}/imx-ota-provider-app - -# Building imx-ota-provider-app-release -ninja -C {out}/imx-ota-provider-app-release - -# Building imx-thermostat -ninja -C {out}/imx-thermostat - -# Building imx-thermostat-release -ninja -C {out}/imx-thermostat-release - -# Building infineon-psoc6-all-clusters -ninja -C {out}/infineon-psoc6-all-clusters - -# Building infineon-psoc6-all-clusters-minimal -ninja -C {out}/infineon-psoc6-all-clusters-minimal - -# Building infineon-psoc6-all-clusters-minimal-ota -ninja -C {out}/infineon-psoc6-all-clusters-minimal-ota - -# Building infineon-psoc6-all-clusters-minimal-ota-updateimage -ninja -C {out}/infineon-psoc6-all-clusters-minimal-ota-updateimage - -# Building infineon-psoc6-all-clusters-minimal-updateimage -ninja -C {out}/infineon-psoc6-all-clusters-minimal-updateimage - -# Building infineon-psoc6-all-clusters-ota -ninja -C {out}/infineon-psoc6-all-clusters-ota - -# Building infineon-psoc6-all-clusters-ota-updateimage -ninja -C {out}/infineon-psoc6-all-clusters-ota-updateimage - -# Building infineon-psoc6-all-clusters-updateimage -ninja -C {out}/infineon-psoc6-all-clusters-updateimage - -# Building infineon-psoc6-light -ninja -C {out}/infineon-psoc6-light - -# Building infineon-psoc6-light-ota -ninja -C {out}/infineon-psoc6-light-ota - -# Building infineon-psoc6-light-ota-updateimage -ninja -C {out}/infineon-psoc6-light-ota-updateimage - -# Building infineon-psoc6-light-updateimage -ninja -C {out}/infineon-psoc6-light-updateimage - -# Building infineon-psoc6-lock -ninja -C {out}/infineon-psoc6-lock - -# Building infineon-psoc6-lock-ota -ninja -C {out}/infineon-psoc6-lock-ota - -# Building infineon-psoc6-lock-ota-updateimage -ninja -C {out}/infineon-psoc6-lock-ota-updateimage - -# Building infineon-psoc6-lock-updateimage -ninja -C {out}/infineon-psoc6-lock-updateimage - -# Building k32w-contact-low-power-release -ninja -C {out}/k32w-contact-low-power-release - -# Building k32w-contact-release -ninja -C {out}/k32w-contact-release - -# Building k32w-light-ota-se -ninja -C {out}/k32w-light-ota-se - -# Building k32w-light-release-no-ota -ninja -C {out}/k32w-light-release-no-ota - -# Building k32w-lock-low-power-release -ninja -C {out}/k32w-lock-low-power-release - -# Building k32w-lock-release -ninja -C {out}/k32w-lock-release - -# Building k32w-shell-release -ninja -C {out}/k32w-shell-release - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-all-clusters-debug -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-all-clusters-debug/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-all-clusters-debug -cmake --build {out}/mbed-CY8CPROTO_062_4343W-all-clusters-debug - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-all-clusters-develop -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-all-clusters-develop/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-all-clusters-develop -cmake --build {out}/mbed-CY8CPROTO_062_4343W-all-clusters-develop - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-all-clusters-minimal-debug -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-debug/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-all-clusters-minimal-debug -cmake --build {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-debug - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-all-clusters-minimal-develop -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-develop/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-all-clusters-minimal-develop -cmake --build {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-develop - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release -cmake --build {out}/mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-all-clusters-release -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-all-clusters-release/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-all-clusters-release -cmake --build {out}/mbed-CY8CPROTO_062_4343W-all-clusters-release - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-light-debug -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-light-debug/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-light-debug -cmake --build {out}/mbed-CY8CPROTO_062_4343W-light-debug - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-light-develop -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-light-develop/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-light-develop -cmake --build {out}/mbed-CY8CPROTO_062_4343W-light-develop - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-light-release -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-light-release/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-light-release -cmake --build {out}/mbed-CY8CPROTO_062_4343W-light-release - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-lock-debug -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-lock-debug/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-lock-debug -cmake --build {out}/mbed-CY8CPROTO_062_4343W-lock-debug - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-lock-develop -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-lock-develop/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-lock-develop -cmake --build {out}/mbed-CY8CPROTO_062_4343W-lock-develop - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-lock-release -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-lock-release/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-lock-release -cmake --build {out}/mbed-CY8CPROTO_062_4343W-lock-release - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-pigweed-debug -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-pigweed-debug/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-pigweed-debug -cmake --build {out}/mbed-CY8CPROTO_062_4343W-pigweed-debug - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-pigweed-develop -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-pigweed-develop/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-pigweed-develop -cmake --build {out}/mbed-CY8CPROTO_062_4343W-pigweed-develop - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-pigweed-release -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-pigweed-release/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-pigweed-release -cmake --build {out}/mbed-CY8CPROTO_062_4343W-pigweed-release - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-shell-debug -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-shell-debug/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-shell-debug -cmake --build {out}/mbed-CY8CPROTO_062_4343W-shell-debug - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-shell-develop -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-shell-develop/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-shell-develop -cmake --build {out}/mbed-CY8CPROTO_062_4343W-shell-develop - -# Remove old artifacts mbed-CY8CPROTO_062_4343W-shell-release -bash -c 'rm -rf {out}/mbed-CY8CPROTO_062_4343W-shell-release/chip-*' - -# Building mbed-CY8CPROTO_062_4343W-shell-release -cmake --build {out}/mbed-CY8CPROTO_062_4343W-shell-release - -# Building mw320-all-clusters-app -ninja -C {out}/mw320-all-clusters-app - -# Building nrf-native-posix-64-tests -ninja -C {out}/nrf-native-posix-64-tests - -# Run Tests nrf-native-posix-64-tests -ctest --build-nocmake -V --output-on-failure --test-dir {out}/nrf-native-posix-64-tests - -# Building nrf-nrf52840dk-all-clusters -ninja -C {out}/nrf-nrf52840dk-all-clusters - -# Building nrf-nrf52840dk-all-clusters-minimal -ninja -C {out}/nrf-nrf52840dk-all-clusters-minimal - -# Building nrf-nrf52840dk-light -ninja -C {out}/nrf-nrf52840dk-light - -# Building nrf-nrf52840dk-light-rpc -ninja -C {out}/nrf-nrf52840dk-light-rpc - -# Building nrf-nrf52840dk-lock -ninja -C {out}/nrf-nrf52840dk-lock - -# Building nrf-nrf52840dk-pump -ninja -C {out}/nrf-nrf52840dk-pump - -# Building nrf-nrf52840dk-pump-controller -ninja -C {out}/nrf-nrf52840dk-pump-controller - -# Building nrf-nrf52840dk-shell -ninja -C {out}/nrf-nrf52840dk-shell - -# Building nrf-nrf52840dongle-all-clusters -ninja -C {out}/nrf-nrf52840dongle-all-clusters - -# Building nrf-nrf52840dongle-all-clusters-minimal -ninja -C {out}/nrf-nrf52840dongle-all-clusters-minimal - -# Building nrf-nrf52840dongle-light -ninja -C {out}/nrf-nrf52840dongle-light - -# Building nrf-nrf5340dk-all-clusters -ninja -C {out}/nrf-nrf5340dk-all-clusters - -# Building nrf-nrf5340dk-all-clusters-minimal -ninja -C {out}/nrf-nrf5340dk-all-clusters-minimal - -# Building nrf-nrf5340dk-light -ninja -C {out}/nrf-nrf5340dk-light - -# Building nrf-nrf5340dk-light-rpc -ninja -C {out}/nrf-nrf5340dk-light-rpc - -# Building nrf-nrf5340dk-lock -ninja -C {out}/nrf-nrf5340dk-lock - -# Building nrf-nrf5340dk-pump -ninja -C {out}/nrf-nrf5340dk-pump - -# Building nrf-nrf5340dk-pump-controller -ninja -C {out}/nrf-nrf5340dk-pump-controller - -# Building nrf-nrf5340dk-shell -ninja -C {out}/nrf-nrf5340dk-shell - -# Building qpg-light -ninja -C {out}/qpg-light - -# Building qpg-lock -ninja -C {out}/qpg-lock - -# Building qpg-persistent-storage -ninja -C {out}/qpg-persistent-storage - -# Building qpg-shell -ninja -C {out}/qpg-shell - -# Building telink-tlsr9518adk80d-light -bash -c 'export ZEPHYR_TOOLCHAIN_VARIANT=zephyr -export ZEPHYR_BASE="$TELINK_ZEPHYR_BASE" -export ZEPHYR_SDK_INSTALL_DIR="$TELINK_ZEPHYR_SDK_DIR" -ninja -C {out}/telink-tlsr9518adk80d-light' - -# Building telink-tlsr9518adk80d-light-switch -bash -c 'export ZEPHYR_TOOLCHAIN_VARIANT=zephyr -export ZEPHYR_BASE="$TELINK_ZEPHYR_BASE" -export ZEPHYR_SDK_INSTALL_DIR="$TELINK_ZEPHYR_SDK_DIR" -ninja -C {out}/telink-tlsr9518adk80d-light-switch' - -# Building telink-tlsr9518adk80d-ota-requestor -bash -c 'export ZEPHYR_TOOLCHAIN_VARIANT=zephyr -export ZEPHYR_BASE="$TELINK_ZEPHYR_BASE" -export ZEPHYR_SDK_INSTALL_DIR="$TELINK_ZEPHYR_SDK_DIR" -ninja -C {out}/telink-tlsr9518adk80d-ota-requestor' - -# Building tizen-arm-all-clusters -ninja -C {out}/tizen-arm-all-clusters - -# Building tizen-arm-all-clusters-asan -ninja -C {out}/tizen-arm-all-clusters-asan - -# Building tizen-arm-all-clusters-minimal -ninja -C {out}/tizen-arm-all-clusters-minimal - -# Building tizen-arm-all-clusters-minimal-asan -ninja -C {out}/tizen-arm-all-clusters-minimal-asan - -# Building tizen-arm-all-clusters-minimal-no-ble -ninja -C {out}/tizen-arm-all-clusters-minimal-no-ble - -# Building tizen-arm-all-clusters-minimal-no-ble-asan -ninja -C {out}/tizen-arm-all-clusters-minimal-no-ble-asan - -# Building tizen-arm-all-clusters-minimal-no-ble-no-wifi -ninja -C {out}/tizen-arm-all-clusters-minimal-no-ble-no-wifi - -# Building tizen-arm-all-clusters-minimal-no-ble-no-wifi-asan -ninja -C {out}/tizen-arm-all-clusters-minimal-no-ble-no-wifi-asan - -# Building tizen-arm-all-clusters-minimal-no-wifi -ninja -C {out}/tizen-arm-all-clusters-minimal-no-wifi - -# Building tizen-arm-all-clusters-minimal-no-wifi-asan -ninja -C {out}/tizen-arm-all-clusters-minimal-no-wifi-asan - -# Building tizen-arm-all-clusters-no-ble -ninja -C {out}/tizen-arm-all-clusters-no-ble - -# Building tizen-arm-all-clusters-no-ble-asan -ninja -C {out}/tizen-arm-all-clusters-no-ble-asan - -# Building tizen-arm-all-clusters-no-ble-no-wifi -ninja -C {out}/tizen-arm-all-clusters-no-ble-no-wifi - -# Building tizen-arm-all-clusters-no-ble-no-wifi-asan -ninja -C {out}/tizen-arm-all-clusters-no-ble-no-wifi-asan - -# Building tizen-arm-all-clusters-no-wifi -ninja -C {out}/tizen-arm-all-clusters-no-wifi - -# Building tizen-arm-all-clusters-no-wifi-asan -ninja -C {out}/tizen-arm-all-clusters-no-wifi-asan - -# Building tizen-arm-chip-tool -ninja -C {out}/tizen-arm-chip-tool - -# Building tizen-arm-chip-tool-asan -ninja -C {out}/tizen-arm-chip-tool-asan - -# Building tizen-arm-chip-tool-no-ble -ninja -C {out}/tizen-arm-chip-tool-no-ble - -# Building tizen-arm-chip-tool-no-ble-asan -ninja -C {out}/tizen-arm-chip-tool-no-ble-asan - -# Building tizen-arm-chip-tool-no-ble-no-wifi -ninja -C {out}/tizen-arm-chip-tool-no-ble-no-wifi - -# Building tizen-arm-chip-tool-no-ble-no-wifi-asan -ninja -C {out}/tizen-arm-chip-tool-no-ble-no-wifi-asan - -# Building tizen-arm-chip-tool-no-wifi -ninja -C {out}/tizen-arm-chip-tool-no-wifi - -# Building tizen-arm-chip-tool-no-wifi-asan -ninja -C {out}/tizen-arm-chip-tool-no-wifi-asan - -# Building tizen-arm-light -ninja -C {out}/tizen-arm-light - -# Building tizen-arm-light-asan -ninja -C {out}/tizen-arm-light-asan - -# Building tizen-arm-light-no-ble -ninja -C {out}/tizen-arm-light-no-ble - -# Building tizen-arm-light-no-ble-asan -ninja -C {out}/tizen-arm-light-no-ble-asan - -# Building tizen-arm-light-no-ble-no-wifi -ninja -C {out}/tizen-arm-light-no-ble-no-wifi - -# Building tizen-arm-light-no-ble-no-wifi-asan -ninja -C {out}/tizen-arm-light-no-ble-no-wifi-asan - -# Building tizen-arm-light-no-wifi -ninja -C {out}/tizen-arm-light-no-wifi - -# Building tizen-arm-light-no-wifi-asan -ninja -C {out}/tizen-arm-light-no-wifi-asan diff --git a/scripts/build/testdata/build_linux_on_x64.txt b/scripts/build/testdata/build_linux_on_x64.txt deleted file mode 100644 index 9f6255054ba7d5..00000000000000 --- a/scripts/build/testdata/build_linux_on_x64.txt +++ /dev/null @@ -1,674 +0,0 @@ -# Commands will be run in CHIP project root. -cd "{root}" - -# Generating linux-arm64-clang-all-clusters -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-all-clusters' - -# Generating linux-arm64-clang-all-clusters-app-nodeps -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux '"'"'--args=chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-all-clusters-app-nodeps' - -# Generating linux-arm64-clang-all-clusters-app-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-all-clusters-app-nodeps-ipv6only' - -# Generating linux-arm64-clang-all-clusters-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-all-clusters-ipv6only' - -# Generating linux-arm64-clang-all-clusters-minimal -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/linux '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-all-clusters-minimal' - -# Generating linux-arm64-clang-all-clusters-minimal-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-all-clusters-minimal-ipv6only' - -# Generating linux-arm64-clang-bridge -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/bridge-app/linux '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-bridge' - -# Generating linux-arm64-clang-bridge-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/bridge-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-bridge-ipv6only' - -# Generating linux-arm64-clang-chip-tool -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-chip-tool' - -# Generating linux-arm64-clang-chip-tool-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-chip-tool-ipv6only' - -# Generating linux-arm64-clang-chip-tool-nodeps -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-chip-tool-nodeps' - -# Generating linux-arm64-clang-chip-tool-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-chip-tool-nodeps-ipv6only' - -# Generating linux-arm64-clang-dynamic-bridge -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/dynamic-bridge-app/linux '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-dynamic-bridge' - -# Generating linux-arm64-clang-dynamic-bridge-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/dynamic-bridge-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-dynamic-bridge-ipv6only' - -# Generating linux-arm64-clang-light -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-light' - -# Generating linux-arm64-clang-light-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-light-ipv6only' - -# Generating linux-arm64-clang-light-rpc -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux '"'"'--args=import("//with_pw_rpc.gni") is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-light-rpc' - -# Generating linux-arm64-clang-light-rpc-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux '"'"'--args=import("//with_pw_rpc.gni") chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-light-rpc-ipv6only' - -# Generating linux-arm64-clang-lock -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/linux '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-lock' - -# Generating linux-arm64-clang-lock-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-lock-ipv6only' - -# Generating linux-arm64-clang-minmdns -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/minimal-mdns '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-minmdns' - -# Generating linux-arm64-clang-minmdns-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/minimal-mdns '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-minmdns-ipv6only' - -# Generating linux-arm64-clang-ota-provider -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux '"'"'--args=chip_config_network_layer_ble=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-ota-provider' - -# Generating linux-arm64-clang-ota-provider-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-ota-provider-ipv6only' - -# Generating linux-arm64-clang-ota-provider-nodeps -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux '"'"'--args=chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-ota-provider-nodeps' - -# Generating linux-arm64-clang-ota-provider-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-ota-provider-nodeps-ipv6only' - -# Generating linux-arm64-clang-ota-requestor -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '"'"'--args=chip_config_network_layer_ble=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-ota-requestor' - -# Generating linux-arm64-clang-ota-requestor-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-ota-requestor-ipv6only' - -# Generating linux-arm64-clang-ota-requestor-nodeps -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '"'"'--args=chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-ota-requestor-nodeps' - -# Generating linux-arm64-clang-ota-requestor-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-ota-requestor-nodeps-ipv6only' - -# Generating linux-arm64-clang-python-bindings -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root} '"'"'--args=is_clang=true enable_rtti=false chip_project_config_include_dirs=["//config/python"] target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-python-bindings' - -# Generating linux-arm64-clang-shell -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/shell/standalone '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-shell' - -# Generating linux-arm64-clang-shell-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/shell/standalone '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-shell-ipv6only' - -# Generating linux-arm64-clang-thermostat -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/thermostat/linux '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-thermostat' - -# Generating linux-arm64-clang-thermostat-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/thermostat/linux '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-thermostat-ipv6only' - -# Generating linux-arm64-clang-tv-app -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-app/linux '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-tv-app' - -# Generating linux-arm64-clang-tv-app-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-tv-app-ipv6only' - -# Generating linux-arm64-clang-tv-casting-app -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-casting-app/linux '"'"'--args=is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-tv-casting-app' - -# Generating linux-arm64-clang-tv-casting-app-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-casting-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-clang-tv-casting-app-ipv6only' - -# Generating linux-fake-tests -gn gen --check --fail-on-unused-args --export-compile-commands --root={root} '--args=chip_build_tests=true custom_toolchain="//build/toolchain/fake:fake_x64_gcc" chip_link_tests=true chip_device_platform="fake" chip_fake_platform=true' {out}/linux-fake-tests - -# Generating linux-x64-address-resolve-tool -gn gen --check --fail-on-unused-args --export-compile-commands --root={root} {out}/linux-x64-address-resolve-tool - -# Generating linux-x64-all-clusters -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux {out}/linux-x64-all-clusters - -# Generating linux-x64-all-clusters-app-nodeps -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux '--args=chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls"' {out}/linux-x64-all-clusters-app-nodeps - -# Generating linux-x64-all-clusters-app-nodeps-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux '--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls"' {out}/linux-x64-all-clusters-app-nodeps-ipv6only - -# Generating linux-x64-all-clusters-coverage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux --args=use_coverage=true {out}/linux-x64-all-clusters-coverage - -# Generating linux-x64-all-clusters-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-all-clusters-ipv6only - -# Generating linux-x64-all-clusters-minimal -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/linux {out}/linux-x64-all-clusters-minimal - -# Generating linux-x64-all-clusters-minimal-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-minimal-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-all-clusters-minimal-ipv6only - -# Generating linux-x64-bridge -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/bridge-app/linux {out}/linux-x64-bridge - -# Generating linux-x64-bridge-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/bridge-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-bridge-ipv6only - -# Generating linux-x64-chip-cert -gn gen --check --fail-on-unused-args --export-compile-commands --root={root} {out}/linux-x64-chip-cert - -# Generating linux-x64-chip-tool -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool {out}/linux-x64-chip-tool - -# Generating linux-x64-chip-tool-coverage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool --args=use_coverage=true {out}/linux-x64-chip-tool-coverage - -# Generating linux-x64-chip-tool-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-chip-tool-ipv6only - -# Generating linux-x64-chip-tool-nodeps -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls"' {out}/linux-x64-chip-tool-nodeps - -# Generating linux-x64-chip-tool-nodeps-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls"' {out}/linux-x64-chip-tool-nodeps-ipv6only - -# Generating linux-x64-dynamic-bridge -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/dynamic-bridge-app/linux {out}/linux-x64-dynamic-bridge - -# Generating linux-x64-dynamic-bridge-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/dynamic-bridge-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-dynamic-bridge-ipv6only - -# Generating linux-x64-light -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux {out}/linux-x64-light - -# Generating linux-x64-light-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-light-ipv6only - -# Generating linux-x64-light-rpc -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux '--args=import("//with_pw_rpc.gni")' {out}/linux-x64-light-rpc - -# Generating linux-x64-light-rpc-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/linux '--args=import("//with_pw_rpc.gni") chip_inet_config_enable_ipv4=false' {out}/linux-x64-light-rpc-ipv6only - -# Generating linux-x64-lock -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/linux {out}/linux-x64-lock - -# Generating linux-x64-lock-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lock-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-lock-ipv6only - -# Generating linux-x64-minmdns -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/minimal-mdns {out}/linux-x64-minmdns - -# Generating linux-x64-minmdns-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/minimal-mdns --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-minmdns-ipv6only - -# Generating linux-x64-nl-test-runner -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/src/test_driver/efr32 '--args=silabs_board="BRD4161A"' {out}/linux-x64-nl-test-runner - -# Generating linux-x64-ota-provider -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux --args=chip_config_network_layer_ble=false {out}/linux-x64-ota-provider - -# Generating linux-x64-ota-provider-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux '--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false' {out}/linux-x64-ota-provider-ipv6only - -# Generating linux-x64-ota-provider-nodeps -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux '--args=chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls"' {out}/linux-x64-ota-provider-nodeps - -# Generating linux-x64-ota-provider-nodeps-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-provider-app/linux '--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls"' {out}/linux-x64-ota-provider-nodeps-ipv6only - -# Generating linux-x64-ota-requestor -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux --args=chip_config_network_layer_ble=false {out}/linux-x64-ota-requestor - -# Generating linux-x64-ota-requestor-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false' {out}/linux-x64-ota-requestor-ipv6only - -# Generating linux-x64-ota-requestor-nodeps -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '--args=chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls"' {out}/linux-x64-ota-requestor-nodeps - -# Generating linux-x64-ota-requestor-nodeps-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls"' {out}/linux-x64-ota-requestor-nodeps-ipv6only - -# Generating linux-x64-python-bindings -gn gen --check --fail-on-unused-args --export-compile-commands --root={root} '--args=enable_rtti=false chip_project_config_include_dirs=["//config/python"]' {out}/linux-x64-python-bindings - -# Generating linux-x64-rpc-console -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/common/pigweed/rpc_console {out}/linux-x64-rpc-console - -# Generating linux-x64-shell -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/shell/standalone {out}/linux-x64-shell - -# Generating linux-x64-shell-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/shell/standalone --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-shell-ipv6only - -# Generating linux-x64-tests -gn gen --check --fail-on-unused-args --export-compile-commands --root={root} --args=chip_build_tests=true {out}/linux-x64-tests - -# Generating linux-x64-thermostat -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/thermostat/linux {out}/linux-x64-thermostat - -# Generating linux-x64-thermostat-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/thermostat/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-thermostat-ipv6only - -# Generating linux-x64-tv-app -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-app/linux {out}/linux-x64-tv-app - -# Generating linux-x64-tv-app-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-tv-app-ipv6only - -# Generating linux-x64-tv-casting-app -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-casting-app/linux {out}/linux-x64-tv-casting-app - -# Generating linux-x64-tv-casting-app-ipv6only -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/tv-casting-app/linux --args=chip_inet_config_enable_ipv4=false {out}/linux-x64-tv-casting-app-ipv6only - -# Building linux-arm64-clang-all-clusters -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-all-clusters' - -# Building linux-arm64-clang-all-clusters-app-nodeps -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-all-clusters-app-nodeps' - -# Building linux-arm64-clang-all-clusters-app-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-all-clusters-app-nodeps-ipv6only' - -# Building linux-arm64-clang-all-clusters-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-all-clusters-ipv6only' - -# Building linux-arm64-clang-all-clusters-minimal -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-all-clusters-minimal' - -# Building linux-arm64-clang-all-clusters-minimal-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-all-clusters-minimal-ipv6only' - -# Building linux-arm64-clang-bridge -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-bridge' - -# Building linux-arm64-clang-bridge-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-bridge-ipv6only' - -# Building linux-arm64-clang-chip-tool -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-chip-tool' - -# Building linux-arm64-clang-chip-tool-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-chip-tool-ipv6only' - -# Building linux-arm64-clang-chip-tool-nodeps -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-chip-tool-nodeps' - -# Building linux-arm64-clang-chip-tool-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-chip-tool-nodeps-ipv6only' - -# Building linux-arm64-clang-dynamic-bridge -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-dynamic-bridge' - -# Building linux-arm64-clang-dynamic-bridge-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-dynamic-bridge-ipv6only' - -# Building linux-arm64-clang-light -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-light' - -# Building linux-arm64-clang-light-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-light-ipv6only' - -# Building linux-arm64-clang-light-rpc -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-light-rpc' - -# Building linux-arm64-clang-light-rpc-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-light-rpc-ipv6only' - -# Building linux-arm64-clang-lock -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-lock' - -# Building linux-arm64-clang-lock-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-lock-ipv6only' - -# Building linux-arm64-clang-minmdns -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-minmdns' - -# Building linux-arm64-clang-minmdns-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-minmdns-ipv6only' - -# Building linux-arm64-clang-ota-provider -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-ota-provider' - -# Building linux-arm64-clang-ota-provider-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-ota-provider-ipv6only' - -# Building linux-arm64-clang-ota-provider-nodeps -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-ota-provider-nodeps' - -# Building linux-arm64-clang-ota-provider-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-ota-provider-nodeps-ipv6only' - -# Building linux-arm64-clang-ota-requestor -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-ota-requestor' - -# Building linux-arm64-clang-ota-requestor-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-ota-requestor-ipv6only' - -# Building linux-arm64-clang-ota-requestor-nodeps -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-ota-requestor-nodeps' - -# Building linux-arm64-clang-ota-requestor-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-ota-requestor-nodeps-ipv6only' - -# Building linux-arm64-clang-python-bindings -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-python-bindings chip-repl' - -# Building linux-arm64-clang-shell -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-shell' - -# Building linux-arm64-clang-shell-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-shell-ipv6only' - -# Building linux-arm64-clang-thermostat -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-thermostat' - -# Building linux-arm64-clang-thermostat-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-thermostat-ipv6only' - -# Building linux-arm64-clang-tv-app -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-tv-app' - -# Building linux-arm64-clang-tv-app-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-tv-app-ipv6only' - -# Building linux-arm64-clang-tv-casting-app -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-tv-casting-app' - -# Building linux-arm64-clang-tv-casting-app-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-clang-tv-casting-app-ipv6only' - -# Building linux-fake-tests -ninja -C {out}/linux-fake-tests check - -# Building linux-x64-address-resolve-tool -ninja -C {out}/linux-x64-address-resolve-tool src/lib/address_resolve:address-resolve-tool - -# Building linux-x64-all-clusters -ninja -C {out}/linux-x64-all-clusters - -# Building linux-x64-all-clusters-app-nodeps -ninja -C {out}/linux-x64-all-clusters-app-nodeps - -# Building linux-x64-all-clusters-app-nodeps-ipv6only -ninja -C {out}/linux-x64-all-clusters-app-nodeps-ipv6only - -# Building linux-x64-all-clusters-coverage -ninja -C {out}/linux-x64-all-clusters-coverage - -# Building linux-x64-all-clusters-ipv6only -ninja -C {out}/linux-x64-all-clusters-ipv6only - -# Building linux-x64-all-clusters-minimal -ninja -C {out}/linux-x64-all-clusters-minimal - -# Building linux-x64-all-clusters-minimal-ipv6only -ninja -C {out}/linux-x64-all-clusters-minimal-ipv6only - -# Building linux-x64-bridge -ninja -C {out}/linux-x64-bridge - -# Building linux-x64-bridge-ipv6only -ninja -C {out}/linux-x64-bridge-ipv6only - -# Building linux-x64-chip-cert -ninja -C {out}/linux-x64-chip-cert src/tools/chip-cert - -# Building linux-x64-chip-tool -ninja -C {out}/linux-x64-chip-tool - -# Building linux-x64-chip-tool-coverage -ninja -C {out}/linux-x64-chip-tool-coverage - -# Building linux-x64-chip-tool-ipv6only -ninja -C {out}/linux-x64-chip-tool-ipv6only - -# Building linux-x64-chip-tool-nodeps -ninja -C {out}/linux-x64-chip-tool-nodeps - -# Building linux-x64-chip-tool-nodeps-ipv6only -ninja -C {out}/linux-x64-chip-tool-nodeps-ipv6only - -# Building linux-x64-dynamic-bridge -ninja -C {out}/linux-x64-dynamic-bridge - -# Building linux-x64-dynamic-bridge-ipv6only -ninja -C {out}/linux-x64-dynamic-bridge-ipv6only - -# Building linux-x64-light -ninja -C {out}/linux-x64-light - -# Building linux-x64-light-ipv6only -ninja -C {out}/linux-x64-light-ipv6only - -# Building linux-x64-light-rpc -ninja -C {out}/linux-x64-light-rpc - -# Building linux-x64-light-rpc-ipv6only -ninja -C {out}/linux-x64-light-rpc-ipv6only - -# Building linux-x64-lock -ninja -C {out}/linux-x64-lock - -# Building linux-x64-lock-ipv6only -ninja -C {out}/linux-x64-lock-ipv6only - -# Building linux-x64-minmdns -ninja -C {out}/linux-x64-minmdns - -# Building linux-x64-minmdns-ipv6only -ninja -C {out}/linux-x64-minmdns-ipv6only - -# Building linux-x64-nl-test-runner -ninja -C {out}/linux-x64-nl-test-runner runner - -# Building linux-x64-ota-provider -ninja -C {out}/linux-x64-ota-provider - -# Building linux-x64-ota-provider-ipv6only -ninja -C {out}/linux-x64-ota-provider-ipv6only - -# Building linux-x64-ota-provider-nodeps -ninja -C {out}/linux-x64-ota-provider-nodeps - -# Building linux-x64-ota-provider-nodeps-ipv6only -ninja -C {out}/linux-x64-ota-provider-nodeps-ipv6only - -# Building linux-x64-ota-requestor -ninja -C {out}/linux-x64-ota-requestor - -# Building linux-x64-ota-requestor-ipv6only -ninja -C {out}/linux-x64-ota-requestor-ipv6only - -# Building linux-x64-ota-requestor-nodeps -ninja -C {out}/linux-x64-ota-requestor-nodeps - -# Building linux-x64-ota-requestor-nodeps-ipv6only -ninja -C {out}/linux-x64-ota-requestor-nodeps-ipv6only - -# Building linux-x64-python-bindings -ninja -C {out}/linux-x64-python-bindings chip-repl - -# Building linux-x64-rpc-console -ninja -C {out}/linux-x64-rpc-console - -# Building linux-x64-shell -ninja -C {out}/linux-x64-shell - -# Building linux-x64-shell-ipv6only -ninja -C {out}/linux-x64-shell-ipv6only - -# Building linux-x64-tests -ninja -C {out}/linux-x64-tests check - -# Building linux-x64-thermostat -ninja -C {out}/linux-x64-thermostat - -# Building linux-x64-thermostat-ipv6only -ninja -C {out}/linux-x64-thermostat-ipv6only - -# Building linux-x64-tv-app -ninja -C {out}/linux-x64-tv-app - -# Building linux-x64-tv-app-ipv6only -ninja -C {out}/linux-x64-tv-app-ipv6only - -# Building linux-x64-tv-casting-app -ninja -C {out}/linux-x64-tv-casting-app - -# Building linux-x64-tv-casting-app-ipv6only -ninja -C {out}/linux-x64-tv-casting-app-ipv6only diff --git a/scripts/build/testdata/glob_star_targets_except_host.txt b/scripts/build/testdata/glob_star_targets_except_host.txt deleted file mode 100644 index 334b88c2e8dbfe..00000000000000 --- a/scripts/build/testdata/glob_star_targets_except_host.txt +++ /dev/null @@ -1,130 +0,0 @@ -ameba-amebad-all-clusters -ameba-amebad-all-clusters-minimal -ameba-amebad-light -ameba-amebad-pigweed -android-androidstudio-arm-chip-tool -android-androidstudio-arm64-chip-tool -android-androidstudio-x64-chip-tool -android-androidstudio-x86-chip-tool -android-arm-chip-tool -android-arm-tv-casting-app -android-arm-tv-server -android-arm64-chip-test -android-arm64-chip-tool -android-arm64-tv-casting-app -android-arm64-tv-server -android-x64-chip-tool -android-x64-tv-server -android-x86-chip-tool -android-x86-tv-server -bl602-light -bouffalolab-BL706-IoT-DVK-light -bouffalolab-BL706-IoT-DVK-light-rpc -bouffalolab-BL706-NIGHT-LIGHT-light -cc13x2x7_26x2x7-all-clusters -cc13x2x7_26x2x7-all-clusters-minimal -cc13x2x7_26x2x7-lock-ftd -cc13x2x7_26x2x7-lock-mtd -cc13x2x7_26x2x7-pump -cc13x2x7_26x2x7-pump-controller -cc13x2x7_26x2x7-shell -cyw30739-cyw930739m2evb_01-light -cyw30739-cyw930739m2evb_01-lock -cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging -efr32-brd4161a-light -efr32-brd4161a-light-rpc -efr32-brd4161a-lock -efr32-brd4161a-lock-rpc -efr32-brd4161a-switch -efr32-brd4161a-unit-test -efr32-brd4161a-window-covering -efr32-brd4187c-light -efr32-brd4187c-light-rpc -efr32-brd4187c-lock -efr32-brd4187c-lock-rpc -efr32-brd4187c-switch -efr32-brd4187c-unit-test -efr32-brd4187c-window-covering -esp32-c3devkit-all-clusters -esp32-c3devkit-all-clusters-minimal -esp32-devkitc-all-clusters -esp32-devkitc-all-clusters-ipv6only -esp32-devkitc-all-clusters-minimal -esp32-devkitc-all-clusters-minimal-ipv6only -esp32-devkitc-bridge -esp32-devkitc-light -esp32-devkitc-light-rpc -esp32-devkitc-lock -esp32-devkitc-ota-requestor -esp32-devkitc-ota-requestor-rpc -esp32-devkitc-shell -esp32-devkitc-temperature-measurement -esp32-devkitc-temperature-measurement-rpc -esp32-m5stack-all-clusters -esp32-m5stack-all-clusters-ipv6only -esp32-m5stack-all-clusters-minimal -esp32-m5stack-all-clusters-minimal-ipv6only -esp32-m5stack-all-clusters-minimal-rpc -esp32-m5stack-all-clusters-minimal-rpc-ipv6only -esp32-m5stack-all-clusters-rpc -esp32-m5stack-all-clusters-rpc-ipv6only -esp32-m5stack-ota-requestor -esp32-m5stack-ota-requestor-rpc -esp32-qemu-tests -genio-lighting-app -imx-all-clusters-app -imx-all-clusters-app-release -imx-all-clusters-minimal-app -imx-all-clusters-minimal-app-release -imx-chip-tool -imx-chip-tool-release -imx-lighting-app -imx-lighting-app-release -imx-ota-provider-app -imx-ota-provider-app-release -imx-thermostat -imx-thermostat-release -infineon-psoc6-all-clusters -infineon-psoc6-all-clusters-minimal -infineon-psoc6-light -infineon-psoc6-lock -k32w-contact-release -k32w-light-release-no-ota -k32w-lock-release -k32w-shell-release -mbed-CY8CPROTO_062_4343W-all-clusters-minimal-release -mbed-CY8CPROTO_062_4343W-all-clusters-release -mbed-CY8CPROTO_062_4343W-light-release -mbed-CY8CPROTO_062_4343W-lock-release -mbed-CY8CPROTO_062_4343W-pigweed-release -mbed-CY8CPROTO_062_4343W-shell-release -mw320-all-clusters-app -nrf-native-posix-64-tests -nrf-nrf52840dk-all-clusters -nrf-nrf52840dk-all-clusters-minimal -nrf-nrf52840dk-light -nrf-nrf52840dk-light-rpc -nrf-nrf52840dk-lock -nrf-nrf52840dk-pump -nrf-nrf52840dk-pump-controller -nrf-nrf52840dk-shell -nrf-nrf52840dongle-all-clusters-minimal -nrf-nrf52840dongle-light -nrf-nrf5340dk-all-clusters -nrf-nrf5340dk-all-clusters-minimal -nrf-nrf5340dk-light -nrf-nrf5340dk-lock -nrf-nrf5340dk-pump -nrf-nrf5340dk-pump-controller -nrf-nrf5340dk-shell -qpg-light -qpg-lock -qpg-persistent-storage -qpg-shell -telink-tlsr9518adk80d-light -telink-tlsr9518adk80d-light-switch -telink-tlsr9518adk80d-ota-requestor -tizen-arm-all-clusters -tizen-arm-all-clusters-minimal -tizen-arm-chip-tool -tizen-arm-light From 68919c3e1b17f89563045565bbfe7afc8170aae3 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 11:46:03 -0400 Subject: [PATCH 35/68] more unit tests --- scripts/build/BUILD.gn | 8 +++++ scripts/build/test.py | 28 ++++++++++++++++ .../build/testdata/all_targets_linux_x64.txt | 20 ++++++++++++ .../dry_run_android-arm64-chip-tool.txt | 32 +++++++++++++++++++ .../dry_run_efr32-brd4161a-light-rpc.txt | 8 +++++ .../dry_run_esp32-devkitc-light-rpc.txt | 20 ++++++++++++ ...tack-all-clusters-minimal-rpc-ipv6only.txt | 22 +++++++++++++ ...n_linux-arm64-chip-tool-ipv6only-clang.txt | 12 +++++++ ...ux-arm64-ota-requestor-nodeps-ipv6only.txt | 12 +++++++ ...ry_run_linux-x64-all-clusters-coverage.txt | 8 +++++ .../testdata/dry_run_nrf-nrf52840dk-pump.txt | 10 ++++++ 11 files changed, 180 insertions(+) create mode 100644 scripts/build/testdata/all_targets_linux_x64.txt create mode 100644 scripts/build/testdata/dry_run_android-arm64-chip-tool.txt create mode 100644 scripts/build/testdata/dry_run_efr32-brd4161a-light-rpc.txt create mode 100644 scripts/build/testdata/dry_run_esp32-devkitc-light-rpc.txt create mode 100644 scripts/build/testdata/dry_run_esp32-m5stack-all-clusters-minimal-rpc-ipv6only.txt create mode 100644 scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt create mode 100644 scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt create mode 100644 scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt create mode 100644 scripts/build/testdata/dry_run_nrf-nrf52840dk-pump.txt diff --git a/scripts/build/BUILD.gn b/scripts/build/BUILD.gn index ec2d222a2ba9a2..9ea50936d5382a 100644 --- a/scripts/build/BUILD.gn +++ b/scripts/build/BUILD.gn @@ -23,6 +23,14 @@ pw_python_package("build_examples") { inputs = [ # Dependency for the unit test "testdata/all_targets_linux_x64.txt", + "testdata/dry_run_android-arm64-chip-tool.txt", + "testdata/dry_run_efr32-brd4161a-light-rpc.txt", + "testdata/dry_run_esp32-devkitc-light-rpc.txt", + "testdata/dry_run_esp32-m5stack-all-clusters-minimal-rpc-ipv6only.txt", + "testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt", + "testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt", + "testdata/dry_run_linux-x64-all-clusters-coverage.txt", + "testdata/dry_run_nrf-nrf52840dk-pump.txt", ] sources = [ diff --git a/scripts/build/test.py b/scripts/build/test.py index 88d9bee83cdb8e..b0ba8a0d685c38 100644 --- a/scripts/build/test.py +++ b/scripts/build/test.py @@ -99,6 +99,34 @@ def test_linux64_targets(self): 'targets'.split(' ') ) + def test_general_dry_runs(self): + # A sampling of targets and variants to validate that + # build options do not change too much + TARGETS = [ + 'esp32-devkitc-light-rpc', + 'esp32-m5stack-all-clusters-minimal-rpc-ipv6only', + 'android-arm64-chip-tool', + 'nrf-nrf52840dk-pump', + 'efr32-brd4161a-light-rpc' + ] + + for target in TARGETS: + expected = os.path.join('testdata', f'dry_run_{target}.txt') + self.assertCommandOutput(expected, f'--target {target} --dry-run build'.split(' ')) + + @unittest.skipUnless(sys.platform == 'linux', 'Build on linux test') + @unittest.skipUnless(os.uname().machine == 'x86_64', 'Validation x64 and crosscompile, requires linux x64') + def test_linux_dry_runs(self): + TARGETS = [ + 'linux-arm64-chip-tool-ipv6only-clang', + 'linux-arm64-ota-requestor-nodeps-ipv6only', + 'linux-x64-all-clusters-coverage', + ] + + for target in TARGETS: + expected = os.path.join('testdata', f'dry_run_{target}.txt') + self.assertCommandOutput(expected, f'--target {target} --dry-run build'.split(' ')) + if __name__ == '__main__': unittest.main() diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt new file mode 100644 index 00000000000000..6f860d3cf52813 --- /dev/null +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -0,0 +1,20 @@ +ameba-amebad-{all-clusters,all-clusters-minimal,light,pigweed} +android-{arm,arm64,x86,x64,androidstudio-arm,androidstudio-arm64,androidstudio-x86,androidstudio-x64}-{chip-tool,chip-test,tv-server,tv-casting-app} +bl602-light +bouffalolab-{bl706-iot-dvk,bl706-night-light}-light +cc13x2x7_26x2x7-{all-clusters,all-clusters-minimal,lock,pump,pump-controller,shell}[-ftd][-mtd] +cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor}[-no-progress-logging] +efr32-{brd4161a,brd4187c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a}-{window-covering,switch,unit-test,light,lock}[-rpc][-with-ota-requestor] +esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-requestor,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only] +genio-lighting-app +linux-{x64,fake,arm64}-{rpc-console,nl-test-runner,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-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] +k32w-{light,shell,lock,contact}[-no-ota][-low-power][-nologs] +mbed-cy8cproto_062_4343w-{lock,light,all-clusters,all-clusters-minimal,pigweed,shell}[-release][-develop][-debug] +mw320-all-clusters-app +nrf-{nrf5340dk,nrf52840dk,nrf52840dongle}-{all-clusters,all-clusters-minimal,lock,light,shell,pump,pump-controller}[-rpc] +nrf-native-posix-64-tests +qpg-qpg6105-{lock,light,shell,persistent-storage} +tizen-arm-{all-clusters,all-clusters-minimal,chip-tool,light}[-no-ble][-no-wifi][-asan] +telink-tlsr9518adk80d-{light,light-switch,ota-requestor} diff --git a/scripts/build/testdata/dry_run_android-arm64-chip-tool.txt b/scripts/build/testdata/dry_run_android-arm64-chip-tool.txt new file mode 100644 index 00000000000000..c88cdc778386e4 --- /dev/null +++ b/scripts/build/testdata/dry_run_android-arm64-chip-tool.txt @@ -0,0 +1,32 @@ +# Commands will be run in CHIP project root. +cd "{root}" + +# Setting up Android deps through Gradle +python3 third_party/android_deps/set_up_android_deps.py + +# Generating android-arm64-chip-tool +gn gen --check --fail-on-unused-args {out}/android-arm64-chip-tool '--args=target_os="android" target_cpu="arm64" android_ndk_root="TEST_ANDROID_NDK_HOME" android_sdk_root="TEST_ANDROID_HOME" ' + +# Accepting NDK licenses @ tools +bash -c 'yes | TEST_ANDROID_HOME/tools/bin/sdkmanager --licenses >/dev/null' + +# Building JNI android-arm64-chip-tool +ninja -C {out}/android-arm64-chip-tool + +# Prepare Native libs android-arm64-chip-tool +mkdir -p {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a + +cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libSetupPayloadParser.so {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libSetupPayloadParser.so + +cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libCHIPController.so {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libCHIPController.so + +cp {out}/android-arm64-chip-tool/lib/jni/arm64-v8a/libc++_shared.so {root}/examples/android/CHIPTool/app/libs/jniLibs/arm64-v8a/libc++_shared.so + +cp {out}/android-arm64-chip-tool/lib/src/controller/java/CHIPController.jar {root}/examples/android/CHIPTool/app/libs/CHIPController.jar + +cp {out}/android-arm64-chip-tool/lib/src/setup_payload/java/SetupPayloadParser.jar {root}/examples/android/CHIPTool/app/libs/SetupPayloadParser.jar + +cp {out}/android-arm64-chip-tool/lib/src/platform/android/AndroidPlatform.jar {root}/examples/android/CHIPTool/app/libs/AndroidPlatform.jar + +# Building APP android-arm64-chip-tool +{root}/examples/android/CHIPTool/gradlew -p {root}/examples/android/CHIPTool -PmatterBuildSrcDir={out}/android-arm64-chip-tool -PmatterSdkSourceBuild=false -PbuildDir={out}/android-arm64-chip-tool assembleDebug diff --git a/scripts/build/testdata/dry_run_efr32-brd4161a-light-rpc.txt b/scripts/build/testdata/dry_run_efr32-brd4161a-light-rpc.txt new file mode 100644 index 00000000000000..cfbf6ba319e1fd --- /dev/null +++ b/scripts/build/testdata/dry_run_efr32-brd4161a-light-rpc.txt @@ -0,0 +1,8 @@ +# Commands will be run in CHIP project root. +cd "{root}" + +# Generating efr32-brd4161a-light-rpc +gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/efr32 '--args=silabs_board="BRD4161A" is_debug=false import("//with_pw_rpc.gni")' {out}/efr32-brd4161a-light-rpc + +# Building efr32-brd4161a-light-rpc +ninja -C {out}/efr32-brd4161a-light-rpc diff --git a/scripts/build/testdata/dry_run_esp32-devkitc-light-rpc.txt b/scripts/build/testdata/dry_run_esp32-devkitc-light-rpc.txt new file mode 100644 index 00000000000000..e949510f99de97 --- /dev/null +++ b/scripts/build/testdata/dry_run_esp32-devkitc-light-rpc.txt @@ -0,0 +1,20 @@ +# Commands will be run in CHIP project root. +cd "{root}" + +# Generating esp32-devkitc-light-rpc +mkdir -p {out}/esp32-devkitc-light-rpc + +cp examples/lighting-app/esp32/sdkconfig_rpc.defaults {out}/esp32-devkitc-light-rpc/sdkconfig.defaults + +rm -f examples/lighting-app/esp32/sdkconfig + +bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; +export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-light-rpc/sdkconfig.defaults +idf.py -C examples/lighting-app/esp32 -B {out}/esp32-devkitc-light-rpc reconfigure' + +rm -f examples/lighting-app/esp32/sdkconfig + +# Building esp32-devkitc-light-rpc +bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; +export SDKCONFIG_DEFAULTS={out}/esp32-devkitc-light-rpc/sdkconfig.defaults +idf.py -C examples/lighting-app/esp32 -B {out}/esp32-devkitc-light-rpc build' diff --git a/scripts/build/testdata/dry_run_esp32-m5stack-all-clusters-minimal-rpc-ipv6only.txt b/scripts/build/testdata/dry_run_esp32-m5stack-all-clusters-minimal-rpc-ipv6only.txt new file mode 100644 index 00000000000000..f82dd8a53e8a64 --- /dev/null +++ b/scripts/build/testdata/dry_run_esp32-m5stack-all-clusters-minimal-rpc-ipv6only.txt @@ -0,0 +1,22 @@ +# Commands will be run in CHIP project root. +cd "{root}" + +# Generating esp32-m5stack-all-clusters-minimal-rpc-ipv6only +mkdir -p {out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only + +cp examples/all-clusters-minimal-app/esp32/sdkconfig_m5stack_rpc.defaults {out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only/sdkconfig.defaults + +rm -f examples/all-clusters-minimal-app/esp32/sdkconfig + +bash -c 'echo -e "\nCONFIG_DISABLE_IPV4=y\n" >>{out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only/sdkconfig.defaults' + +bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; +export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only/sdkconfig.defaults +idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only reconfigure' + +rm -f examples/all-clusters-minimal-app/esp32/sdkconfig + +# Building esp32-m5stack-all-clusters-minimal-rpc-ipv6only +bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh; +export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only/sdkconfig.defaults +idf.py -C examples/all-clusters-minimal-app/esp32 -B {out}/esp32-m5stack-all-clusters-minimal-rpc-ipv6only build' diff --git a/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt b/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt new file mode 100644 index 00000000000000..a92463b2cff716 --- /dev/null +++ b/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt @@ -0,0 +1,12 @@ +# Commands will be run in CHIP project root. +cd "{root}" + +# Generating linux-arm64-chip-tool-ipv6only-clang +bash -c ' +PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ + gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-chip-tool-ipv6only-clang' + +# Building linux-arm64-chip-tool-ipv6only-clang +bash -c ' +PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ + ninja -C {out}/linux-arm64-chip-tool-ipv6only-clang' diff --git a/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt b/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt new file mode 100644 index 00000000000000..aa6eb4dd3e8a31 --- /dev/null +++ b/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt @@ -0,0 +1,12 @@ +# Commands will be run in CHIP project root. +cd "{root}" + +# Generating linux-arm64-ota-requestor-nodeps-ipv6only +bash -c ' +PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ + gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-ota-requestor-nodeps-ipv6only' + +# Building linux-arm64-ota-requestor-nodeps-ipv6only +bash -c ' +PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ + ninja -C {out}/linux-arm64-ota-requestor-nodeps-ipv6only' diff --git a/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt b/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt new file mode 100644 index 00000000000000..94e8686b31dcf9 --- /dev/null +++ b/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt @@ -0,0 +1,8 @@ +# Commands will be run in CHIP project root. +cd "{root}" + +# Generating linux-x64-all-clusters-coverage +gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux --args=use_coverage=true {out}/linux-x64-all-clusters-coverage + +# Building linux-x64-all-clusters-coverage +ninja -C {out}/linux-x64-all-clusters-coverage diff --git a/scripts/build/testdata/dry_run_nrf-nrf52840dk-pump.txt b/scripts/build/testdata/dry_run_nrf-nrf52840dk-pump.txt new file mode 100644 index 00000000000000..e0b4d31e73bb26 --- /dev/null +++ b/scripts/build/testdata/dry_run_nrf-nrf52840dk-pump.txt @@ -0,0 +1,10 @@ +# Commands will be run in CHIP project root. +cd "{root}" + +# Generating nrf-nrf52840dk-pump +bash -c 'source "$ZEPHYR_BASE/zephyr-env.sh"; +export GNUARMEMB_TOOLCHAIN_PATH="$PW_ARM_CIPD_INSTALL_DIR"; +west build --cmake-only -d {out}/nrf-nrf52840dk-pump -b nrf52840dk_nrf52840 {root}/examples/pump-app/nrfconnect' + +# Building nrf-nrf52840dk-pump +ninja -C {out}/nrf-nrf52840dk-pump From 3c893d1a9b1ac54d6338394a775bdd165118e8a9 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 11:52:59 -0400 Subject: [PATCH 36/68] Restyle --- scripts/build/build/test_target.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/build/build/test_target.py b/scripts/build/build/test_target.py index a8d5bda2667eb0..334e56720f3eb2 100755 --- a/scripts/build/build/test_target.py +++ b/scripts/build/build/test_target.py @@ -25,7 +25,6 @@ from target import * - class FakeBuilder: def __init__(self, **kargs): self.kargs = kargs From b829199cb18fd1857a74194bb0e97f9dc9833ad4 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 11:55:53 -0400 Subject: [PATCH 37/68] Remove the default of "all" in build targets since that does not mean anything anymore --- scripts/build/build_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/build_examples.py b/scripts/build/build_examples.py index 4d290f54600cd1..b95a006c18458f 100755 --- a/scripts/build/build_examples.py +++ b/scripts/build/build_examples.py @@ -67,7 +67,7 @@ def ValidateRepoPath(context, parameter, value): help='Determines the verbosity of script output.') @click.option( '--target', - default=['all'], + default=[], multiple=True, help='Build target(s)' ) From 30bf9932fcfdf2325741c139f1c789edf1a525f0 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 12:01:56 -0400 Subject: [PATCH 38/68] Rename arm64-clang to arm64 in targets for cloudbuild smoke test --- integrations/cloudbuild/smoke-test.yaml | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/integrations/cloudbuild/smoke-test.yaml b/integrations/cloudbuild/smoke-test.yaml index 19e5ef63bf3898..0499460c5e9025 100644 --- a/integrations/cloudbuild/smoke-test.yaml +++ b/integrations/cloudbuild/smoke-test.yaml @@ -91,23 +91,23 @@ steps: - >- ./scripts/build/build_examples.py --enable-flashbundle - --target linux-arm64-clang-all-clusters - --target linux-arm64-clang-all-clusters-app-nodeps-ipv6only - --target linux-arm64-clang-all-clusters-minimal-ipv6only - --target linux-arm64-clang-bridge-ipv6only - --target linux-arm64-clang-chip-tool-ipv6only - --target linux-arm64-clang-chip-tool-nodeps-ipv6only - --target linux-arm64-clang-dynamic-bridge-ipv6only - --target linux-arm64-clang-light-rpc-ipv6only - --target linux-arm64-clang-lock-ipv6only - --target linux-arm64-clang-minmdns - --target linux-arm64-clang-ota-provider-nodeps-ipv6only - --target linux-arm64-clang-ota-requestor-nodeps-ipv6only - --target linux-arm64-clang-python-bindings - --target linux-arm64-clang-shell-ipv6only - --target linux-arm64-clang-thermostat-ipv6only - --target linux-arm64-clang-tv-app-ipv6only - --target linux-arm64-clang-tv-casting-app-ipv6only + --target linux-arm64-all-clusters + --target linux-arm64-all-clusters-app-nodeps-ipv6only + --target linux-arm64-all-clusters-minimal-ipv6only + --target linux-arm64-bridge-ipv6only + --target linux-arm64-chip-tool-ipv6only + --target linux-arm64-chip-tool-nodeps-ipv6only + --target linux-arm64-dynamic-bridge-ipv6only + --target linux-arm64-light-rpc-ipv6only + --target linux-arm64-lock-ipv6only + --target linux-arm64-minmdns + --target linux-arm64-ota-provider-nodeps-ipv6only + --target linux-arm64-ota-requestor-nodeps-ipv6only + --target linux-arm64-python-bindings + --target linux-arm64-shell-ipv6only + --target linux-arm64-thermostat-ipv6only + --target linux-arm64-tv-app-ipv6only + --target linux-arm64-tv-casting-app-ipv6only --target linux-x64-address-resolve-tool --target linux-x64-all-clusters-app-nodeps-ipv6only --target linux-x64-all-clusters-coverage From 5767939a48ad2add3c005e08f90ed3e2dd74079f Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 12:03:11 -0400 Subject: [PATCH 39/68] For arm64, clang is a modifier that is required --- integrations/cloudbuild/smoke-test.yaml | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/integrations/cloudbuild/smoke-test.yaml b/integrations/cloudbuild/smoke-test.yaml index 0499460c5e9025..c2cd61c81d4a53 100644 --- a/integrations/cloudbuild/smoke-test.yaml +++ b/integrations/cloudbuild/smoke-test.yaml @@ -91,23 +91,23 @@ steps: - >- ./scripts/build/build_examples.py --enable-flashbundle - --target linux-arm64-all-clusters - --target linux-arm64-all-clusters-app-nodeps-ipv6only - --target linux-arm64-all-clusters-minimal-ipv6only - --target linux-arm64-bridge-ipv6only - --target linux-arm64-chip-tool-ipv6only - --target linux-arm64-chip-tool-nodeps-ipv6only - --target linux-arm64-dynamic-bridge-ipv6only - --target linux-arm64-light-rpc-ipv6only - --target linux-arm64-lock-ipv6only - --target linux-arm64-minmdns - --target linux-arm64-ota-provider-nodeps-ipv6only - --target linux-arm64-ota-requestor-nodeps-ipv6only - --target linux-arm64-python-bindings - --target linux-arm64-shell-ipv6only - --target linux-arm64-thermostat-ipv6only - --target linux-arm64-tv-app-ipv6only - --target linux-arm64-tv-casting-app-ipv6only + --target linux-arm64-all-clusters-clang + --target linux-arm64-all-clusters-app-nodeps-ipv6only-clang + --target linux-arm64-all-clusters-minimal-ipv6only-clang + --target linux-arm64-bridge-ipv6only-clang + --target linux-arm64-chip-tool-ipv6only-clang + --target linux-arm64-chip-tool-nodeps-ipv6only-clang + --target linux-arm64-dynamic-bridge-ipv6only-clang + --target linux-arm64-light-rpc-ipv6only-clang + --target linux-arm64-lock-ipv6only-clang + --target linux-arm64-minmdns-clang + --target linux-arm64-ota-provider-nodeps-ipv6only-clang + --target linux-arm64-ota-requestor-nodeps-ipv6only-clang + --target linux-arm64-python-bindings-clang + --target linux-arm64-shell-ipv6only-clang + --target linux-arm64-thermostat-ipv6only-clang + --target linux-arm64-tv-app-ipv6only-clang + --target linux-arm64-tv-casting-app-ipv6only-clang --target linux-x64-address-resolve-tool --target linux-x64-all-clusters-app-nodeps-ipv6only --target linux-x64-all-clusters-coverage From 241f58d34527d3695cb32cf0efdb3c8accb764dc Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 12:04:47 -0400 Subject: [PATCH 40/68] Remove some whitespace.Tested that targets are ok --- integrations/cloudbuild/smoke-test.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/integrations/cloudbuild/smoke-test.yaml b/integrations/cloudbuild/smoke-test.yaml index c2cd61c81d4a53..1a0e5a8a536eaf 100644 --- a/integrations/cloudbuild/smoke-test.yaml +++ b/integrations/cloudbuild/smoke-test.yaml @@ -89,8 +89,8 @@ steps: - PW_ENVIRONMENT_ROOT=/pwenv args: - >- - ./scripts/build/build_examples.py - --enable-flashbundle + ./scripts/build/build_examples.py + --enable-flashbundle --target linux-arm64-all-clusters-clang --target linux-arm64-all-clusters-app-nodeps-ipv6only-clang --target linux-arm64-all-clusters-minimal-ipv6only-clang @@ -112,7 +112,7 @@ steps: --target linux-x64-all-clusters-app-nodeps-ipv6only --target linux-x64-all-clusters-coverage --target linux-x64-bridge-ipv6only - --target linux-x64-chip-cert + --target linux-x64-chip-cert --target linux-x64-chip-tool-ipv6only --target linux-x64-dynamic-bridge-ipv6only --target linux-x64-light-rpc-ipv6only @@ -125,8 +125,8 @@ steps: --target linux-x64-shell-ipv6only --target linux-x64-thermostat-ipv6only --target linux-x64-tv-app-ipv6only - --target linux-x64-tv-casting-app-ipv6only - build + --target linux-x64-tv-casting-app-ipv6only + build --create-archives /workspace/artifacts/ waitFor: - Bootstrap From a7aae5c3182bb5bcdaff045ce0bb005b19866558 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:17:50 -0400 Subject: [PATCH 41/68] Fix ameba --- .github/workflows/examples-ameba.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples-ameba.yaml b/.github/workflows/examples-ameba.yaml index a320dd8a74d08f..703883dea7de5c 100644 --- a/.github/workflows/examples-ameba.yaml +++ b/.github/workflows/examples-ameba.yaml @@ -47,4 +47,12 @@ jobs: - name: Checkout submodules run: scripts/checkout_submodules.py --shallow --platform ameba - name: Build example Ameba All Clusters App - run: scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target-glob 'ameba-*' build" + run: | + ./scripts/run_in_build_env.sh \ + "./scripts/build/build_examples.py \ + --target ameba-amebad-all-clusters \ + --target ameba-amebad-all-clusters-minimal \ + --target ameba-amebad-light \ + --target ameba-amebad-pigweed \ + build \ + " From d7b9ebc5ff015c0b9941095b11f712868f436c45 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:19:24 -0400 Subject: [PATCH 42/68] Fix tizen --- .github/workflows/examples-tizen.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples-tizen.yaml b/.github/workflows/examples-tizen.yaml index 561170f1ea22b5..fb5bdc59a5e902 100644 --- a/.github/workflows/examples-tizen.yaml +++ b/.github/workflows/examples-tizen.yaml @@ -54,7 +54,11 @@ jobs: ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py \ --enable-flashbundle \ - --target-glob 'tizen-*' \ + --target tizen-arm-all-clusters \ + --target tizen-arm-all-clusters-minimal-no-wifi \ + --target chip-tool \ + --target light \ + --target light-no-ble-no-wifi \ build \ --copy-artifacts-to out/artifacts \ " From 0537862ba887d484cb94b8697a6878e4267a9e81 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:20:15 -0400 Subject: [PATCH 43/68] Fix infineon --- .github/workflows/examples-infineon.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples-infineon.yaml b/.github/workflows/examples-infineon.yaml index a162a6b12d4db9..5277f7eacded25 100644 --- a/.github/workflows/examples-infineon.yaml +++ b/.github/workflows/examples-infineon.yaml @@ -126,7 +126,9 @@ jobs: run: | ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py \ - --target-glob 'cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor-no-progress-logging}' \ + --target cyw30739-cyw930739m2evb_01-light \ + --target cyw30739-cyw930739m2evb_01-lock \ + --target cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging \ build \ --copy-artifacts-to out/artifacts \ " From 67831d20b9fade567f30cd5db03c95a1685c2d2a Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:21:21 -0400 Subject: [PATCH 44/68] Fix qpg --- .github/workflows/examples-qpg.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples-qpg.yaml b/.github/workflows/examples-qpg.yaml index 58861751dadd42..841f8b2284eb16 100644 --- a/.github/workflows/examples-qpg.yaml +++ b/.github/workflows/examples-qpg.yaml @@ -72,7 +72,10 @@ jobs: ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py \ --enable-flashbundle \ - --target-glob 'qpg-{lock,light,shell,persistent-storage}' \ + --target qpg-qpg6105-lock \ + --target qpg-qpg6105-light \ + --target qpg-qpg6105-shell \ + --target qpg-qpg6105-persistent-storage \ build \ --copy-artifacts-to out/artifacts \ " From 68488b9067ef58f0ccf8d230f6f32a8eb4662ddb Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:24:03 -0400 Subject: [PATCH 45/68] Fix infineon, cc13x2x7 and update android a bit --- .github/workflows/examples-cc13x2x7_26x2x7.yaml | 10 +++++++++- .github/workflows/examples-infineon.yaml | 2 +- .github/workflows/full-android.yaml | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/examples-cc13x2x7_26x2x7.yaml b/.github/workflows/examples-cc13x2x7_26x2x7.yaml index 2c45231a6752a0..dc6295ec949912 100644 --- a/.github/workflows/examples-cc13x2x7_26x2x7.yaml +++ b/.github/workflows/examples-cc13x2x7_26x2x7.yaml @@ -68,7 +68,15 @@ jobs: timeout-minutes: 60 run: | scripts/run_in_build_env.sh "\ - ./scripts/build/build_examples.py --target-glob cc13x2x7_26x2x7* build \ + ./scripts/build/build_examples.py \ + --target cc13x2x7_26x2x7-all-clusters-ftd \ + --target cc13x2x7_26x2x7-all-clusters-mtd \ + --target cc13x2x7_26x2x7-all-clusters-minimal \ + --target cc13x2x7_26x2x7-lock \ + --target cc13x2x7_26x2x7-pump \ + --target cc13x2x7_26x2x7-pump-controller \ + --target cc13x2x7_26x2x7-shell \ + build \ --copy-artifacts-to out/artifacts \ " - name: Get lock FTD size stats diff --git a/.github/workflows/examples-infineon.yaml b/.github/workflows/examples-infineon.yaml index 5277f7eacded25..1472e6fd8112a2 100644 --- a/.github/workflows/examples-infineon.yaml +++ b/.github/workflows/examples-infineon.yaml @@ -130,7 +130,7 @@ jobs: --target cyw30739-cyw930739m2evb_01-lock \ --target cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging \ build \ - --copy-artifacts-to out/artifacts \ + -copy-artifacts-to out/artifacts \ " - name: Get light size stats timeout-minutes: 5 diff --git a/.github/workflows/full-android.yaml b/.github/workflows/full-android.yaml index c17a46350971c3..8e502c3453b9dd 100644 --- a/.github/workflows/full-android.yaml +++ b/.github/workflows/full-android.yaml @@ -111,4 +111,4 @@ jobs: # - name: Build Android Studio build (arm64 only) # run: | # ./scripts/run_in_build_env.sh \ - # "./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-androidstudio-arm64-chip-tool' build" + # "./scripts/build/build_examples.py --no-log-timestamps --target android-androidstudio-arm64-chip-tool build" From c125fc3cf12ce9e22a6278269bb7d44554be149f Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:25:20 -0400 Subject: [PATCH 46/68] Fix linux standalone --- .github/workflows/examples-linux-standalone.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples-linux-standalone.yaml b/.github/workflows/examples-linux-standalone.yaml index 9c2de92393ef92..f24faf1fae284f 100644 --- a/.github/workflows/examples-linux-standalone.yaml +++ b/.github/workflows/examples-linux-standalone.yaml @@ -71,7 +71,11 @@ jobs: timeout-minutes: 10 run: | ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py --no-log-timestamps --target-glob '*-chip-cert' build" + "./scripts/build/build_examples.py --no-log-timestamps \ + --target linux-x64-chip-cert \ + --target linux-arm64-chip-cert \ + build \ + " - name: Build minmdns example with platform dns timeout-minutes: 10 run: | From 8355edc983d0e2f212deb505e516e495b554dbe7 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:27:49 -0400 Subject: [PATCH 47/68] Fix efr32 --- .github/workflows/examples-efr32.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples-efr32.yaml b/.github/workflows/examples-efr32.yaml index 93906993921c4d..3476e70aae76f0 100644 --- a/.github/workflows/examples-efr32.yaml +++ b/.github/workflows/examples-efr32.yaml @@ -77,7 +77,12 @@ jobs: ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py \ --enable-flashbundle \ - --target-glob '*-brd4187c-{lock,light,switch,window-covering,unit-test}' \ + --target efr32-brd4187c-window-covering \ + --target efr32-brd4187c-switch \ + --target efr32-brd4187c-unit-test \ + --target efr32-brd4187c-light \ + --target efr32-brd4187c-light-rpc \ + --target efr32-brd4187c-lock-rpc \ build \ --copy-artifacts-to out/artifacts \ " From 1e75a2501df722a894e5f9bf9060642f29629dfa Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:28:46 -0400 Subject: [PATCH 48/68] Fix esp32 --- .github/workflows/examples-esp32.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples-esp32.yaml b/.github/workflows/examples-esp32.yaml index d3736684e4a132..e59031c5f7e0cf 100644 --- a/.github/workflows/examples-esp32.yaml +++ b/.github/workflows/examples-esp32.yaml @@ -70,7 +70,9 @@ jobs: ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py \ --enable-flashbundle \ - --target-glob '*-m5stack-{all-clusters,all-clusters-minimal,all-clusters-rpc-ipv6only}' \ + --target esp32-m5stack-all-clusters \ + --target esp32-m5stack-all-clusters-minimal \ + --target esp32-m5stack-all-clusters-rpc-ipv6only \ build \ --copy-artifacts-to out/artifacts \ " From 074a90254092ce40ee65e5634e6eaeebb81785c5 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:29:10 -0400 Subject: [PATCH 49/68] Remove glob option from tasks.json --- .vscode/tasks.json | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d6fedb4eb102bd..7ad376e3e2457e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -13,18 +13,6 @@ "base": "$gcc" } }, - { - "label": "Build examples (glob)", - "type": "shell", - "command": "scripts/run_in_build_env.sh", - "args": [ - "./scripts/build/build_examples.py --target-glob \"${input:exampleGlob}\" build" - ], - "group": "build", - "problemMatcher": { - "base": "$gcc" - } - }, { "label": "Main Build", "type": "shell", From 80a0d18ae164f247b838fd636461ec3449869924 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:48:52 -0400 Subject: [PATCH 50/68] Fix platform naming for targets - fixes darwin target naming --- scripts/build/build/targets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index bbcd0710ced139..ea0b51655754f0 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -44,7 +44,7 @@ def BuildHostTarget(): native_board_name = HostBoard.NATIVE.BoardName() cross_compile = (HostBoard.NATIVE.PlatformName() == 'linux') and (native_board_name != HostBoard.ARM64.BoardName()) - target = BuildTarget('linux', HostBuilder) + target = BuildTarget(HostBoard.NATIVE.PlatformName(), HostBuilder) board_parts = [ TargetPart(native_board_name, board=HostBoard.NATIVE), From 19ffd8bb7eb10d26fb0a56c88dca17456592846e Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:50:31 -0400 Subject: [PATCH 51/68] Fix k32w targets - no more release --- .github/workflows/examples-k32w.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/examples-k32w.yaml b/.github/workflows/examples-k32w.yaml index 696c2c6e04fea6..4f4edba262a56d 100644 --- a/.github/workflows/examples-k32w.yaml +++ b/.github/workflows/examples-k32w.yaml @@ -71,11 +71,11 @@ jobs: run: | scripts/run_in_build_env.sh "\ ./scripts/build/build_examples.py \ - --target k32w-light-ota-se \ - --target k32w-light-release-no-ota \ - --target k32w-lock-low-power-release \ - --target k32w-contact-low-power-release \ - --target k32w-shell-release \ + --target k32w-light \ + --target k32w-light-no-ota \ + --target k32w-lock-low-power \ + --target k32w-contact-low-power \ + --target k32w-shell \ build \ --copy-artifacts-to out/artifacts \ " From 9c4669d227a11404016cbe909f62149003290248 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:51:54 -0400 Subject: [PATCH 52/68] Adjust arm64 cross compile target names --- .github/workflows/examples-linux-arm.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/examples-linux-arm.yaml b/.github/workflows/examples-linux-arm.yaml index ad84e2787a89f8..3e4894a9efd5fb 100644 --- a/.github/workflows/examples-linux-arm.yaml +++ b/.github/workflows/examples-linux-arm.yaml @@ -69,11 +69,11 @@ jobs: run: | ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py \ - --target linux-arm64-clang-all-clusters \ - --target linux-arm64-clang-chip-tool-ipv6only \ - --target linux-arm64-clang-lock \ - --target linux-arm64-clang-minmdns \ - --target linux-arm64-clang-thermostat-no-ble \ + --target linux-arm64-all-clusters-clang \ + --target linux-arm64-chip-tool-ipv6only-clang \ + --target linux-arm64-lock-clang \ + --target linux-arm64-minmdns-clang \ + --target linux-arm64-thermostat-no-ble-clang \ build \ " - name: Bloat report - chip-tool @@ -81,14 +81,14 @@ jobs: run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ linux arm64 chip-tool-ipv6only \ - out/linux-arm64-clang-chip-tool-ipv6only/chip-tool \ + out/linux-arm64-chip-tool-ipv6only-clang/chip-tool \ /tmp/bloat_reports/ - name: Bloat report - thermostat timeout-minutes: 5 run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ linux arm64 thermostat-no-ble \ - out/linux-arm64-clang-thermostat-no-ble/thermostat-app \ + out/linux-arm64-thermostat-no-ble-clang/thermostat-app \ /tmp/bloat_reports/ - name: Uploading Size Reports uses: actions/upload-artifact@v2 From 3775422c0894c34848f6994d92090d4aa95c7f83 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:52:45 -0400 Subject: [PATCH 53/68] Fix boufallolab app target --- scripts/build/build/targets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index ea0b51655754f0..5df211cfe6ad2c 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -422,7 +422,7 @@ def BuildBouffalolabTarget(): # Apps target.AppendFixedTargets([ - TargetPart('light', board=BouffalolabApp.LIGHT), + TargetPart('light', app=BouffalolabApp.LIGHT), ]) return target From f09094b710b56eba4b3602230fc7d33908d0fb4a Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 13:58:30 -0400 Subject: [PATCH 54/68] All-clusters full thread device does not link (insufficient ram/flash) on cc13x2x7. Updating to minimal thread device only --- .github/workflows/examples-cc13x2x7_26x2x7.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/examples-cc13x2x7_26x2x7.yaml b/.github/workflows/examples-cc13x2x7_26x2x7.yaml index dc6295ec949912..6831d8674296d1 100644 --- a/.github/workflows/examples-cc13x2x7_26x2x7.yaml +++ b/.github/workflows/examples-cc13x2x7_26x2x7.yaml @@ -69,7 +69,6 @@ jobs: run: | scripts/run_in_build_env.sh "\ ./scripts/build/build_examples.py \ - --target cc13x2x7_26x2x7-all-clusters-ftd \ --target cc13x2x7_26x2x7-all-clusters-mtd \ --target cc13x2x7_26x2x7-all-clusters-minimal \ --target cc13x2x7_26x2x7-lock \ From 1614424669e28940dffd608b2d452cf2743aab04 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 14:15:04 -0400 Subject: [PATCH 55/68] Update k32w example builds: nologs is mandatory for low-power builds --- .github/workflows/examples-k32w.yaml | 10 +++++----- scripts/build/build/targets.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/examples-k32w.yaml b/.github/workflows/examples-k32w.yaml index 4f4edba262a56d..d9142d73d72583 100644 --- a/.github/workflows/examples-k32w.yaml +++ b/.github/workflows/examples-k32w.yaml @@ -73,8 +73,8 @@ jobs: ./scripts/build/build_examples.py \ --target k32w-light \ --target k32w-light-no-ota \ - --target k32w-lock-low-power \ - --target k32w-contact-low-power \ + --target k32w-lock-low-power-nologs \ + --target k32w-contact-low-power-nologs \ --target k32w-shell \ build \ --copy-artifacts-to out/artifacts \ @@ -84,21 +84,21 @@ jobs: run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ k32w k32w0+release light \ - out/artifacts/k32w-light-release-no-ota/chip-k32w0x-light-example \ + out/artifacts/k32w-light-no-ota/chip-k32w0x-light-example \ /tmp/bloat_reports/ - name: Get lock size stats timeout-minutes: 5 run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ k32w k32w0+release lock \ - out/artifacts/k32w-lock-low-power-release/chip-k32w0x-lock-example \ + out/artifacts/k32w-lock-low-power-nologs/chip-k32w0x-lock-example \ /tmp/bloat_reports/ - name: Get contact size stats timeout-minutes: 5 run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ k32w k32w0+release contact \ - out/artifacts/k32w-contact-low-power-release/chip-k32w0x-contact-example \ + out/artifacts/k32w-contact-low-power-nologs/chip-k32w0x-contact-example \ /tmp/bloat_reports/ - name: Uploading Size Reports uses: actions/upload-artifact@v2 diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 5df211cfe6ad2c..341caf811c4c71 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -314,7 +314,7 @@ def BuildK32WTarget(): ]) target.AppendModifier(name="no-ota", disable_ota=True) - target.AppendModifier(name="low-power", low_power=True) + target.AppendModifier(name="low-power", low_power=True).OnlyIfRe("-nologs") target.AppendModifier(name="nologs", disable_logs=True) return target From bd21b1c02a3adb59e16f1535f4c51661754db379 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 14:40:15 -0400 Subject: [PATCH 56/68] Fix output dir for boufallolab: output should be all lowercase --- .github/workflows/examples-bouffalolab.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/examples-bouffalolab.yaml b/.github/workflows/examples-bouffalolab.yaml index 4f32c97aaf424e..d34012451b9ef4 100644 --- a/.github/workflows/examples-bouffalolab.yaml +++ b/.github/workflows/examples-bouffalolab.yaml @@ -58,7 +58,7 @@ jobs: ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-light build" .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702 lighting-app \ - out/bouffalolab-BL706-IoT-DVK-light/chip-bl702-lighting-example.out /tmp/bloat_reports/ + out/bouffalolab-bouffalolab-bl706-iot-dvk-light/chip-bl702-lighting-example.out /tmp/bloat_reports/ - name: Build example BL702 Lighting App with RPCs timeout-minutes: 30 @@ -66,7 +66,7 @@ jobs: ./scripts/run_in_build_env.sh \ "./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-light-rpc build" .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702+rpc lighting-app \ - out/bouffalolab-BL706-IoT-DVK-light-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/ + out/bouffalolab-bl706-iot-dvk-light-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/ - name: Uploading Size Reports uses: actions/upload-artifact@v2 From 743f2dbc11d837986a0f001cb666da37cdb94c23 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 14:46:44 -0400 Subject: [PATCH 57/68] Add back the test/extra_tests variant to host builds --- scripts/build/build/targets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 341caf811c4c71..2608a40417ae45 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -79,7 +79,7 @@ def BuildHostTarget(): TargetPart('tests', app=HostApp.TESTS), TargetPart('chip-cert', app=HostApp.CERT_TOOL), TargetPart('address-resolve-tool', app=HostApp.ADDRESS_RESOLVE), - TargetPart('tests', app=HostApp.TESTS, extra_tests=True), + TargetPart('tests', app=HostApp.TESTS), ] if (HostBoard.NATIVE.PlatformName() == 'darwin'): @@ -105,6 +105,7 @@ def BuildHostTarget(): target.AppendModifier('coverage', use_coverage=True).OnlyIfRe('-(chip-tool|all-clusters)') target.AppendModifier('dmalloc', use_dmalloc=True) target.AppendModifier('clang', use_clang=True) + target.AppendModifier('test', extra_tests=True) return target From c57cc9cd0f0f7b7ab470860b56107bc489ed7581 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 14:48:01 -0400 Subject: [PATCH 58/68] Fix qpg size reports --- .github/workflows/examples-qpg.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/examples-qpg.yaml b/.github/workflows/examples-qpg.yaml index 841f8b2284eb16..a0eef523d14d1d 100644 --- a/.github/workflows/examples-qpg.yaml +++ b/.github/workflows/examples-qpg.yaml @@ -88,11 +88,11 @@ jobs: run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ qpg qpg6105+debug lighting-app \ - out/qpg-light/chip-qpg6105-lighting-example.out \ + out/qpg-qpg6105-light/chip-qpg6105-lighting-example.out \ /tmp/bloat_reports/ .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ qpg qpg6105+debug lock-app \ - out/qpg-lock/chip-qpg6105-lock-example.out \ + out/qpg-qpg6105-lock/chip-qpg6105-lock-example.out \ /tmp/bloat_reports/ - name: Uploading Size Reports From 045b5be3d530104db01e6893d732c1c83f9505e0 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 14:49:04 -0400 Subject: [PATCH 59/68] Update unit tests for available outpust now that test variant was added --- scripts/build/testdata/all_targets_linux_x64.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index 6f860d3cf52813..2a3510ebcf11d7 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -7,7 +7,7 @@ cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor}[-no-progress-logging] efr32-{brd4161a,brd4187c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a}-{window-covering,switch,unit-test,light,lock}[-rpc][-with-ota-requestor] esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-requestor,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only] genio-lighting-app -linux-{x64,fake,arm64}-{rpc-console,nl-test-runner,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang] +linux-{x64,fake,arm64}-{rpc-console,nl-test-runner,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test] 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] k32w-{light,shell,lock,contact}[-no-ota][-low-power][-nologs] From 1e64e415a21f2afe1846e774e6b1804784ba6cb0 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 14:52:34 -0400 Subject: [PATCH 60/68] Fix expected paths for cc13x2x7 builds --- .github/workflows/examples-cc13x2x7_26x2x7.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/examples-cc13x2x7_26x2x7.yaml b/.github/workflows/examples-cc13x2x7_26x2x7.yaml index 6831d8674296d1..184cd86a4c54a2 100644 --- a/.github/workflows/examples-cc13x2x7_26x2x7.yaml +++ b/.github/workflows/examples-cc13x2x7_26x2x7.yaml @@ -71,7 +71,8 @@ jobs: ./scripts/build/build_examples.py \ --target cc13x2x7_26x2x7-all-clusters-mtd \ --target cc13x2x7_26x2x7-all-clusters-minimal \ - --target cc13x2x7_26x2x7-lock \ + --target cc13x2x7_26x2x7-lock-ftd \ + --target cc13x2x7_26x2x7-lock-mtd \ --target cc13x2x7_26x2x7-pump \ --target cc13x2x7_26x2x7-pump-controller \ --target cc13x2x7_26x2x7-shell \ @@ -111,7 +112,7 @@ jobs: run: | .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ cc13x2_26x2 LP_CC2652R7 all-clusters-app \ - out/artifacts/cc13x2x7_26x2x7-all-clusters/chip-LP_CC2652R7-all-clusters-example.out \ + out/artifacts/cc13x2x7_26x2x7-all-clusters-mtd/chip-LP_CC2652R7-all-clusters-example.out \ /tmp/bloat_reports/ - name: Get All Clusters Minimal App size stats timeout-minutes: 5 From dc833f5143473489fbb6fcfbbcfb88c77e6b4629 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 15:42:30 -0400 Subject: [PATCH 61/68] Fix typo in infineon build --- .github/workflows/examples-infineon.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/examples-infineon.yaml b/.github/workflows/examples-infineon.yaml index 1472e6fd8112a2..5277f7eacded25 100644 --- a/.github/workflows/examples-infineon.yaml +++ b/.github/workflows/examples-infineon.yaml @@ -130,7 +130,7 @@ jobs: --target cyw30739-cyw930739m2evb_01-lock \ --target cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging \ build \ - -copy-artifacts-to out/artifacts \ + --copy-artifacts-to out/artifacts \ " - name: Get light size stats timeout-minutes: 5 From e096252eddc97c637b3d87a51dde6ccd6dcc1189 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 15:43:55 -0400 Subject: [PATCH 62/68] Fix BL702 path for output - duplicate boufallolab --- .github/workflows/examples-bouffalolab.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/examples-bouffalolab.yaml b/.github/workflows/examples-bouffalolab.yaml index d34012451b9ef4..3b53d17b35d726 100644 --- a/.github/workflows/examples-bouffalolab.yaml +++ b/.github/workflows/examples-bouffalolab.yaml @@ -56,15 +56,15 @@ jobs: timeout-minutes: 30 run: | ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-light build" + "./scripts/build/build_examples.py --target bouffalolab-bl706-iot-dvk-light build" .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702 lighting-app \ - out/bouffalolab-bouffalolab-bl706-iot-dvk-light/chip-bl702-lighting-example.out /tmp/bloat_reports/ + out/bouffalolab-bl706-iot-dvk-light/chip-bl702-lighting-example.out /tmp/bloat_reports/ - name: Build example BL702 Lighting App with RPCs timeout-minutes: 30 run: | ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-light-rpc build" + "./scripts/build/build_examples.py --target bouffalolab-bl706-iot-dvk-light-rpc build" .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702+rpc lighting-app \ out/bouffalolab-bl706-iot-dvk-light-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/ From 885efb6e7e03b0ce94ee9782b598938e456acf1e Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 16:09:25 -0400 Subject: [PATCH 63/68] Allow rpc modifier for BL706 --- scripts/build/build/targets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 2608a40417ae45..9dfe27d1b96dc0 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -426,6 +426,8 @@ def BuildBouffalolabTarget(): TargetPart('light', app=BouffalolabApp.LIGHT), ]) + target.AppendModifier('rpc', enable_rpcs=True) + return target From c1678f5c319adff1a9058da94d7d08d0a162223b Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 6 Oct 2022 16:33:12 -0400 Subject: [PATCH 64/68] Fix unit tests --- scripts/build/testdata/all_targets_linux_x64.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index 2a3510ebcf11d7..e48560fd44f4ab 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -1,7 +1,7 @@ ameba-amebad-{all-clusters,all-clusters-minimal,light,pigweed} android-{arm,arm64,x86,x64,androidstudio-arm,androidstudio-arm64,androidstudio-x86,androidstudio-x64}-{chip-tool,chip-test,tv-server,tv-casting-app} bl602-light -bouffalolab-{bl706-iot-dvk,bl706-night-light}-light +bouffalolab-{bl706-iot-dvk,bl706-night-light}-light[-rpc] cc13x2x7_26x2x7-{all-clusters,all-clusters-minimal,lock,pump,pump-controller,shell}[-ftd][-mtd] cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor}[-no-progress-logging] efr32-{brd4161a,brd4187c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a}-{window-covering,switch,unit-test,light,lock}[-rpc][-with-ota-requestor] From 57fc675c2c867a8680336bb7b224c064ad917149 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 7 Oct 2022 10:27:37 -0400 Subject: [PATCH 65/68] Move nltestrunner to esp32 test runner and include in cloudbuild --- integrations/cloudbuild/build-all.yaml | 1 + integrations/cloudbuild/smoke-test.yaml | 1 + scripts/build/build/targets.py | 18 +++++++++++++++++- scripts/build/builders/host.py | 8 ++++---- .../build/testdata/all_targets_linux_x64.txt | 4 +++- ...un_linux-arm64-chip-tool-ipv6only-clang.txt | 10 ++++++++++ ...nux-arm64-ota-requestor-nodeps-ipv6only.txt | 10 ++++++++++ ...dry_run_linux-x64-all-clusters-coverage.txt | 6 ++++++ 8 files changed, 52 insertions(+), 6 deletions(-) diff --git a/integrations/cloudbuild/build-all.yaml b/integrations/cloudbuild/build-all.yaml index c9bf06cf2ac07c..98976e3f6e4a1e 100644 --- a/integrations/cloudbuild/build-all.yaml +++ b/integrations/cloudbuild/build-all.yaml @@ -112,6 +112,7 @@ steps: --target linux-x64-chip-tool-coverage --target linux-x64-chip-tool-nodeps-ipv6only --target linux-x64-dynamic-bridge-ipv6only + --target linux-x64-esp32-test-runner --target linux-x64-light-rpc-ipv6only --target linux-x64-lock-ipv6only --target linux-x64-minmdns diff --git a/integrations/cloudbuild/smoke-test.yaml b/integrations/cloudbuild/smoke-test.yaml index 1a0e5a8a536eaf..70d7f7a571fa8c 100644 --- a/integrations/cloudbuild/smoke-test.yaml +++ b/integrations/cloudbuild/smoke-test.yaml @@ -115,6 +115,7 @@ steps: --target linux-x64-chip-cert --target linux-x64-chip-tool-ipv6only --target linux-x64-dynamic-bridge-ipv6only + --target linux-x64-esp32-test-runner --target linux-x64-light-rpc-ipv6only --target linux-x64-lock-ipv6only --target linux-x64-minmdns-ipv6only diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 9dfe27d1b96dc0..e85de080142c1a 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -39,6 +39,21 @@ from builders.imx import IMXApp, IMXBuilder from builders.genio import GenioApp, GenioBuilder +def BuildHostTestRunnerTarget(): + target = BuildTarget(HostBoard.NATIVE.PlatformName(), HostBuilder) + + target.AppendFixedTargets([ + TargetPart(HostBoard.NATIVE.BoardName(), board=HostBoard.NATIVE), + ]) + + target.AppendFixedTargets([ + TargetPart('esp32-test-runner', app=HostApp.EFR32_TEST_RUNNER) + ]) + + target.AppendModifier('clang', use_clang=True) + + return target + def BuildHostTarget(): native_board_name = HostBoard.NATIVE.BoardName() @@ -59,7 +74,6 @@ def BuildHostTarget(): # Add all the applications app_parts = [ TargetPart('rpc-console', app=HostApp.RPC_CONSOLE).OnlyIfRe(f'{native_board_name}-'), - TargetPart('nl-test-runner', app=HostApp.NL_TEST_RUNNER).OnlyIfRe(f'{native_board_name}-'), TargetPart('all-clusters', app=HostApp.ALL_CLUSTERS), TargetPart('all-clusters-minimal', app=HostApp.ALL_CLUSTERS), TargetPart('chip-tool', app=HostApp.CHIP_TOOL), @@ -484,6 +498,8 @@ def BuildTelinkTarget(): BuildEsp32Target(), BuildGenioTarget(), BuildHostTarget(), + BuildHostTestRunnerTarget(), + BuildHostTarget(), BuildIMXTarget(), BuildInfineonTarget(), BuildK32WTarget(), diff --git a/scripts/build/builders/host.py b/scripts/build/builders/host.py index e071c4fb3f3966..af6c19ffe93462 100644 --- a/scripts/build/builders/host.py +++ b/scripts/build/builders/host.py @@ -54,7 +54,7 @@ class HostApp(Enum): OTA_PROVIDER = auto() OTA_REQUESTOR = auto() PYTHON_BINDINGS = auto() - NL_TEST_RUNNER = auto() + EFR32_TEST_RUNNER = auto() TV_CASTING = auto() BRIDGE = auto() DYNAMIC_BRIDGE = auto() @@ -90,7 +90,7 @@ def ExamplePath(self): return 'ota-requestor-app/linux' elif self in [HostApp.ADDRESS_RESOLVE, HostApp.TESTS, HostApp.PYTHON_BINDINGS, HostApp.CERT_TOOL]: return '../' - elif self == HostApp.NL_TEST_RUNNER: + elif self == HostApp.EFR32_TEST_RUNNER: return '../src/test_driver/efr32' elif self == HostApp.TV_CASTING: return 'tv-casting-app/linux' @@ -157,7 +157,7 @@ def OutputNames(self): yield 'chip-ota-requestor-app.map' elif self == HostApp.PYTHON_BINDINGS: yield 'controller/python' # Directory containing WHL files - elif self == HostApp.NL_TEST_RUNNER: + elif self == HostApp.EFR32_TEST_RUNNER: yield 'chip_nl_test_runner_wheels' elif self == HostApp.TV_CASTING: yield 'chip-tv-casting-app' @@ -301,7 +301,7 @@ def __init__(self, root, runner, app: HostApp, board=HostBoard.NATIVE, self.extra_gn_options.append('chip_build_tests=true') self.build_command = 'check' - if app == HostApp.NL_TEST_RUNNER: + if app == HostApp.EFR32_TEST_RUNNER: self.build_command = 'runner' # board will NOT be used, but is required to be able to properly # include things added by the test_runner efr32 build diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index e48560fd44f4ab..1aa13e41695462 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -7,7 +7,9 @@ cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor}[-no-progress-logging] efr32-{brd4161a,brd4187c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a}-{window-covering,switch,unit-test,light,lock}[-rpc][-with-ota-requestor] esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-requestor,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only] genio-lighting-app -linux-{x64,fake,arm64}-{rpc-console,nl-test-runner,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test] +linux-{x64,fake,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test] +linux-x64-esp32-test-runner[-clang] +linux-{x64,fake,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test] 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] k32w-{light,shell,lock,contact}[-no-ota][-low-power][-nologs] diff --git a/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt b/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt index a92463b2cff716..3a86091d5f1f94 100644 --- a/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt +++ b/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt @@ -6,6 +6,16 @@ bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-chip-tool-ipv6only-clang' +# Generating linux-arm64-chip-tool-ipv6only-clang +bash -c ' +PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ + gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-chip-tool-ipv6only-clang' + +# Building linux-arm64-chip-tool-ipv6only-clang +bash -c ' +PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ + ninja -C {out}/linux-arm64-chip-tool-ipv6only-clang' + # Building linux-arm64-chip-tool-ipv6only-clang bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ diff --git a/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt b/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt index aa6eb4dd3e8a31..adeaa8b0ab58e4 100644 --- a/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt +++ b/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt @@ -6,6 +6,16 @@ bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-ota-requestor-nodeps-ipv6only' +# Generating linux-arm64-ota-requestor-nodeps-ipv6only +bash -c ' +PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ + gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-ota-requestor-nodeps-ipv6only' + +# Building linux-arm64-ota-requestor-nodeps-ipv6only +bash -c ' +PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ + ninja -C {out}/linux-arm64-ota-requestor-nodeps-ipv6only' + # Building linux-arm64-ota-requestor-nodeps-ipv6only bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ diff --git a/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt b/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt index 94e8686b31dcf9..8a0675b8059ffa 100644 --- a/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt +++ b/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt @@ -4,5 +4,11 @@ cd "{root}" # Generating linux-x64-all-clusters-coverage gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux --args=use_coverage=true {out}/linux-x64-all-clusters-coverage +# Generating linux-x64-all-clusters-coverage +gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux --args=use_coverage=true {out}/linux-x64-all-clusters-coverage + +# Building linux-x64-all-clusters-coverage +ninja -C {out}/linux-x64-all-clusters-coverage + # Building linux-x64-all-clusters-coverage ninja -C {out}/linux-x64-all-clusters-coverage From 05be0b66a32c227ffe195e4880126b93ee416edb Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 7 Oct 2022 10:29:24 -0400 Subject: [PATCH 66/68] Undo duplicate build target addition --- scripts/build/build/targets.py | 1 - scripts/build/testdata/all_targets_linux_x64.txt | 1 - .../dry_run_linux-arm64-chip-tool-ipv6only-clang.txt | 10 ---------- ...y_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt | 10 ---------- .../dry_run_linux-x64-all-clusters-coverage.txt | 6 ------ 5 files changed, 28 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index e85de080142c1a..afa201fd6fd763 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -499,7 +499,6 @@ def BuildTelinkTarget(): BuildGenioTarget(), BuildHostTarget(), BuildHostTestRunnerTarget(), - BuildHostTarget(), BuildIMXTarget(), BuildInfineonTarget(), BuildK32WTarget(), diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index 1aa13e41695462..5789877f015f17 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -9,7 +9,6 @@ esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-req genio-lighting-app linux-{x64,fake,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test] linux-x64-esp32-test-runner[-clang] -linux-{x64,fake,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test] 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] k32w-{light,shell,lock,contact}[-no-ota][-low-power][-nologs] diff --git a/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt b/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt index 3a86091d5f1f94..a92463b2cff716 100644 --- a/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt +++ b/scripts/build/testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt @@ -6,16 +6,6 @@ bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-chip-tool-ipv6only-clang' -# Generating linux-arm64-chip-tool-ipv6only-clang -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/chip-tool '"'"'--args=chip_inet_config_enable_ipv4=false is_clang=true target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-chip-tool-ipv6only-clang' - -# Building linux-arm64-chip-tool-ipv6only-clang -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-chip-tool-ipv6only-clang' - # Building linux-arm64-chip-tool-ipv6only-clang bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ diff --git a/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt b/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt index adeaa8b0ab58e4..aa6eb4dd3e8a31 100644 --- a/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt +++ b/scripts/build/testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt @@ -6,16 +6,6 @@ bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-ota-requestor-nodeps-ipv6only' -# Generating linux-arm64-ota-requestor-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/ota-requestor-app/linux '"'"'--args=chip_inet_config_enable_ipv4=false chip_config_network_layer_ble=false chip_enable_wifi=false chip_enable_openthread=false is_clang=true chip_crypto="mbedtls" target_cpu="arm64" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-ota-requestor-nodeps-ipv6only' - -# Building linux-arm64-ota-requestor-nodeps-ipv6only -bash -c ' -PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ - ninja -C {out}/linux-arm64-ota-requestor-nodeps-ipv6only' - # Building linux-arm64-ota-requestor-nodeps-ipv6only bash -c ' PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \ diff --git a/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt b/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt index 8a0675b8059ffa..94e8686b31dcf9 100644 --- a/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt +++ b/scripts/build/testdata/dry_run_linux-x64-all-clusters-coverage.txt @@ -4,11 +4,5 @@ cd "{root}" # Generating linux-x64-all-clusters-coverage gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux --args=use_coverage=true {out}/linux-x64-all-clusters-coverage -# Generating linux-x64-all-clusters-coverage -gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/linux --args=use_coverage=true {out}/linux-x64-all-clusters-coverage - -# Building linux-x64-all-clusters-coverage -ninja -C {out}/linux-x64-all-clusters-coverage - # Building linux-x64-all-clusters-coverage ninja -C {out}/linux-x64-all-clusters-coverage From ad052dcde36bf8c9543d4f4c761455a86516b02b Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 7 Oct 2022 10:31:27 -0400 Subject: [PATCH 67/68] Fix typo: esp32 -> efr32 --- integrations/cloudbuild/build-all.yaml | 2 +- integrations/cloudbuild/smoke-test.yaml | 2 +- scripts/build/build/targets.py | 2 +- scripts/build/testdata/all_targets_linux_x64.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/integrations/cloudbuild/build-all.yaml b/integrations/cloudbuild/build-all.yaml index 98976e3f6e4a1e..6c68935123eea7 100644 --- a/integrations/cloudbuild/build-all.yaml +++ b/integrations/cloudbuild/build-all.yaml @@ -112,7 +112,7 @@ steps: --target linux-x64-chip-tool-coverage --target linux-x64-chip-tool-nodeps-ipv6only --target linux-x64-dynamic-bridge-ipv6only - --target linux-x64-esp32-test-runner + --target linux-x64-efr32-test-runner --target linux-x64-light-rpc-ipv6only --target linux-x64-lock-ipv6only --target linux-x64-minmdns diff --git a/integrations/cloudbuild/smoke-test.yaml b/integrations/cloudbuild/smoke-test.yaml index 70d7f7a571fa8c..f05fa37cd568d1 100644 --- a/integrations/cloudbuild/smoke-test.yaml +++ b/integrations/cloudbuild/smoke-test.yaml @@ -115,7 +115,7 @@ steps: --target linux-x64-chip-cert --target linux-x64-chip-tool-ipv6only --target linux-x64-dynamic-bridge-ipv6only - --target linux-x64-esp32-test-runner + --target linux-x64-efr32-test-runner --target linux-x64-light-rpc-ipv6only --target linux-x64-lock-ipv6only --target linux-x64-minmdns-ipv6only diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index afa201fd6fd763..01e8dad2e4c034 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -47,7 +47,7 @@ def BuildHostTestRunnerTarget(): ]) target.AppendFixedTargets([ - TargetPart('esp32-test-runner', app=HostApp.EFR32_TEST_RUNNER) + TargetPart('efr32-test-runner', app=HostApp.EFR32_TEST_RUNNER) ]) target.AppendModifier('clang', use_clang=True) diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index 5789877f015f17..8e1e1ba7a0c051 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -8,7 +8,7 @@ efr32-{brd4161a,brd4187c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,b esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-requestor,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only] genio-lighting-app linux-{x64,fake,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test] -linux-x64-esp32-test-runner[-clang] +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] k32w-{light,shell,lock,contact}[-no-ota][-low-power][-nologs] From 3beceac17cf1a97c88878fa694c1a6c3f42c9c84 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 7 Oct 2022 10:36:11 -0400 Subject: [PATCH 68/68] Split out fake platform: only tests are really supported there --- scripts/build/build/targets.py | 27 +++++++++++++++++-- .../build/testdata/all_targets_linux_x64.txt | 3 ++- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 01e8dad2e4c034..48021ff270a395 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -39,6 +39,7 @@ from builders.imx import IMXApp, IMXBuilder from builders.genio import GenioApp, GenioBuilder + def BuildHostTestRunnerTarget(): target = BuildTarget(HostBoard.NATIVE.PlatformName(), HostBuilder) @@ -55,6 +56,29 @@ def BuildHostTestRunnerTarget(): return target +def BuildHostFakeTarget(): + target = BuildTarget(HostBoard.NATIVE.PlatformName(), HostBuilder) + + target.AppendFixedTargets([ + TargetPart('fake', board=HostBoard.FAKE), + ]) + + target.AppendFixedTargets([ + TargetPart('tests', app=HostApp.TESTS), + ]) + + target.AppendModifier("mbedtls", crypto_library=HostCryptoLibrary.MBEDTLS).ExceptIfRe('-mbedtls') + target.AppendModifier("boringssl", crypto_library=HostCryptoLibrary.BORINGSSL).ExceptIfRe('-boringssl') + target.AppendModifier("asan", use_asan=True).ExceptIfRe("-tsan") + target.AppendModifier("tsan", use_tsan=True).ExceptIfRe("-asan") + target.AppendModifier("libfuzzer", use_tsan=True).OnlyIfRe("-clang") + target.AppendModifier('coverage', use_coverage=True).OnlyIfRe('-(chip-tool|all-clusters)') + target.AppendModifier('dmalloc', use_dmalloc=True) + target.AppendModifier('clang', use_clang=True) + + return target + + def BuildHostTarget(): native_board_name = HostBoard.NATIVE.BoardName() cross_compile = (HostBoard.NATIVE.PlatformName() == 'linux') and (native_board_name != HostBoard.ARM64.BoardName()) @@ -63,7 +87,6 @@ def BuildHostTarget(): board_parts = [ TargetPart(native_board_name, board=HostBoard.NATIVE), - TargetPart('fake', board=HostBoard.FAKE), ] if cross_compile: @@ -93,7 +116,6 @@ def BuildHostTarget(): TargetPart('tests', app=HostApp.TESTS), TargetPart('chip-cert', app=HostApp.CERT_TOOL), TargetPart('address-resolve-tool', app=HostApp.ADDRESS_RESOLVE), - TargetPart('tests', app=HostApp.TESTS), ] if (HostBoard.NATIVE.PlatformName() == 'darwin'): @@ -497,6 +519,7 @@ def BuildTelinkTarget(): BuildEfr32Target(), BuildEsp32Target(), BuildGenioTarget(), + BuildHostFakeTarget(), BuildHostTarget(), BuildHostTestRunnerTarget(), BuildIMXTarget(), diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index 8e1e1ba7a0c051..f9f35c964e9400 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -7,7 +7,8 @@ cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor}[-no-progress-logging] efr32-{brd4161a,brd4187c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a}-{window-covering,switch,unit-test,light,lock}[-rpc][-with-ota-requestor] esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-requestor,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only] genio-lighting-app -linux-{x64,fake,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool,tests}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test] +linux-fake-tests[-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang] +linux-{x64,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool}[-nodeps][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test] 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]