Skip to content

Commit

Permalink
Add build target for BRD2703A (project-chip#33362)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
tcarmelveilleux and andy31415 authored May 9, 2024
1 parent 4cea6a9 commit b3087d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
3 changes: 3 additions & 0 deletions scripts/build/builders/efr32.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class Efr32Board(Enum):
BRD4187C = 9
BRD4186C = 10
BRD4338A = 11
BRD2703A = 12

def GnArgName(self):
if self == Efr32Board.BRD4161A:
Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/testdata/all_targets_linux_x64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b3087d6

Please sign in to comment.