Skip to content

Commit

Permalink
added buuld for app
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak-Shaha committed Sep 17, 2024
1 parent a87fbb5 commit d470e7f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target efr32-brd4187c-thermostat-openthread-mtd \
--target efr32=brd4187c-air-quality-sensor-app-openthread-mtd \
--target efr32-brd4187c-switch-shell-use-ot-coap-lib \
--target efr32-brd4187c-unit-test \
build \
Expand Down
3 changes: 2 additions & 1 deletion scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ def BuildEfr32Target():
TargetPart('light', app=Efr32App.LIGHT),
TargetPart('lock', app=Efr32App.LOCK),
TargetPart('thermostat', app=Efr32App.THERMOSTAT),
TargetPart('pump', app=Efr32App.PUMP)
TargetPart('pump', app=Efr32App.PUMP),
TargetPart('air-quality-sensor-app', app=Efr32App.AIR_QUALITY_SENSOR)
])

target.AppendModifier('rpc', enable_rpcs=True)
Expand Down
7 changes: 7 additions & 0 deletions scripts/build/builders/efr32.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Efr32App(Enum):
THERMOSTAT = auto()
PUMP = auto()
UNIT_TEST = auto()
AIR_QUALITY_SENSOR = auto()

def ExampleName(self):
if self == Efr32App.LIGHT:
Expand All @@ -45,6 +46,8 @@ def ExampleName(self):
return 'thermostat'
elif self == Efr32App.PUMP:
return 'pump-app'
elif self == Efr32App.AIR_QUALITY_SENSOR:
return 'air-quality-sensor-app'
else:
raise Exception('Unknown app type: %r' % self)

Expand All @@ -63,6 +66,8 @@ def AppNamePrefix(self):
return 'matter-silabs-pump-example'
elif self == Efr32App.UNIT_TEST:
return 'matter-silabs-device_tests'
elif self == Efr32App.AIR_QUALITY_SENSOR:
return 'matter-silabs-air-quality-sensor-example'
else:
raise Exception('Unknown app type: %r' % self)

Expand All @@ -81,6 +86,8 @@ def FlashBundleName(self):
return 'pump_app.flashbundle.txt'
elif self == Efr32App.UNIT_TEST:
return os.path.join('tests', 'efr32_device_tests.flashbundle.txt')
elif self == Efr32App.AIR_QUALITY_SENSOR:
return 'air_quality_sensor_app.flashbundle.txt'
else:
raise Exception('Unknown app type: %r' % self)

Expand Down

0 comments on commit d470e7f

Please sign in to comment.