Skip to content

Commit a100fd8

Browse files
authored
Merge pull request #28 from tmobile/tmo-Add-slot-variable
Add slot variable
2 parents 00e1b69 + 6a401c3 commit a100fd8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

samples/tmo_shell/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ else()
124124
add_compile_definitions(VERSION_TMO_RTOS_TAG="${TMO_RTOS_TAG}")
125125
endif()
126126

127+
if(DEFINED ENV{SLOT})
128+
add_compile_definitions(BOOT_SLOT="$ENV{SLOT}")
129+
endif()
130+
127131
# tmo-sdk: current version tag in tmo-sdk
128132
if(DEFINED ENV{TMO_SDK_TAG})
129133
add_compile_definitions(VERSION_TMO_SDK_TAG="$ENV{TMO_SDK_TAG}")

samples/tmo_shell/src/tmo_shell.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,4 +2320,8 @@ void tmo_shell_main (void)
23202320
#ifdef CONFIG_WIFI
23212321
tmo_wifi_connect();
23222322
#endif
2323+
2324+
#ifdef BOOT_SLOT
2325+
printf("BOOT_SLOT: %s\n", BOOT_SLOT);
2326+
#endif
23232327
}

0 commit comments

Comments
 (0)