diff --git a/.github/workflows/examples-telink.yaml b/.github/workflows/examples-telink.yaml index f3e5cfb59e2d88..425b19aad7a628 100644 --- a/.github/workflows/examples-telink.yaml +++ b/.github/workflows/examples-telink.yaml @@ -54,13 +54,13 @@ jobs: with: gh-context: ${{ toJson(github) }} - - name: Build example Telink (B92) Air Quality Sensor App + - name: Build example Telink (B92 retention) Air Quality Sensor App run: | ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py --target 'telink-tlsr9528a-air-quality-sensor' build" + "./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-air-quality-sensor' build" .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ - telink tlsr9528a air-quality-sensor-app \ - out/telink-tlsr9528a-air-quality-sensor/zephyr/zephyr.elf \ + telink tlsr9528a_retention air-quality-sensor-app \ + out/telink-tlsr9528a_retention-air-quality-sensor/zephyr/zephyr.elf \ /tmp/bloat_reports/ - name: clean out build output @@ -102,13 +102,13 @@ jobs: - name: clean out build output run: rm -rf ./out - - name: Build example Telink (B92) Contact Sensor App + - name: Build example Telink (B92 retention) Contact Sensor App run: | ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py --target 'telink-tlsr9528a-contact-sensor' build" + "./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-contact-sensor' build" .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ - telink tlsr9528a contact-sensor-app \ - out/telink-tlsr9528a-contact-sensor/zephyr/zephyr.elf \ + telink tlsr9528a_retention contact-sensor-app \ + out/telink-tlsr9528a_retention-contact-sensor/zephyr/zephyr.elf \ /tmp/bloat_reports/ - name: clean out build output @@ -148,13 +148,13 @@ jobs: - name: clean out build output run: rm -rf ./out - - name: Build example Telink (B92) Lock App with DFU + - name: Build example Telink (B92 retention) Lock App with DFU run: | ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py --target 'telink-tlsr9528a-lock-dfu' build" + "./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-lock-dfu' build" .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ - telink tlsr9528a lock-app-dfu \ - out/telink-tlsr9528a-lock-dfu/zephyr/zephyr.elf \ + telink tlsr9528a_retention lock-app-dfu \ + out/telink-tlsr9528a_retention-lock-dfu/zephyr/zephyr.elf \ /tmp/bloat_reports/ - name: clean out build output @@ -220,25 +220,25 @@ jobs: - name: clean out build output run: rm -rf ./out - - name: Build example Telink (B92) Smoke CO Alarm App + - name: Build example Telink (B92 retention) Smoke CO Alarm App run: | ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py --target 'telink-tlsr9528a-smoke-co-alarm' build" + "./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-smoke-co-alarm' build" .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ - telink tlsr9528a smoke_co_alarm-app \ - out/telink-tlsr9528a-smoke-co-alarm/zephyr/zephyr.elf \ + telink tlsr9528a_retention smoke_co_alarm-app \ + out/telink-tlsr9528a_retention-smoke-co-alarm/zephyr/zephyr.elf \ /tmp/bloat_reports/ - name: clean out build output run: rm -rf ./out - - name: Build example Telink (B92) Temperature Measurement App + - name: Build example Telink (B92 retention) Temperature Measurement App run: | ./scripts/run_in_build_env.sh \ - "./scripts/build/build_examples.py --target 'telink-tlsr9528a-temperature-measurement' build" + "./scripts/build/build_examples.py --target 'telink-tlsr9528a_retention-temperature-measurement' build" .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ - telink tlsr9528a temperature-measurement-app \ - out/telink-tlsr9528a-temperature-measurement/zephyr/zephyr.elf \ + telink tlsr9528a_retention temperature-measurement-app \ + out/telink-tlsr9528a_retention-temperature-measurement/zephyr/zephyr.elf \ /tmp/bloat_reports/ - name: clean out build output diff --git a/integrations/cloudbuild/build-all.yaml b/integrations/cloudbuild/build-all.yaml index 808c882ef7ac1f..6ce708a6d2d125 100644 --- a/integrations/cloudbuild/build-all.yaml +++ b/integrations/cloudbuild/build-all.yaml @@ -164,6 +164,7 @@ steps: --target qpg-qpg6105-shell --target telink-tlsr9518adk80d-light --target telink-tlsr9528a-light + --target telink-tlsr9528a_retention-light-switch --target tizen-arm-light build --create-archives /workspace/artifacts/ diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 21ad50d06c4d8d..4ba779ec5e017a 100755 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -697,6 +697,7 @@ def BuildTelinkTarget(): target.AppendFixedTargets([ TargetPart('tlsr9518adk80d', board=TelinkBoard.TLSR9518ADK80D), TargetPart('tlsr9528a', board=TelinkBoard.TLSR9528A), + TargetPart('tlsr9528a_retention', board=TelinkBoard.TLSR9528A_RETENTION), ]) target.AppendFixedTargets([ diff --git a/scripts/build/builders/telink.py b/scripts/build/builders/telink.py index 0aa6ac68940eec..1dc75cfacc9c42 100644 --- a/scripts/build/builders/telink.py +++ b/scripts/build/builders/telink.py @@ -119,12 +119,15 @@ def AppNamePrefix(self): class TelinkBoard(Enum): TLSR9518ADK80D = auto() TLSR9528A = auto() + TLSR9528A_RETENTION = auto() def GnArgName(self): if self == TelinkBoard.TLSR9518ADK80D: return 'tlsr9518adk80d' elif self == TelinkBoard.TLSR9528A: return 'tlsr9528a' + elif self == TelinkBoard.TLSR9528A_RETENTION: + return 'tlsr9528a_retention' else: raise Exception('Unknown board type: %r' % self) diff --git a/scripts/build/testdata/all_targets_linux_x64.txt b/scripts/build/testdata/all_targets_linux_x64.txt index b58a05a1d9d651..4eb3fc59d5804c 100644 --- a/scripts/build/testdata/all_targets_linux_x64.txt +++ b/scripts/build/testdata/all_targets_linux_x64.txt @@ -22,5 +22,5 @@ nrf-native-posix-64-tests qpg-qpg6105-{lock,light,shell,persistent-storage} stm32-stm32wb5mm-dk-light tizen-arm-{all-clusters,all-clusters-minimal,chip-tool,light,tests}[-no-ble][-no-thread][-no-wifi][-asan][-ubsan] -telink-{tlsr9518adk80d,tlsr9528a}-{air-quality-sensor,all-clusters,all-clusters-minimal,bridge,contact-sensor,light,light-switch,lock,ota-requestor,pump,pump-controller,resource-monitoring,shell,smoke-co-alarm,temperature-measurement,thermostat,window-covering}[-ota][-dfu][-shell][-rpc][-factory-data][-4mb] +telink-{tlsr9518adk80d,tlsr9528a,tlsr9528a_retention}-{air-quality-sensor,all-clusters,all-clusters-minimal,bridge,contact-sensor,light,light-switch,lock,ota-requestor,pump,pump-controller,resource-monitoring,shell,smoke-co-alarm,temperature-measurement,thermostat,window-covering}[-ota][-dfu][-shell][-rpc][-factory-data][-4mb] openiotsdk-{shell,lock}[-mbedtls][-psa]