File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ usage: ./build DEVICE1 DEVICE2 ... ACTION1 ACTION2 ...
2727 uart open uhk shell
2828 switchMcux switch to UHK60 build environment
2929 switchZephyr switch to UHK80 build environment
30+ status print current branch and west workspace (zephyr/mcux)
3031
3132 Optionally run with "--dev-id 123" to select device for flashing.
3233
@@ -82,7 +83,7 @@ function processArguments() {
8283 TARGET_TMUX_SESSION=$BUILD_SESSION_NAME
8384 shift
8485 ;;
85- switchMcux|switchZephyr)
86+ switchMcux|switchZephyr|status )
8687 SINGLEPLEXED_ACTIONS=" $SINGLEPLEXED_ACTIONS $1 "
8788 shift
8889 ;;
@@ -385,6 +386,20 @@ function performAction() {
385386 west config --local build.cmake-args -- " -Wno-dev"
386387 upgradeEnv
387388 ;;
389+ status)
390+ echo " branch: ` git rev-parse --abbrev-ref HEAD` "
391+ case ` west config manifest.file` in
392+ west_nrfsdk.yml)
393+ echo " workspace: zephyr"
394+ ;;
395+ west_mcuxsdk.yml)
396+ echo " workspace: mcux"
397+ ;;
398+ * )
399+ echo " workspace: unknown (` west config manifest.file` )"
400+ ;;
401+ esac
402+ ;;
388403 switchMcux)
389404 west config manifest.file west_mcuxsdk.yml
390405 upgradeEnv
You can’t perform that action at this time.
0 commit comments