import java.util.logging.Level;
import org.tizen.emulator.manager.logging.EMLogger;
+import org.tizen.emulator.manager.plugin.PluginStringResources;
import org.tizen.emulator.manager.resources.FilePathResources;
import org.tizen.emulator.manager.resources.StringResources;
import org.tizen.emulator.manager.template.ITemplate;
protected String imageName;
protected String version;
protected String profile;
+ protected String extension;
protected String type;
protected Architecture cpu;
protected SKIN_SHAPE skinShape;
return binaryVersion;
}
+ public String getProfileExtension() {
+ return extension;
+ }
+
public List<IOption> getOptionList() {
if (optionList == null) {
optionList = itemTemplate.makeOptionList(platform.getPlugin());
imageName = prop.getProperty(StringResources.IMAGE_NAME, ""); //$NON-NLS-1$
version = prop.getProperty(StringResources.IMAGE_VERSION, "2.4"); //$NON-NLS-1$
profile = prop.getProperty(StringResources.PRODUCT_PROFILE, PlatformStringResources.MOBILE_PROFILE).toLowerCase();
+ extension = prop.getProperty(StringResources.PROFILE_EXTENSION, "");
type = prop.getProperty(StringResources.IMAGE_TYPE, "default"); //$NON-NLS-1$
String cpuValue = prop.getProperty(StringResources.TARGET_CPU, "i386"); //$NON-NLS-1$
cpu = Architecture.getType(cpuValue);
cpu = findCpuTypeFromPath(); //$NON-NLS-1$
skinShape = SKIN_SHAPE.NONE; // TODO
binaryVersion = ""; //$NON-NLS-1$
+ extension = platform.isChildPlatform()
+ ? platform.getPlugin().getAttribute(PluginStringResources.Extension)
+ : "";
}
private Architecture findCpuTypeFromPath() {
// Add variables
config.addVariableWithSpace(OPTION_KEY.VAR_VMS_PATH, FilePathResources.getTizenVmsPath());
- config.addVariable(OPTION_KEY.VAR_PROFILE, property.getPropertyValue().baseImage.getProfile());
+ config.addVariable(OPTION_KEY.VAR_PROFILE,
+ property.getPropertyValue().baseImage.getProfile()
+ + (property.getPropertyValue().baseImage.getProfileExtension().isEmpty()
+ ? "" : "-"+ property.getPropertyValue().baseImage.getProfileExtension()));
// kernel log
config.addKernelOption("console", "ttyS0"); //$NON-NLS-1$ //$NON-NLS-2$