Skip to content

Commit

Permalink
Add variants to python builders
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Oct 26, 2022
1 parent 6550be0 commit 5c9f375
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ def BuildEfr32Target():

target.AppendModifier('rpc', enable_rpcs=True)
target.AppendModifier('with-ota-requestor', enable_ota_requestor=True)
target.AppendModifier('sed', enable_sed=True)
target.AppendModifier('low-power', enable_low_power=True)

return target

Expand Down
9 changes: 9 additions & 0 deletions scripts/build/builders/efr32.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def __init__(self,
board: Efr32Board = Efr32Board.BRD4161A,
enable_rpcs: bool = False,
enable_ota_requestor: bool = False,
enable_sed: bool = False,
enable_low_power: bool = False
):
super(Efr32Builder, self).__init__(
root=app.BuildRoot(root),
Expand All @@ -128,6 +130,13 @@ def __init__(self,
if enable_ota_requestor:
self.extra_gn_options.append('chip_enable_ota_requestor=true')

if enable_sed:
self.extra_gn_options.append('enable_sleepy_device=true chip_openthread_ftd=false')

if enable_low_power:
self.extra_gn_options.append('chip_build_libshell=false enable_openthread_cli=false show_qr_code=false disable_lcd=true')


def GnBuildArgs(self):
return self.extra_gn_options

Expand Down

0 comments on commit 5c9f375

Please sign in to comment.