Skip to content

Commit

Permalink
[Tizen] Allow to build examples without Thread (#26137)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq authored Apr 19, 2023
1 parent b908274 commit b8368a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ jobs:
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target tizen-arm-tests-no-ble \
--target tizen-arm-tests-no-ble-no-thread \
build
"
9 changes: 5 additions & 4 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,11 @@ def BuildTizenTarget():
TargetPart('tests', app=TizenApp.TESTS),
])

target.AppendModifier(name="no-ble", enable_ble=False)
target.AppendModifier(name="no-wifi", enable_wifi=False)
target.AppendModifier(name="asan", use_asan=True)
target.AppendModifier(name="ubsan", use_ubsan=True)
target.AppendModifier("no-ble", enable_ble=False)
target.AppendModifier("no-thread", enable_thread=False)
target.AppendModifier("no-wifi", enable_wifi=False)
target.AppendModifier("asan", use_asan=True)
target.AppendModifier("ubsan", use_ubsan=True)

return target

Expand Down
3 changes: 3 additions & 0 deletions scripts/build/builders/tizen.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def __init__(self,
app: TizenApp = TizenApp.LIGHT,
board: TizenBoard = TizenBoard.ARM,
enable_ble: bool = True,
enable_thread: bool = True,
enable_wifi: bool = True,
use_asan: bool = False,
use_tsan: bool = False,
Expand All @@ -114,6 +115,8 @@ def __init__(self,

if not enable_ble:
self.extra_gn_options.append('chip_config_network_layer_ble=false')
if not enable_thread:
self.extra_gn_options.append('chip_enable_openthread=false')
if not enable_wifi:
self.extra_gn_options.append('chip_enable_wifi=false')
if use_asan:
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 @@ -18,6 +18,6 @@ mw320-all-clusters-app
nrf-{nrf5340dk,nrf52840dk,nrf52840dongle}-{all-clusters,all-clusters-minimal,lock,light,light-switch,shell,pump,pump-controller,window-covering}[-rpc]
nrf-native-posix-64-tests
qpg-qpg6105-{lock,light,shell,persistent-storage}
tizen-arm-{all-clusters,all-clusters-minimal,chip-tool,light,tests}[-no-ble][-no-wifi][-asan][-ubsan]
tizen-arm-{all-clusters,all-clusters-minimal,chip-tool,light,tests}[-no-ble][-no-thread][-no-wifi][-asan][-ubsan]
telink-tlsr9518adk80d-{all-clusters,all-clusters-minimal,bridge,contact-sensor,light,light-switch,lock,ota-requestor,pump,pump-controller,temperature-measurement,thermostat,window-covering}[-rpc][-factory-data]
openiotsdk-{shell,lock}

0 comments on commit b8368a1

Please sign in to comment.