int tizen_base_port = 0;
int _emulator_condition = 0; //TODO:
-
+char tizen_target_path[MAXLEN] = {0, };
int get_emulator_condition(void)
{
return _emulator_condition;
path[j++] = qemu_argv[i];
}
path[j] = '\0';
-
- write_portfile(path);
+ strcpy(tizen_target_path, path);
}
void get_tizen_port(char* option)
path[j++] = option[i];
}
path[j] = '\0';
-
- tizen_base_port = strtol(path, &ptr, 10);
+ tizen_base_port = strtol(path, &ptr, 0);
INFO( "tizen_base_port: %d\n", tizen_base_port);
}
}
if((option = strstr(qemu_argv[i], SDB_PORT_PREFIX)) != NULL) {
get_tizen_port(option);
+ write_portfile(tizen_target_path);
}
}
exit(1);
}
- if( tizen_base_port != port ){
- ERR( "sdb port is miss match. Aborting (tizen_base_port=%d, port=%d)\n", tizen_base_port, port);
- exit(1);
- }
+// if( tizen_base_port != port ){
+// ERR( "sdb port is miss match. Aborting (tizen_base_port=%d, port=%d)\n", tizen_base_port, port);
+// exit(1);
+// }
/* Save base port. */
tizen_base_port = port;