From b3087d6188926c3de5fb45d3cfdd2cd3b455bf70 Mon Sep 17 00:00:00 2001 From: Tennessee Carmel-Veilleux Date: Thu, 9 May 2024 14:56:53 -0400 Subject: [PATCH] Add build target for BRD2703A (#33362) * Add build target for BRD2703A Build-script-only change to allow building examples against EFR32 BRD2703A variant. Testing done: - `./scripts/build/build_examples.py --target efr32-brd2703a-unit-test build` works after this change, and not before. * Fix all targets golden file :( --------- Co-authored-by: Andrei Litvin --- scripts/build/build/targets.py | 1 + scripts/build/builders/efr32.py | 3 +++ scripts/build/testdata/all_targets_linux_x64.txt | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index aff2fac037d52b..ab0092d4dbc78e 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -230,6 +230,7 @@ def BuildEfr32Target(): # board target.AppendFixedTargets([ + TargetPart('brd2703a', board=Efr32Board.BRD2703A), TargetPart('brd4161a', board=Efr32Board.BRD4161A), TargetPart('brd4187c', board=Efr32Board.BRD4187C), TargetPart('brd4186c', board=Efr32Board.BRD4186C), diff --git a/scripts/build/builders/efr32.py b/scripts/build/builders/efr32.py index c2d685515b8219..1144cfc8c54a16 100644 --- a/scripts/build/builders/efr32.py +++ b/scripts/build/builders/efr32.py @@ -100,6 +100,7 @@ class Efr32Board(Enum): BRD4187C = 9 BRD4186C = 10 BRD4338A = 11 + BRD2703A = 12 def GnArgName(self): if self == Efr32Board.BRD4161A: @@ -124,6 +125,8 @@ def GnArgName(self): return 'BRD4187C' elif self == Efr32Board.BRD4338A: return 'BRD4338A' + elif self == Efr32Board.BRD2703A: + return 'BRD2703A' else: raise Exception('Unknown board #: %r' % self) diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index de45fdb9d8ba77..9c9fb464d33bd4 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -5,7 +5,7 @@ bouffalolab-{bl602-iot-matter-v1,bl602-night-light,xt-zb6-devkit,bl706-night-lig cc32xx-{lock,air-purifier} ti-cc13x4_26x4-{all-clusters,lighting,lock,pump,pump-controller}[-mtd][-ftd] cyw30739-{cyw30739b2_p5_evk_01,cyw30739b2_p5_evk_02,cyw30739b2_p5_evk_03,cyw930739m2evb_01,cyw930739m2evb_02}-{light,light-switch,lock,thermostat} -efr32-{brd4161a,brd4187c,brd4186c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a,brd4338a}-{window-covering,switch,unit-test,light,lock,thermostat,pump}[-rpc][-with-ota-requestor][-icd][-low-power][-shell][-no-logging][-openthread-mtd][-heap-monitoring][-no-openthread-cli][-show-qr-code][-wifi][-rs9116][-wf200][-siwx917][-ipv4][-additional-data-advertising][-use-ot-lib][-use-ot-coap-lib][-no-version][-skip-rps-generation] +efr32-{brd2703a,brd4161a,brd4187c,brd4186c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,brd4304a,brd4338a}-{window-covering,switch,unit-test,light,lock,thermostat,pump}[-rpc][-with-ota-requestor][-icd][-low-power][-shell][-no-logging][-openthread-mtd][-heap-monitoring][-no-openthread-cli][-show-qr-code][-wifi][-rs9116][-wf200][-siwx917][-ipv4][-additional-data-advertising][-use-ot-lib][-use-ot-coap-lib][-no-version][-skip-rps-generation] esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,energy-management,ota-provider,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only][-tracing] genio-lighting-app linux-fake-tests[-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuzz][-coverage][-dmalloc][-clang]