Skip to content

Commit

Permalink
add Python build wrapper for RVC app
Browse files Browse the repository at this point in the history
  • Loading branch information
plauric committed Sep 13, 2023
1 parent b274b9e commit 04ac30c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def BuildHostTarget():
TargetPart('contact-sensor', app=HostApp.CONTACT_SENSOR),
TargetPart('dishwasher', app=HostApp.DISHWASHER),
TargetPart('refrigerator', app=HostApp.REFRIGERATOR),
TargetPart('rvc', app=HostApp.RVC),
]

if (HostBoard.NATIVE.PlatformName() == 'darwin'):
Expand Down
6 changes: 6 additions & 0 deletions scripts/build/builders/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class HostApp(Enum):
CONTACT_SENSOR = auto()
DISHWASHER = auto()
REFRIGERATOR = auto()
RVC = auto()

def ExamplePath(self):
if self == HostApp.ALL_CLUSTERS:
Expand Down Expand Up @@ -118,6 +119,8 @@ def ExamplePath(self):
return 'dishwasher-app/linux'
elif self == HostApp.REFRIGERATOR:
return 'refrigerator-app/linux'
elif self == HostApp.RVC:
return 'rvc-app/linux'
else:
raise Exception('Unknown app type: %r' % self)

Expand Down Expand Up @@ -203,6 +206,9 @@ def OutputNames(self):
elif self == HostApp.REFRIGERATOR:
yield 'refrigerator-app'
yield 'refrigerator-app.map'
elif self == HostApp.RVC:
yield 'rvc-app'
yield 'rvc-app.map'
else:
raise Exception('Unknown app type: %r' % self)

Expand Down

0 comments on commit 04ac30c

Please sign in to comment.