Skip to content

Commit

Permalink
github_ci: Enable RPC builds
Browse files Browse the repository at this point in the history
It enables RPC builds in targets.py.

Signed-off-by: Krystian Jankowski <krystian.jankowski@telink-semi.com>
  • Loading branch information
TelinkKrystian committed Feb 24, 2023
1 parent 61cf6f2 commit 23ea87c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,8 @@ def BuildTelinkTarget():
TargetPart('thermostat', app=TelinkApp.THERMOSTAT),
])

target.AppendModifier('rpc', enable_rpcs=True)

return target


Expand Down
7 changes: 6 additions & 1 deletion scripts/build/builders/telink.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ def __init__(self,
root,
runner,
app: TelinkApp = TelinkApp,
board: TelinkBoard = TelinkBoard.TLSR9518ADK80D):
board: TelinkBoard = TelinkBoard.TLSR9518ADK80D,
enable_rpcs: bool = False):
super(TelinkBuilder, self).__init__(root, runner)
self.app = app
self.board = board
self.enable_rpcs = enable_rpcs

def get_cmd_prefixes(self):
if not self._runner.dry_run:
Expand All @@ -106,6 +108,9 @@ def generate(self):
return

flags = []
if self.enable_rpcs:
flags.append("-DOVERLAY_CONFIG=rpc.overlay")

if self.options.pregen_dir:
flags.append(f"-DCHIP_CODEGEN_PREGEN_DIR={shlex.quote(self.options.pregen_dir)}")

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 @@ -19,5 +19,5 @@ nrf-{nrf5340dk,nrf52840dk,nrf52840dongle}-{all-clusters,all-clusters-minimal,loc
nrf-native-posix-64-tests
qpg-qpg6105-{lock,light,shell,persistent-storage}
tizen-arm-{all-clusters,all-clusters-minimal,chip-tool,light}[-no-ble][-no-wifi][-asan][-ubsan]
telink-tlsr9518adk80d-{all-clusters,all-clusters-minimal,contact-sensor,light,light-switch,ota-requestor,thermostat}
telink-tlsr9518adk80d-{all-clusters,all-clusters-minimal,contact-sensor,light,light-switch,ota-requestor,thermostat}[-rpc]
openiotsdk-{shell,lock}

0 comments on commit 23ea87c

Please sign in to comment.