Skip to content

Commit

Permalink
process: Path lookup in "rom" partition for TizenRT (#1723)
Browse files Browse the repository at this point in the history
There is no sdcard on TizenRT's reference hardware (ARTIK05x),
while TizenRT "iotjs" configuration is enabling a /rom partition.

Bug: #1723
IoT.js-DCO-1.0-Signed-off-by: Philippe Coval philippe.coval@osg.samsung.com
  • Loading branch information
rzr authored and yichoi committed Aug 22, 2018
1 parent 9acecf8 commit 354f28d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/iotjs_module_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,10 @@ static void SetProcessEnv(jerry_value_t process) {

iotjspath = getenv(IOTJS_MAGIC_STRING_IOTJS_PATH_U);
if (iotjspath == NULL) {
#if defined(__NUTTX__) || defined(__TIZENRT__)
#if defined(__NUTTX__)
iotjspath = "/mnt/sdcard";
#elif defined(__TIZENRT__)
iotjspath = "/rom";
#else
iotjspath = "";
#endif
Expand Down

0 comments on commit 354f28d

Please sign in to comment.