Skip to content

Commit

Permalink
Add nrfconnect switch app in build targets script (#23793)
Browse files Browse the repository at this point in the history
* Adding nrfconnect switch app in build targets script

Fix for #23450

* Add nrfconnect light-switch app in NRF builder

Fix for #23450

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
lboue and andy31415 authored Nov 29, 2022
1 parent 6157859 commit e7a28bf
Show file tree
Hide file tree
Showing 3 changed files with 9 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 @@ -251,6 +251,7 @@ def BuildNrfTarget():
TargetPart('all-clusters-minimal', app=NrfApp.ALL_CLUSTERS_MINIMAL),
TargetPart('lock', app=NrfApp.LOCK),
TargetPart('light', app=NrfApp.LIGHT),
TargetPart('light-switch', app=NrfApp.SWITCH),
TargetPart('shell', app=NrfApp.SHELL),
TargetPart('pump', app=NrfApp.PUMP),
TargetPart('pump-controller', app=NrfApp.PUMP_CONTROLLER),
Expand Down
7 changes: 7 additions & 0 deletions scripts/build/builders/nrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class NrfApp(Enum):
SHELL = auto()
PUMP = auto()
PUMP_CONTROLLER = auto()
SWITCH = auto()
WINDOW_COVERING = auto()
UNIT_TESTS = auto()

Expand All @@ -38,6 +39,8 @@ def AppPath(self):
return 'examples/all-clusters-minimal-app'
elif self == NrfApp.LIGHT:
return 'examples/lighting-app'
elif self == NrfApp.SWITCH:
return 'light-switch-app'
elif self == NrfApp.LOCK:
return 'examples/lock-app'
elif self == NrfApp.SHELL:
Expand All @@ -60,6 +63,8 @@ def AppNamePrefix(self):
return 'chip-nrf-all-clusters-minimal-example'
elif self == NrfApp.LIGHT:
return 'chip-nrf-lighting-example'
elif self == NrfApp.SWITCH:
return 'chip-nrf-light-switch-example'
elif self == NrfApp.LOCK:
return 'chip-nrf-lock-example'
elif self == NrfApp.SHELL:
Expand All @@ -82,6 +87,8 @@ def _FlashBundlePrefix(self):
return 'chip-nrfconnect-all-clusters-minimal-app-example'
elif self == NrfApp.LIGHT:
return 'chip-nrfconnect-lighting-example'
elif self == NrfApp.SWITCH:
return 'chip-nrfconnect-switch-example'
elif self == NrfApp.LOCK:
return 'chip-nrfconnect-lock-example'
elif self == NrfApp.SHELL:
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 @@ -14,7 +14,7 @@ infineon-psoc6-{lock,light,all-clusters,all-clusters-minimal}[-ota][-updateimage
k32w-{light,shell,lock,contact}[-se05x][-no-ble][-no-ota][-low-power][-nologs]
mbed-cy8cproto_062_4343w-{lock,light,all-clusters,all-clusters-minimal,pigweed,shell}[-release][-develop][-debug]
mw320-all-clusters-app
nrf-{nrf5340dk,nrf52840dk,nrf52840dongle}-{all-clusters,all-clusters-minimal,lock,light,shell,pump,pump-controller}[-rpc]
nrf-{nrf5340dk,nrf52840dk,nrf52840dongle}-{all-clusters,all-clusters-minimal,lock,light,light-switch,shell,pump,pump-controller}[-rpc]
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]
Expand Down

0 comments on commit e7a28bf

Please sign in to comment.