loadTemplate();
}
+ public void settingCPU() {
+ if (cpu != null || path == null ) {
+ return;
+ }
+
+ String arch = FilePathResources.getFileExtention(path);
+ cpu = Architecture.getType(arch);
+ if (cpu == null) {
+ cpu = Architecture.x86;
+ }
+ }
+
@Override
public String toString() {
return information;
import org.tizen.emulator.manager.EmulatorManager;
import org.tizen.emulator.manager.resources.FilePathResources;
import org.tizen.emulator.manager.vms.VMProperty;
+import org.tizen.emulator.manager.vms.VMProperty.Architecture;
import org.tizen.emulator.manager.vms.helper.VMLauncherException;
public class CommonOption extends Option {
+ (property.getPropertyValue().baseImage.getProfileExtension().isEmpty()
? "" : "-"+ property.getPropertyValue().baseImage.getProfileExtension()));
- config.addVariable(OPTION_KEY.VAR_IMAGE_ARCH, property.getArchInternal().toString());
+ Architecture arch = property.getArchInternal();
+ if (arch == null) {
+ arch = Architecture.x86;
+ }
+ config.addVariable(OPTION_KEY.VAR_IMAGE_ARCH, arch.toString());
// kernel log
config.addKernelOption("console", "ttyS0"); //$NON-NLS-1$ //$NON-NLS-2$