[yocto] [PATCH 0/8][eclipse-poky] Enable setting yocto settings in the project properties dialog

2012-12-04 Thread mail
From: Timo Mueller timo.muel...@bmw-carit.de

Hi,

changing the yocto settings of a project is currently achieved through
a separate dialog. This dialog can be opened via the eclipse menu bar
(project - change yocto project settings). Typically all project
related settings in eclipse are located in the project properties
dialog.

This patch series adds yocto settings to the project properties
dialog. It also removes the separate dialog. Instead the yocto section
in the project properties is opened if change yocto project settings
is selected from the menu bar.

Best regards,
 Atanas and Timo

Atanas Gegov (4):
  plugins/sdk.ide: Allow using a YoctoUIElement to set the input of a
yocto settings widget
  plugins/sdk.ide: Create a default YoctoUIElement from the preference
store
  plugins/sdk.ide: Use new setCurrentInput method to set defaults
  plugins/sdk.ide: Remove fControl array that is no longer needed

Timo Mueller (4):
  plugins/sdk.ide: Added empty yocto preference page to project
properties
  plugins/sdk.ide: Move modification of yocto project settings to utils
class
  plugins/sdk.ide: Show yocto ui setting widget in project property
page
  plugins/sdk.ide: Open project properties instead of standalone yocto
settings dialog

 .../OSGI-INF/l10n/bundle.properties|1 +
 plugins/org.yocto.sdk.ide/plugin.xml   |   14 +++
 .../src/org/yocto/sdk/ide/YoctoSDKUtils.java   |   67 
 .../src/org/yocto/sdk/ide/YoctoUISetting.java  |   54 +++---
 .../yocto/sdk/ide/actions/ReconfigYoctoAction.java |   64 ++-
 .../yocto/sdk/ide/actions/SDKLocationDialog.java   |   89 
 .../ide/preferences/YoctoSDKPreferencePage.java|   51 +-
 .../preferences/YoctoSDKProjectPropertyPage.java   |  111 
 8 files changed, 247 insertions(+), 204 deletions(-)
 delete mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/SDKLocationDialog.java
 create mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java

-- 
1.7.7.6

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 3/8] plugins/sdk.ide: Use new setCurrentInput method to set defaults

2012-12-04 Thread mail
From: Atanas Gegov atanas.ge...@bmw-carit.de

Removes the error prone method of using the fControls array and uses
the new YoctoUIElement interface.

Improved method of setting default preferences (globally)
---
 .../ide/preferences/YoctoSDKPreferencePage.java|   51 +--
 1 files changed, 3 insertions(+), 48 deletions(-)

diff --git 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKPreferencePage.java
 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKPreferencePage.java
index b75bdc1..d1c1a72 100644
--- 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKPreferencePage.java
+++ 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKPreferencePage.java
@@ -89,58 +89,13 @@ public class YoctoSDKPreferencePage extends PreferencePage 
implements IWorkbench
return false;
}   
}
-   
+
/*
 * @see PreferencePage#performDefaults()
 */
protected void performDefaults() {
-   IPreferenceStore store= getPreferenceStore();
-   ArrayListControl arrControls =  
this.yoctoUISetting.getfControls();
-   
-   for (int i = 0; i  arrControls.size(); i++)
-   {
-   Control control = arrControls.get(i);
-   String[] controlData = (String[])control.getData();
-   String sKey = controlData[0];
-   if (control instanceof Button)
-   {
-   sKey = sKey.substring(0, sKey.lastIndexOf(_));
-   }
-   String sValue = store.getDefaultString(sKey);
-   if (control instanceof Button)
-   {
-   if (sValue.equalsIgnoreCase(true))
-   {
-   if (controlData[0].endsWith(_1)) 
//the 1st radio button of the group
-   
((Button)control).setSelection(true);
-   else
-   
((Button)control).setSelection(false);//the 2nd radio button of the group
-   }
-   else
-   {
-   if (controlData[0].endsWith(_1)) 
//the 1st radio button of the group
-   
((Button)control).setSelection(false);
-   else
-   
((Button)control).setSelection(true);//the 2nd radio button of the group
-   }
-   }
-   else if (control instanceof Text)
-   {
-   ((Text)control).setText(sValue);
-   }
-   else if (control instanceof Combo)
-   {
-   if (!sValue.isEmpty())
-   
((Combo)control).select(Integer.valueOf(sValue).intValue());
-   }
-   }
-
-   try {
-   
yoctoUISetting.validateInput(SDKCheckRequestFrom.Preferences, false);
-   } catch (YoctoGeneralException e) {
-   System.out.println(Have you ever set Yocto Project 
Reference before?);
-   System.out.println(e.getMessage());
-   }
+   YoctoUIElement defaultElement = 
YoctoSDKUtils.getDefaultElemFromStore();
+   yoctoUISetting.setCurrentInput(defaultElement);
super.performDefaults();
}
 
-- 
1.7.7.6

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 1/8] plugins/sdk.ide: Allow using a YoctoUIElement to set the input of a yocto settings widget

2012-12-04 Thread mail
From: Atanas Gegov atanas.ge...@bmw-carit.de

Currently a YoctoUIElement is used to create a YoctoUISetting
widget. It is also possible to retrieve a YoctoUIElement containing
the current input of the widget. This patch adds the capability to
also set the input of the widget using a YoctoUIElement. Instead of
using the fControl array clients can now use this method to set the
input of the widget.
---
 .../src/org/yocto/sdk/ide/YoctoUISetting.java  |   40 
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoUISetting.java 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoUISetting.java
index b4625f6..53af8f0 100644
--- a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoUISetting.java
+++ b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoUISetting.java
@@ -307,6 +307,46 @@ public class YoctoUISetting {
return elem;
}
 
+   public void setCurrentInput(YoctoUIElement elem){
+   btnSDKRoot.setSelection(false);
+   btnPokyRoot.setSelection(false);
+   
if(elem.getEnumPokyMode().equals(YoctoUIElement.PokyMode.POKY_SDK_MODE)){
+   btnSDKRoot.setSelection(true);
+   }
+   else 
if(elem.getEnumPokyMode().equals(YoctoUIElement.PokyMode.POKY_TREE_MODE)){
+   btnPokyRoot.setSelection(true);
+   }
+
+   btnQemu.setSelection(false);
+   btnDevice.setSelection(false);
+   
if(elem.getEnumDeviceMode().equals(YoctoUIElement.DeviceMode.QEMU_MODE)){
+   btnQemu.setSelection(true);
+   }
+   else 
if(elem.getEnumDeviceMode().equals(YoctoUIElement.DeviceMode.DEVICE_MODE)){
+   btnDevice.setSelection(true);
+   }
+
+   textRootLoc.setText(elem.getStrToolChainRoot());
+   targetArchCombo.select(elem.getIntTargetIndex());
+   if(elem.getStrTargetsArray() == null){
+   targetArchCombo.setItems(new String[]{});
+   }
+   else {
+   targetArchCombo.setItems(elem.getStrTargetsArray());
+   }
+   targetArchCombo.setText(elem.getStrTarget());
+   textKernelLoc.setText(elem.getStrQemuKernelLoc());
+   textQemuOption.setText(elem.getStrQemuOption());
+   textSysrootLoc.setText(elem.getStrSysrootLoc());
+
+   try {
+   validateInput(SDKCheckRequestFrom.Preferences, false);
+   } catch (YoctoGeneralException e) {
+   System.out.println(Have you ever set Yocto Project 
Reference before?);
+   System.out.println(e.getMessage());
+   }
+   }
+
public boolean validateInput(SDKCheckRequestFrom from, boolean bPrompt) 
throws YoctoGeneralException {
YoctoUIElement elem = getCurrentInput();
boolean pass = true;
-- 
1.7.7.6

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 7/8] plugins/sdk.ide: Show yocto ui setting widget in project property page

2012-12-04 Thread mail
From: Timo Mueller timo.muel...@bmw-carit.de

The yocto property page in a project's properties dialog will now show
the yocto settings that are also used in the global yocto preferences
dialog.  On save the defined values will be stored to the project's
environment.
---
 .../preferences/YoctoSDKProjectPropertyPage.java   |   88 +++-
 1 files changed, 85 insertions(+), 3 deletions(-)

diff --git 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
index 265c8dc..92d476a 100644
--- 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
+++ 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
@@ -1,5 +1,6 @@
 
/***
  * Copyright (c) 2012 BMW Car IT GmbH.
+ * Copyright (c) 2010 Intel.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -7,23 +8,104 @@
  *
  * Contributors:
  * BMW Car IT GmbH - initial implementation
+ * Intel - initial API implementation (copied from YoctoSDKPreferencePage)
  
***/
 package org.yocto.sdk.ide.preferences;
 
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.swt.SWT;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.ui.IWorkbenchPropertyPage;
 import org.eclipse.ui.dialogs.PropertyPage;
+import org.yocto.sdk.ide.YoctoGeneralException;
+import org.yocto.sdk.ide.YoctoSDKUtils;
+import org.yocto.sdk.ide.YoctoSDKUtils.SDKCheckRequestFrom;
+import org.yocto.sdk.ide.YoctoUIElement;
+import org.yocto.sdk.ide.YoctoUISetting;
 
 public class YoctoSDKProjectPropertyPage extends PropertyPage implements
IWorkbenchPropertyPage {
 
-   public YoctoSDKProjectPropertyPage() {
-   }
+   private YoctoUISetting yoctoUISetting;
+   private IProject project = null;
 
@Override
protected Control createContents(Composite parent) {
-   return null;
+   YoctoUIElement uiElement = loadUIElement();
+   this.yoctoUISetting = new YoctoUISetting(uiElement);
+
+   initializeDialogUnits(parent);
+   final Composite result = new Composite(parent, SWT.NONE);
+
+   try {
+   yoctoUISetting.createComposite(result);
+   yoctoUISetting
+   
.validateInput(SDKCheckRequestFrom.Preferences, false);
+   Dialog.applyDialogFont(result);
+   return result;
+   } catch (YoctoGeneralException e) {
+   System.out.println(Have you ever set Yocto Project 
Reference before?);
+   System.out.println(e.getMessage());
+   return result;
+   }
+   }
+
+   private IProject getProject() {
+   if (project != null) {
+   return project;
+   }
+
+   IAdaptable adaptable = getElement();
+   if (adaptable == null) {
+   throw new IllegalStateException(Project can only be 
retrieved after properties page has been set up.);
+   }
+
+   project = (IProject) adaptable.getAdapter(IProject.class);
+   return project;
+   }
+
+   private YoctoUIElement loadUIElement() {
+   YoctoUIElement uiElement = 
YoctoSDKUtils.getElemFromProjectEnv(getProject());
+
+   if (uiElement.getStrToolChainRoot().isEmpty()
+   || uiElement.getStrTarget().isEmpty()) {
+   // No project environment has been set yet, use the 
Preference
+   // values
+   uiElement = YoctoSDKUtils.getElemFromStore();
+   }
+
+   return uiElement;
+   }
+
+   /*
+* @see PreferencePage#performDefaults()
+*/
+   @Override
+   protected void performDefaults() {
+   YoctoUIElement defaultElement = 
YoctoSDKUtils.getDefaultElemFromStore();
+   yoctoUISetting.setCurrentInput(defaultElement);
+   super.performDefaults();
}
 
+   /*
+* @see IPreferencePage#performOk()
+*/
+   @Override
+   public boolean performOk() {
+   try {
+   
yoctoUISetting.validateInput(SDKCheckRequestFrom.Preferences, true);
+
+   YoctoUIElement elem = yoctoUISetting.getCurrentInput();
+  

[yocto] [PATCH 6/8] plugins/sdk.ide: Move modification of yocto project settings to utils class

2012-12-04 Thread mail
From: Timo Mueller timo.muel...@bmw-carit.de

Saving yocto project settings is currently only used by the Change
Yocto Project Settings command. To allow other UI elements
(e.g. project property pages) to modify the yocto settings of a
project the functionality has been extraced to a separate method and
moved to the utils class.
---
 .../src/org/yocto/sdk/ide/YoctoSDKUtils.java   |   42 
 .../yocto/sdk/ide/actions/ReconfigYoctoAction.java |   41 ++-
 2 files changed, 46 insertions(+), 37 deletions(-)

diff --git a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoSDKUtils.java 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoSDKUtils.java
index 16035fd..7ea4262 100644
--- a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoSDKUtils.java
+++ b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/YoctoSDKUtils.java
@@ -22,10 +22,12 @@ import java.util.HashMap;
 import java.util.Iterator;
 
 import org.eclipse.cdt.core.CCorePlugin;
+import org.eclipse.cdt.core.ConsoleOutputStream;
 import org.eclipse.cdt.core.envvar.IContributedEnvironment;
 import org.eclipse.cdt.core.envvar.IEnvironmentVariable;
 import org.eclipse.cdt.core.envvar.IEnvironmentVariableManager;
 import org.eclipse.cdt.core.model.CoreModel;
+import org.eclipse.cdt.core.resources.IConsole;
 import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
 import org.eclipse.cdt.core.settings.model.ICProjectDescription;
 import org.eclipse.core.resources.IProject;
@@ -75,6 +77,7 @@ public class YoctoSDKUtils {
private static final String DEFAULT_SYSROOT_PREFIX = --sysroot=;
private static final String LIBTOOL_SYSROOT_PREFIX = 
--with-libtool-sysroot=;
private static final String SYSROOTS_DIR = sysroots;
+   private static final String CONSOLE_MESSAGE  = 
Menu.SDK.Console.Configure.Message;
 
public static SDKCheckResults checkYoctoSDK(YoctoUIElement elem) {  


@@ -418,6 +421,45 @@ public class YoctoSDKUtils {

elem.setEnumDeviceMode(YoctoUIElement.DeviceMode.DEVICE_MODE);
return elem;
}
+   
+   /* Save YoctoUIElement to project settings */
+   public static void saveElemToProjectEnv(IProject project, 
YoctoUIElement elem)
+   {
+   ConsoleOutputStream consoleOutStream = null;
+   
+   try {
+   YoctoSDKProjectNature.setEnvironmentVariables(project, 
elem);
+   
YoctoSDKProjectNature.configureAutotoolsOptions(project);
+   IConsole console = 
CCorePlugin.getDefault().getConsole(org.yocto.sdk.ide.YoctoConsole);
+   console.start(project);
+   consoleOutStream = console.getOutputStream();
+   String messages = 
YoctoSDKMessages.getString(CONSOLE_MESSAGE);
+   consoleOutStream.write(messages.getBytes());
+   }
+   catch (CoreException e)
+   {
+   System.out.println(e.getMessage());
+   }
+   catch (IOException e)
+   {
+   System.out.println(e.getMessage());
+   }
+   catch (YoctoGeneralException e)
+   {
+   System.out.println(e.getMessage());
+   }
+   finally {
+   if (consoleOutStream != null) {
+   try {
+   consoleOutStream.flush();
+   consoleOutStream.close();
+   }
+   catch (IOException e) {
+   // ignore
+   }
+   }
+   }
+   }
 
/* Load IDE wide POKY Preference settings into Preference Store */
public static void saveElemToStore(YoctoUIElement elem)
diff --git 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/ReconfigYoctoAction.java
 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/ReconfigYoctoAction.java
index f68b552..d7021be 100644
--- 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/ReconfigYoctoAction.java
+++ 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/actions/ReconfigYoctoAction.java
@@ -10,29 +10,19 @@
  
***/
 package org.yocto.sdk.ide.actions;
 
-import java.io.IOException;
-
-import org.eclipse.cdt.core.CCorePlugin;
-import org.eclipse.cdt.core.ConsoleOutputStream;
-import org.eclipse.cdt.core.resources.IConsole;
+import org.eclipse.cdt.internal.autotools.ui.actions.InvokeAction;
 import org.eclipse.core.resources.IContainer;
 import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
 import org.eclipse.jface.action.IAction;
-import 

[yocto] [PATCH 5/8] plugins/sdk.ide: Added empty yocto preference page to project properties

2012-12-04 Thread mail
From: Timo Mueller timo.muel...@bmw-carit.de

Adds an empty preference page to projects with the YoctoSDKNature. This
preference page is shown in the standard project properties dialog and
will later allow modifying the yocto settings of the project.
---
 .../OSGI-INF/l10n/bundle.properties|1 +
 plugins/org.yocto.sdk.ide/plugin.xml   |   14 +
 .../preferences/YoctoSDKProjectPropertyPage.java   |   29 
 3 files changed, 44 insertions(+), 0 deletions(-)
 create mode 100644 
plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java

diff --git a/plugins/org.yocto.sdk.ide/OSGI-INF/l10n/bundle.properties 
b/plugins/org.yocto.sdk.ide/OSGI-INF/l10n/bundle.properties
index d0bf9b7..a7172be 100644
--- a/plugins/org.yocto.sdk.ide/OSGI-INF/l10n/bundle.properties
+++ b/plugins/org.yocto.sdk.ide/OSGI-INF/l10n/bundle.properties
@@ -5,5 +5,6 @@ command.name = ReconfigureYoctoProject
 command.label.0 = Change Yocto Project Settings
 command.mnemonic = C
 projectType.name.0 = Yocto Project ADT Project
+projectProperties.label.0 = Yocto Project Settings
 Bundle-Vendor = yoctoproject.org
 Bundle-Name = Yocto Plugin IDE
diff --git a/plugins/org.yocto.sdk.ide/plugin.xml 
b/plugins/org.yocto.sdk.ide/plugin.xml
index c540b9b..6548ae2 100644
--- a/plugins/org.yocto.sdk.ide/plugin.xml
+++ b/plugins/org.yocto.sdk.ide/plugin.xml
@@ -180,5 +180,19 @@
 id=org.yocto.sdk.ide.YoctoConsole
   /CBuildConsole
/extension
+   extension
+ point=org.eclipse.ui.propertyPages
+  page
+adaptable=true
+class=org.yocto.sdk.ide.preferences.YoctoSDKProjectPropertyPage
+id=org.yocto.sdk.ide.page
+name=%projectProperties.label.0
+objectClass=org.eclipse.core.resources.IProject
+ filter
+   name=projectNature
+   value=org.yocto.sdk.ide.YoctoSDKNature
+ /filter
+  /page
+   /extension
 
 /plugin
diff --git 
a/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
new file mode 100644
index 000..265c8dc
--- /dev/null
+++ 
b/plugins/org.yocto.sdk.ide/src/org/yocto/sdk/ide/preferences/YoctoSDKProjectPropertyPage.java
@@ -0,0 +1,29 @@
+/***
+ * Copyright (c) 2012 BMW Car IT GmbH.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * BMW Car IT GmbH - initial implementation
+ 
***/
+package org.yocto.sdk.ide.preferences;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.IWorkbenchPropertyPage;
+import org.eclipse.ui.dialogs.PropertyPage;
+
+public class YoctoSDKProjectPropertyPage extends PropertyPage implements
+   IWorkbenchPropertyPage {
+
+   public YoctoSDKProjectPropertyPage() {
+   }
+
+   @Override
+   protected Control createContents(Composite parent) {
+   return null;
+   }
+
+}
-- 
1.7.7.6

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 2/2] Show progress bar for building new Recipe in Bitbake commander perspective

2012-12-04 Thread Ioana Grigoropol
Signed-off-by: Ioana Grigoropol ioanax.grigoro...@intel.com
---
 .../ui/wizards/NewBitBakeFileRecipeWizardPage.java |  119 +---
 1 file changed, 78 insertions(+), 41 deletions(-)

diff --git 
a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizardPage.java
 
b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizardPage.java
index e27619e..e9dc1f3 100644
--- 
a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizardPage.java
+++ 
b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizardPage.java
@@ -11,6 +11,7 @@
  
***/
 package org.yocto.bc.ui.wizards;
 
+import java.lang.reflect.InvocationTargetException;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.util.ArrayList;
@@ -27,6 +28,7 @@ import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.Path;
+import org.eclipse.jface.operation.IRunnableWithProgress;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.window.Window;
@@ -74,6 +76,8 @@ public class NewBitBakeFileRecipeWizardPage extends 
WizardPage {
private IHost connection;
 
private String tempFolderPath;
+   private String srcFileNameExt;
+   private String srcFileName;
 
public static final String TEMP_FOLDER_NAME = temp;
public static final String TAR_BZ2_EXT = .tar.bz2;
@@ -98,6 +102,12 @@ public class NewBitBakeFileRecipeWizardPage extends 
WizardPage {
private static final String md5Pattern = ^[0-9a-f]{32}$;
protected static final String sha256Pattern = ^[0-9a-f]{64}$;
 
+   private HashMapString, String mirrorTable;
+   private URI extractDir;
+   private YoctoCommand licenseChecksumCmd;
+   protected YoctoCommand md5YCmd;
+   protected YoctoCommand sha256YCmd;
+
public NewBitBakeFileRecipeWizardPage(ISelection selection, IHost 
connection) {
super(wizardPage);
setTitle(BitBake Recipe);
@@ -300,16 +310,17 @@ public class NewBitBakeFileRecipeWizardPage extends 
WizardPage {
IProgressMonitor monitor = new NullProgressMonitor();
URI srcURI = new URI(txtSrcURI.getText().trim());
String scheme = srcURI.getScheme();
-   String srcFileName = getSrcFileName(true);
+   this.srcFileNameExt = getSrcFileName(true);
+   this.srcFileName = getSrcFileName(false);
if ((scheme.equals(HTTP) || scheme.equals(FTP))
-(srcFileName.endsWith(TAR_GZ_EXT) || 
srcFileName.endsWith(TAR_BZ2_EXT))) {
+(srcFileNameExt.endsWith(TAR_GZ_EXT) 
|| srcFileNameExt.endsWith(TAR_BZ2_EXT))) {
try {
handleRemotePopulate(srcURI, monitor);
} catch (Exception e) {
e.printStackTrace();
}
} else {
-   String packageName = 
getSrcFileName(false).replace(-, _);
+   String packageName = srcFileName.replace(-, 
_);
fileText.setText(packageName + BB_RECIPE_EXT);
 
handleLocalPopulate(srcURI, monitor);
@@ -320,52 +331,78 @@ public class NewBitBakeFileRecipeWizardPage extends 
WizardPage {
}
 
private void handleLocalPopulate(URI srcURI, IProgressMonitor monitor) {
-   populateLicenseFileChecksum(srcURI, monitor);
+   populateLicenseFileChecksum(srcURI);
populateInheritance(srcURI, monitor);
}
 
-   private void handleRemotePopulate(URI srcURI, IProgressMonitor monitor) 
throws Exception {
+   private void handleRemotePopulate(final URI srcURI, IProgressMonitor 
monitor) throws Exception {
RemoteHelper.clearProcessBuffer(connection);
-
populateRecipeName(srcURI);
-   ListYoctoCommand commands = new ArrayListYoctoCommand();
 
-   String metaDirLocPath = metaDirLoc.getPath();
-   commands.add(new YoctoCommand(rm -rf  + TEMP_FOLDER_NAME, 
metaDirLocPath, ));
-   commands.add(new YoctoCommand( mkdir  + TEMP_FOLDER_NAME, 
metaDirLocPath, ));
-   updateTempFolderPath();
+   this.getContainer().run(true, true, new IRunnableWithProgress() 
{
 
+   @Override
+   public void run(IProgressMonitor monitor) throws 
InvocationTargetException,
+  

Re: [yocto] Howto use yocto meta-toolchain?

2012-12-04 Thread Marco

Il 03/12/2012 18:46, Zhang, Jessica ha scritto:

Hi Marco,

Can you filed a bug about this in bugzilla?  Also, you don't need to sudo to 
run the install script, if you choose the default location which is 
/opt/poky/1.3, it'll prompt you for the password, or you can specify a 
directory under your $HOME dir.  In your bug, can you provide some detail how 
you build the toolchain, e.g. the local.conf file changes, etc.?



Jessica,
thank you for answering.

Bugzilla classification is different from its documentation.
Where do you suggest to place my bug?
https://wiki.yoctoproject.org/wiki/Bugzilla_Configuration_and_Bug_Tracking


Actually if I don't sudo to run the install script it doesn't work:

$ tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.3.sh
Enter target directory for SDK (default: /opt/poky/1.3):
You are about to install the SDK to /opt/poky/1.3. Proceed[Y/n]?
Error: Unable to create target directory. Do you have permissions?

--
Marco
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] chris larson's cool bitbake-env utility

2012-12-04 Thread Robert P. J. Day
On Mon, 3 Dec 2012, Tim Bird wrote:

 On 11/30/2012 05:53 AM, Robert P. J. Day wrote:
  On Thu, 29 Nov 2012, Tim Bird wrote:
 
  I put a link to your page on my bitbake cheat sheet page at:
  http://elinux.org/Bitbake_Cheat_Sheet
 
as someone who has never bothered to play with any of the UIs and is
  thus asking from a position of total ignorance, i have a couple
  questions about the User interfaces section of that cheat sheet.
 
using stock oe-core, i followed your cheat sheet and tried this:
 
  $ bitbake
 
  and got:
 
  ERROR: Timeout while attempting to communicate with bitbake server
 
  so i need to start the server?  should that be mentioned there?

 Hmmm.  With bitbake from poky-1.2-denzil I get:
 Nothing to do.  Use 'bitbake world' to build everything, or run 'bitbake 
 --help' for usage information.

 I think that bitbake nothing is not really a valid invocation.

  never mind, just my incoherence ... when i was reading up on
bitbake -u hob, i also read that -u had a default value of knotty,
so i assumed, oh, then i should be able to run just bitbake (even
though i had no idea what that would represent).  just silliness on my
part.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Howto use yocto meta-toolchain?

2012-12-04 Thread Laurentiu Palcu


On 12/04/2012 01:22 PM, Marco wrote:
 Il 03/12/2012 18:46, Zhang, Jessica ha scritto:
 Hi Marco,

 Can you filed a bug about this in bugzilla?  Also, you don't need to sudo to 
 run the install script, if you choose the default location which is 
 /opt/poky/1.3, it'll prompt you for the password, or you can specify a 
 directory under your $HOME dir.  In your bug, can you provide some detail 
 how you build the toolchain, e.g. the local.conf file changes, etc.?

 
 Jessica,
 thank you for answering.
 
 Bugzilla classification is different from its documentation.
 Where do you suggest to place my bug?
 https://wiki.yoctoproject.org/wiki/Bugzilla_Configuration_and_Bug_Tracking
You can place it for ADT.

 
 
 Actually if I don't sudo to run the install script it doesn't work:
 
 $ tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.3.sh
 Enter target directory for SDK (default: /opt/poky/1.3):
 You are about to install the SDK to /opt/poky/1.3. Proceed[Y/n]?
 Error: Unable to create target directory. Do you have permissions?
 
The latest changes which are now in master, should fix that. You will be
asked to insert the password. However, there still is a patch pending in
order for this to work properly (I just saw the problem today and sent a
patch on oe-core mailing list).

However, going back to your initial problem. Is that a tarball you
downloaded or one you built yourself? If you're filling a bug, provide
as much details as possible in order to replicate your issue.

Thanks,
Laurentiu
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH] Validate project name and location for Bitbake command project

2012-12-04 Thread Ioana Grigoropol
- if the project location is empty default value will be used (e.g. /home/user/)
- project name must not contain whitespaces and/or invalid characters
- if we choose to clone a new repo but the destination directory already 
contains a .git directory, do not allow moving forward
- if we choose to validate an existing repository, make sure that the directory 
exists, and contains a .git directory as well as a oe-init-build-env script

Signed-off-by: Ioana Grigoropol ioanax.grigoro...@intel.com
---
 .../src/org/yocto/bc/bitbake/ShellSession.java |   94 +++
 .../org/yocto/bc/remote/utils/RemoteHelper.java|   69 
 .../remote/utils/YoctoHostShellProcessAdapter.java |   15 +-
 .../yocto/bc/ui/wizards/install/OptionsPage.java   |  178 ++--
 .../BBConfigurationInitializeOperation.java|6 +-
 .../newproject/CreateBBCProjectOperation.java  |   24 ++-
 6 files changed, 173 insertions(+), 213 deletions(-)

diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java 
b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
index 961472f..f143bed 100644
--- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
@@ -48,23 +48,23 @@ public class ShellSession {
public static final String LT = System.getProperty(line.separator);
public static final String exportCmd = export 
BB_ENV_EXTRAWHITE=\DISABLE_SANITY_CHECKS $BB_ENV_EXTRAWHITE\;
public static final String exportColumnsCmd = export COLUMNS=1000;
-   
+
public static String getFilePath(String file) throws IOException {
File f = new File(file);
-   
+
if (!f.exists() || f.isDirectory()) {
throw new IOException(Path passed is not a file:  + 
file);
}
-   
+
StringBuffer sb = new StringBuffer();
-   
+
String elems[] = file.split(//);
-   
+
for (int i = 0; i  elems.length - 1; ++i) {
sb.append(elems[i]);
sb.append(//);
}
-   
+
return sb.toString();
}
private Process process;
@@ -90,7 +90,7 @@ public class ShellSession {
 // shellPath = /bin/sh;
 // }
 // shellPath  = /bin/bash;
-   
+
initializeShell(new NullProgressMonitor());
}
 
@@ -104,13 +104,14 @@ public class ShellSession {
}
}
 
-   synchronized 
+   synchronized
public String execute(String command) throws IOException {
return execute(command, false);
}
 
-   synchronized 
+   synchronized
public String execute(String command, boolean hasErrors) throws 
IOException {
+
try {
IHost connection = 
RemoteHelper.getRemoteConnectionByName(projectInfo.getConnection().getName());
hasErrors = RemoteHelper.runCommandRemote(connection, 
new YoctoCommand(command, root.getAbsolutePath() + /build/, ));
@@ -119,57 +120,15 @@ public class ShellSession {
e.printStackTrace();
}
return null;
-// sendToProcessAndTerminate(command);
-//
-// if (process.getErrorStream().available()  0) {
-// byte[] msg = new 
byte[process.getErrorStream().available()];
-//
-// process.getErrorStream().read(msg, 0, msg.length);
-// out.write(new String(msg));
-// out.write(LT);
-// errorMessage = Error while executing:  + command + LT 
+ new String(msg);
-// }
-// 
-// BufferedReader br = new BufferedReader(new 
InputStreamReader(process
-// .getInputStream()));
-//
-// StringBuffer sb = new StringBuffer();
-// String line = null;
-
-// while (((line = br.readLine()) != null)  
!line.endsWith(TERMINATOR)  !interrupt) {
-// sb.append(line);
-// sb.append(LT);
-// out.write(line);
-// out.write(LT);
-// }
-// 
-// if (interrupt) {
-// process.destroy();
-// initializeShell(null);
-// interrupt = false;
-// } 
-// else if (line != null  retCode != null) {
-// try {
-// 
retCode[0]=Integer.parseInt(line.substring(0,line.lastIndexOf(TERMINATOR)));
-// }catch (NumberFormatException e) {
-// throw new IOException(Can NOT get return code 
+ command + LT + line);
-// }
-//  

[yocto] [PATCH 0/3] [eclipse-poky] Eclipse plugin on Windows - fixes for progress update on wizards input validation

2012-12-04 Thread Ioana Grigoropol
- Resending patches with proper header for eclipse-poky
- Include fixes for showing progress information for long time running tasks on 
wizards for Bitbake Commander project  Bitbake recipe
- Includes validation for the location  name of a new Bitbake Commander in a 
new repo clone or an existing one
 
Ioana Grigoropol (3):
  Show progress bar for New Bitbake Commander project
  Show progress bar for building new Recipe in Bitbake commander
perspective
  Validate project name and location for Bitbake command project

 .../src/org/yocto/bc/bitbake/ShellSession.java |  116 +++-
 .../yocto/bc/remote/utils/ProcessStreamBuffer.java |3 +-
 .../org/yocto/bc/remote/utils/RemoteHelper.java|  155 +--
 .../org/yocto/bc/remote/utils/RemoteMachine.java   |4 +-
 .../remote/utils/YoctoHostShellProcessAdapter.java |  136 +-
 .../bc/remote/utils/YoctoRunnableWithProgress.java |  106 
 .../bc/ui/wizards/NewBitBakeFileRecipeWizard.java  |2 +-
 .../ui/wizards/NewBitBakeFileRecipeWizardPage.java |  285 ++--
 .../yocto/bc/ui/wizards/install/InstallWizard.java |  113 ++--
 .../yocto/bc/ui/wizards/install/OptionsPage.java   |  178 ++--
 .../BBConfigurationInitializeOperation.java|6 +-
 .../newproject/CreateBBCProjectOperation.java  |   31 +--
 12 files changed, 551 insertions(+), 584 deletions(-)
 create mode 100644 
plugins/org.yocto.bc.ui/src/org/yocto/bc/remote/utils/YoctoRunnableWithProgress.java

-- 
1.7.9.5

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [PATCH 1/3] Show progress bar for New Bitbake Commander project

2012-12-04 Thread Ioana Grigoropol
- run new Bitbake project creation in a new thread, being cancelable and update 
the monitor from the event handler in a asynchronous way by invoking 
Display.asyncExec
- use a blocking way to wait(mutex) for the  event handler to finish reading 
command outputs - not only the event handler must be blocked, the one invoking 
the remote commands must block waiting for output, otherwise the new Project 
Wizard will not wait for the commands to finish running
- When searching for the desired output through the existing lines, we should 
not search for the prompt + previous command exactly, because the terminal 
shell used will use a wrapping value for the lines received and insert a 
whitespace character at each multiple of wrapping value
- usually, the wrapping value is  controlled by $COLUMNS shell variable 
- a quick fix setting this variable to a bigger value does not prove useful
- instead, wait for the line containing the prompt  the previous 
command having all existing  whitespaces removed
- the possibility that this line will be issued more than once is small.
- use YoctoHostShellAdapter to run long task showing progress in a Wizard page 
 parse task output using specialized Calculators

Signed-off-by: Ioana Grigoropol ioanax.grigoro...@intel.com
---
 .../src/org/yocto/bc/bitbake/ShellSession.java |   24 +--
 .../yocto/bc/remote/utils/ProcessStreamBuffer.java |3 +-
 .../org/yocto/bc/remote/utils/RemoteHelper.java|   92 +++-
 .../org/yocto/bc/remote/utils/RemoteMachine.java   |4 +-
 .../remote/utils/YoctoHostShellProcessAdapter.java |  137 ++--
 .../bc/remote/utils/YoctoRunnableWithProgress.java |  106 ++
 .../bc/ui/wizards/NewBitBakeFileRecipeWizard.java  |2 +-
 .../ui/wizards/NewBitBakeFileRecipeWizardPage.java |  222 +---
 .../yocto/bc/ui/wizards/install/InstallWizard.java |  113 +++---
 .../newproject/CreateBBCProjectOperation.java  |7 +-
 10 files changed, 340 insertions(+), 370 deletions(-)
 create mode 100644 
plugins/org.yocto.bc.ui/src/org/yocto/bc/remote/utils/YoctoRunnableWithProgress.java

diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java 
b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
index edff746..961472f 100644
--- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
@@ -47,6 +47,7 @@ public class ShellSession {
public static final String TERMINATOR = 
#234o987dsfkcqiuwey18837032843259d;
public static final String LT = System.getProperty(line.separator);
public static final String exportCmd = export 
BB_ENV_EXTRAWHITE=\DISABLE_SANITY_CHECKS $BB_ENV_EXTRAWHITE\;
+   public static final String exportColumnsCmd = export COLUMNS=1000;

public static String getFilePath(String file) throws IOException {
File f = new File(file);
@@ -96,8 +97,8 @@ public class ShellSession {
private void initializeShell(IProgressMonitor monitor) throws 
IOException {
try {
IHost connection = 
RemoteHelper.getRemoteConnectionByName(projectInfo.getConnection().getName());
-   RemoteHelper.runCommandRemote(connection, new 
YoctoCommand(source  + initCmd, root.getAbsolutePath(), ), monitor);
  
-   RemoteHelper.runCommandRemote(connection, new 
YoctoCommand(exportCmd, root.getAbsolutePath(), ), monitor);
+   RemoteHelper.runCommandRemote(connection, new 
YoctoCommand(source  + initCmd, root.getAbsolutePath(), ));
+   RemoteHelper.runCommandRemote(connection, new 
YoctoCommand(exportCmd, root.getAbsolutePath(), ));
} catch (Exception e) {
e.printStackTrace();
}
@@ -112,7 +113,7 @@ public class ShellSession {
public String execute(String command, boolean hasErrors) throws 
IOException {
try {
IHost connection = 
RemoteHelper.getRemoteConnectionByName(projectInfo.getConnection().getName());
-   hasErrors = RemoteHelper.runCommandRemote(connection, 
new YoctoCommand(command, root.getAbsolutePath() + /build/, ), new 
NullProgressMonitor());
+   hasErrors = RemoteHelper.runCommandRemote(connection, 
new YoctoCommand(command, root.getAbsolutePath() + /build/, ));
return 
RemoteHelper.getProcessBuffer(connection).getMergedOutputLines();
} catch (Exception e) {
e.printStackTrace();
@@ -241,20 +242,5 @@ synchronized
interrupt = true;
}

-   private class NullWriter extends Writer {
-
-   @Override
-   public void close() throws IOException {
-   }
-
-   @Override
-   public void 

[yocto] [PATCH 2/3] Show progress bar for building new Recipe in Bitbake commander perspective

2012-12-04 Thread Ioana Grigoropol
Signed-off-by: Ioana Grigoropol ioanax.grigoro...@intel.com
---
 .../ui/wizards/NewBitBakeFileRecipeWizardPage.java |  119 +---
 1 file changed, 78 insertions(+), 41 deletions(-)

diff --git 
a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizardPage.java
 
b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizardPage.java
index e27619e..e9dc1f3 100644
--- 
a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizardPage.java
+++ 
b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/wizards/NewBitBakeFileRecipeWizardPage.java
@@ -11,6 +11,7 @@
  
***/
 package org.yocto.bc.ui.wizards;
 
+import java.lang.reflect.InvocationTargetException;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.util.ArrayList;
@@ -27,6 +28,7 @@ import org.eclipse.core.resources.ResourcesPlugin;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.Path;
+import org.eclipse.jface.operation.IRunnableWithProgress;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.window.Window;
@@ -74,6 +76,8 @@ public class NewBitBakeFileRecipeWizardPage extends 
WizardPage {
private IHost connection;
 
private String tempFolderPath;
+   private String srcFileNameExt;
+   private String srcFileName;
 
public static final String TEMP_FOLDER_NAME = temp;
public static final String TAR_BZ2_EXT = .tar.bz2;
@@ -98,6 +102,12 @@ public class NewBitBakeFileRecipeWizardPage extends 
WizardPage {
private static final String md5Pattern = ^[0-9a-f]{32}$;
protected static final String sha256Pattern = ^[0-9a-f]{64}$;
 
+   private HashMapString, String mirrorTable;
+   private URI extractDir;
+   private YoctoCommand licenseChecksumCmd;
+   protected YoctoCommand md5YCmd;
+   protected YoctoCommand sha256YCmd;
+
public NewBitBakeFileRecipeWizardPage(ISelection selection, IHost 
connection) {
super(wizardPage);
setTitle(BitBake Recipe);
@@ -300,16 +310,17 @@ public class NewBitBakeFileRecipeWizardPage extends 
WizardPage {
IProgressMonitor monitor = new NullProgressMonitor();
URI srcURI = new URI(txtSrcURI.getText().trim());
String scheme = srcURI.getScheme();
-   String srcFileName = getSrcFileName(true);
+   this.srcFileNameExt = getSrcFileName(true);
+   this.srcFileName = getSrcFileName(false);
if ((scheme.equals(HTTP) || scheme.equals(FTP))
-(srcFileName.endsWith(TAR_GZ_EXT) || 
srcFileName.endsWith(TAR_BZ2_EXT))) {
+(srcFileNameExt.endsWith(TAR_GZ_EXT) 
|| srcFileNameExt.endsWith(TAR_BZ2_EXT))) {
try {
handleRemotePopulate(srcURI, monitor);
} catch (Exception e) {
e.printStackTrace();
}
} else {
-   String packageName = 
getSrcFileName(false).replace(-, _);
+   String packageName = srcFileName.replace(-, 
_);
fileText.setText(packageName + BB_RECIPE_EXT);
 
handleLocalPopulate(srcURI, monitor);
@@ -320,52 +331,78 @@ public class NewBitBakeFileRecipeWizardPage extends 
WizardPage {
}
 
private void handleLocalPopulate(URI srcURI, IProgressMonitor monitor) {
-   populateLicenseFileChecksum(srcURI, monitor);
+   populateLicenseFileChecksum(srcURI);
populateInheritance(srcURI, monitor);
}
 
-   private void handleRemotePopulate(URI srcURI, IProgressMonitor monitor) 
throws Exception {
+   private void handleRemotePopulate(final URI srcURI, IProgressMonitor 
monitor) throws Exception {
RemoteHelper.clearProcessBuffer(connection);
-
populateRecipeName(srcURI);
-   ListYoctoCommand commands = new ArrayListYoctoCommand();
 
-   String metaDirLocPath = metaDirLoc.getPath();
-   commands.add(new YoctoCommand(rm -rf  + TEMP_FOLDER_NAME, 
metaDirLocPath, ));
-   commands.add(new YoctoCommand( mkdir  + TEMP_FOLDER_NAME, 
metaDirLocPath, ));
-   updateTempFolderPath();
+   this.getContainer().run(true, true, new IRunnableWithProgress() 
{
 
+   @Override
+   public void run(IProgressMonitor monitor) throws 
InvocationTargetException,
+  

[yocto] [PATCH 3/3] Validate project name and location for Bitbake command project

2012-12-04 Thread Ioana Grigoropol
- if the project location is empty default value will be used (e.g. /home/user/)
- project name must not contain whitespaces and/or invalid characters
- if we choose to clone a new repo but the destination directory already 
contains a .git directory, do not allow moving forward
- if we choose to validate an existing repository, make sure that the directory 
exists, and contains a .git directory as well as a oe-init-build-env script

Signed-off-by: Ioana Grigoropol ioanax.grigoro...@intel.com
---
 .../src/org/yocto/bc/bitbake/ShellSession.java |   94 +++
 .../org/yocto/bc/remote/utils/RemoteHelper.java|   69 
 .../remote/utils/YoctoHostShellProcessAdapter.java |   15 +-
 .../yocto/bc/ui/wizards/install/OptionsPage.java   |  178 ++--
 .../BBConfigurationInitializeOperation.java|6 +-
 .../newproject/CreateBBCProjectOperation.java  |   24 ++-
 6 files changed, 173 insertions(+), 213 deletions(-)

diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java 
b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
index 961472f..f143bed 100644
--- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/bitbake/ShellSession.java
@@ -48,23 +48,23 @@ public class ShellSession {
public static final String LT = System.getProperty(line.separator);
public static final String exportCmd = export 
BB_ENV_EXTRAWHITE=\DISABLE_SANITY_CHECKS $BB_ENV_EXTRAWHITE\;
public static final String exportColumnsCmd = export COLUMNS=1000;
-   
+
public static String getFilePath(String file) throws IOException {
File f = new File(file);
-   
+
if (!f.exists() || f.isDirectory()) {
throw new IOException(Path passed is not a file:  + 
file);
}
-   
+
StringBuffer sb = new StringBuffer();
-   
+
String elems[] = file.split(//);
-   
+
for (int i = 0; i  elems.length - 1; ++i) {
sb.append(elems[i]);
sb.append(//);
}
-   
+
return sb.toString();
}
private Process process;
@@ -90,7 +90,7 @@ public class ShellSession {
 // shellPath = /bin/sh;
 // }
 // shellPath  = /bin/bash;
-   
+
initializeShell(new NullProgressMonitor());
}
 
@@ -104,13 +104,14 @@ public class ShellSession {
}
}
 
-   synchronized 
+   synchronized
public String execute(String command) throws IOException {
return execute(command, false);
}
 
-   synchronized 
+   synchronized
public String execute(String command, boolean hasErrors) throws 
IOException {
+
try {
IHost connection = 
RemoteHelper.getRemoteConnectionByName(projectInfo.getConnection().getName());
hasErrors = RemoteHelper.runCommandRemote(connection, 
new YoctoCommand(command, root.getAbsolutePath() + /build/, ));
@@ -119,57 +120,15 @@ public class ShellSession {
e.printStackTrace();
}
return null;
-// sendToProcessAndTerminate(command);
-//
-// if (process.getErrorStream().available()  0) {
-// byte[] msg = new 
byte[process.getErrorStream().available()];
-//
-// process.getErrorStream().read(msg, 0, msg.length);
-// out.write(new String(msg));
-// out.write(LT);
-// errorMessage = Error while executing:  + command + LT 
+ new String(msg);
-// }
-// 
-// BufferedReader br = new BufferedReader(new 
InputStreamReader(process
-// .getInputStream()));
-//
-// StringBuffer sb = new StringBuffer();
-// String line = null;
-
-// while (((line = br.readLine()) != null)  
!line.endsWith(TERMINATOR)  !interrupt) {
-// sb.append(line);
-// sb.append(LT);
-// out.write(line);
-// out.write(LT);
-// }
-// 
-// if (interrupt) {
-// process.destroy();
-// initializeShell(null);
-// interrupt = false;
-// } 
-// else if (line != null  retCode != null) {
-// try {
-// 
retCode[0]=Integer.parseInt(line.substring(0,line.lastIndexOf(TERMINATOR)));
-// }catch (NumberFormatException e) {
-// throw new IOException(Can NOT get return code 
+ command + LT + line);
-// }
-//  

[yocto] Packaging ROS for Yocto-Linux

2012-12-04 Thread Lukas Bulwahn
Hi all,

we are interested in setting up a computing platform for our development
using Yocto-Linux and the robotic operating system ROS
(http://www.ros.org/). We are currently at the very beginning of this
development: As a first step, we want to package ROS for our own needs, but
we are open to contribute this to the community if there are others that
need this as well.

Has someone in the community already packaged ROS for Yocto? Are there
others that also interested in a ROS package for Yocto? 

We are happy about any feedback.


Lukas Bulwahn 
BMW Car IT GmbH
Petuelring 116
D-80809 Muenchen
Germany
Mail: lukas.bulw...@oss.bmw-carit.de
Web: http://www.bmw-carit.de
-
BMW Car IT GmbH
Geschäftsführer: Harald Heinecke
Sitz und Registergericht: München HRB134810
-

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] ghostscript running error on powerpc

2012-12-04 Thread Jia Hongtao-B38951
Hi Kai,

I got some running errors using ghostscript built by yocto on powerpc.
Note that this log is for ghostscript 9.04 and the current version on yocto
is 9.05 which has the same issue as 9.04.

Here is the log:

root@p1022ds:/usr/tmp/lm90plots# ps2pdf temps.ps temps.pdf

*** Warning: GenericResourceDir doesn't point to a valid resource directory.
   the -sGenericResourceDir=... option can be used to set this.

Error: /invalidaccess in /findfont
Operand stack:
   Helvetica
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   
1861   1   3   %oparray_pop   --nostringval--   1845   1   3   %oparray_pop   
1739   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   
--nostringval--   --nostringval--   --nostringval--   2   %stopped_push   
--nostringval--   1820   1   4   %oparray_pop
Dictionary stack:
   --dict:1154/1684(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--   
--dict:182/256(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 16962
GPL Ghostscript 9.04: Unrecoverable error, exit code 1


I did some investigations on google but got nothing helpful.
So I wonder if you could help me to find out the reason?
I hope I'm not interrupting and looking forward to your message.

Thanks.


---
Best Regards,
Hongtao

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Question: How to install the mkfs tools from the e2fsprogs instead of the BusyBox tools.

2012-12-04 Thread Paul Eggleton
On Monday 12 November 2012 12:10:59 Elad Yosef wrote:
 I have created my own image based in existing one.
 
 
 IMAGE_INSTALL = task-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} u-boot
 
 #My additions to the File-System
 IMAGE_INSTALL += e2fsprogs iptables
 IMAGE_LINGUAS =  
 inherit core-image
 LICENSE = MIT
 IMAGE_ROOTFS_SIZE = 8192
 # remove not needed ipkg informations
 ROOTFS_POSTPROCESS_COMMAND += remove_packaging_data_files ; 
 IMAGE_FSTYPES ?= tar.gz ext2.gz.u-boot
 **
 
 After building the File system I see that the mksf.ext2 point to the
 BusyBox. I checked the build log file and saw the following:
 ***
 update-alternatives: Linking
 /localhome/QorIQ_SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tm
 p/work/p2041rdb-fsl-linux/crgn-image-minimal-1.0-r0/rootfs//sbin/mke2fs to
 ../bin/busybox
 update-alternatives: Linking
 /localhome/QorIQ_SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tm
 p/work/p2041rdb-fsl-linux/crgn-image-minimal-1.0-r0/rootfs//usr/bin/mkfifo
 to ../../bin/busybox
 update-alternatives: Linking
 /localhome/QorIQ_SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tm
 p/work/p2041rdb-fsl-linux/crgn-image-minimal-1.0-r0/rootfs//sbin/mkfs.ext2
 to ../bin/busybox
 update-alternatives: Linking
 /localhome/QorIQ_SDK/QorIQ-SDK-V1.2-20120614-yocto/build_p2041rdb_release/tm
 p/work/p2041rdb-fsl-linux/crgn-image-minimal-1.0-r0/rootfs//sbin/mkfs.minix
 to ../bin/busybox
 
 *
 
 What am I missing here?

Sorry for the late reply - the mkfs command is provided by util-linux and is 
in its own separate package, so I think you want to add the util-linux-mkfs 
package to IMAGE_INSTALL.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Using vendo kernel with Yocto

2012-12-04 Thread Paul Eggleton
On Friday 16 November 2012 18:25:59 you wrote:
 Hello, just a report
 
 As my vendor never will release patch to a recent kernel and our
 applications needs some recent fetures found in a recent kernel. I decided
 to make the patchs by myself.
 
 I missed one week reading datasheet, git log, studying the old
 implementation made by Mindspeed  and so on.
 
 Now the kernel 3.4.18 boot and runs in our board using yocto 1.3. Of course
 I have learned a lot of things.
 
 Maybe some adjusts will be need to do. However I am very happy to track
 Yocto project with Mindspeed hardware. This is going to speedup the release
 cicles and  tools of our products.

Great to hear! Please let us know if you have any other feedback or issues.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Howto use yocto meta-toolchain?

2012-12-04 Thread Marco

Il 04/12/2012 13:37, Laurentiu Palcu ha scritto:

script it doesn't work



https://bugzilla.yoctoproject.org/show_bug.cgi?id=3532


--
Marco
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Minutes: Yocto Project Technical Team Meeting - Tuesday, December 04, 2012 8:00 AM-9:00 AM (UTC-08:00) Pacific Time (US Canada).

2012-12-04 Thread Liu, Song
Attendees:
Amit, Ross, Eren, Beth, ChrisL, ScottR, JeffP, TomZ, Nitin, PaulE, ScottG, 
BruceA, CristianI, JessicaZ, Saul, RichardP, SeanH, MarkH, Ioana, Corneliu, 
MichaelH, AlexD, BjörnS, Ramana, Song. 
 
Minutes:
 
* Opens collection - 5 min (Song)
* Yocto 1.4 status - 20 min (Song/team)
  - 1.4 test plan: would like to ask everyone to review and comment: 
https://wiki.yoctoproject.org/wiki/Yocto_1.4_Overall_Test_Plan 
  - M2 planning: 
. 2 highs scheduled: zypper, running post install at rootfs gen time.
. 167 perfect days work scheduled.
  - Bug fixing: 25 bug fixed, 298 open, a little high. We need to pay more 
attention to bug fixing. Two bugs I would like to ask the team for help:
. Connman issue: 3227. Issue is not in connman 1.9. Will upgrade to 1.9.
. Beagle Board X issue: 3522
  - Master: Build Appliance failed (Beth is changing autobuilder to automate 
this, Beth has a fix), nightly-x86 (connman issue,3227), Freescale BSP issue, 
Matthew knows it.  meta-intel BSP failed.
  - QA: RC1 final report ETA,  later Today.
 
* SWAT team rotation: LaurentiuP - Ioana Grigoropol 
* Opens - 10 min 
  - Eren: Hello World documentation. Finished the oe part. 
http://hambedded.org/blog/2012/11/24/from-bitbake-hello-world-to-an-image/ 
  . Would like to feedback. After that integrate with Wiki or others.
  . ScottR: sent email to Eren. Fold part of this into quick start. Bitbake 
information will be good to be in the newly revised bitbake manual.  Will get 
this in Bill's hands. Suggest Eren to post specific technical questions on the 
mailing list. Hopefully Eren can get answers there. Afterwards, will work 
together to integrate this doc.
  . Eren: good plan. Will get answers to technical questions first, then 
work with Scott to integrate the doc.
  - ScottR: adding doc alert to comments in Bugzilla when filing a bug that 
effects documentation
  . If you are filing a bug or working on a bug you think might affect doc, 
it will be help if you add a comment (something like 'this will affect 
documentation')to alert ScottR and add ScottR in the CC list of the bug. We are 
trying to be more proactive on doc changes for this release. 
 
* Team Sharing - 20 min
  - AlexD: working on integrating Wayland, started building, making progress... 
Sent email to people working on Wayland. Paul can help if there is no response, 
these people are sitting right behind Paul.
  - Cristian: handling transition of HOB to be able to run on windows. One of 
1.4 features. Setting up new dev environment. Investigation making the jump and 
figure out what would be possible problems.  Bug #: 1972.
  - Andrei: working on package reporting system, finished the work. Submitted 
some patches, waiting for Saul's review. 
  - Ioana: working on eclipse plugin on windows. Submitted patches for issues, 
should be running fine now. Next step is using hob on windows.
  - Mark: SMART work. At a point that we are ready to submit the code to the 
community. Some bug fixes, will be the first batch. Integration will be second 
batch of patches. 
  - Bjorn: working on package testing. Would like some response to some issues 
already sent to the mailing list. RP suggested to do it in a different way, 
that needs to be discussed. (RP will respond). What we do with packages that 
don't have tests. Would like people to spend some time to think about it. RP: 
this is important, we can get these integrated, and then expand..
  - Ramana: posted about configuration tool. Would like to get more comments. 
Bruce commented, Mark and RP will reply. RP: this is important, encourage 
people to look at it. The more people the better.
. https://lists.yoctoproject.org/pipermail/yocto/2012-November/012867.html 
. https://lists.yoctoproject.org/pipermail/yocto/2012-November/012973.html 
  - MichaelH: bugzilal management, auto generation, patch review process, etc. 
patch work basically setup. Schedule a demo with some key people for one of the 
patch review tools ?. Continue some of these work this week and other things. 

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Yocto Project Technical Team Meeting

2012-12-04 Thread Liu, Song
BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Pacific Standard Time
BEGIN:STANDARD
DTSTART:16010101T02
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=11
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T02
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=2SU;BYMONTH=3
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ORGANIZER;CN=Liu, Song:MAILTO:song@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Anders Da
 rander':MAILTO:and...@chargestorm.se
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Barros Pen
 a, Belen:MAILTO:belen.barros.p...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Bodke, Kis
 hore K:MAILTO:kishore.k.bo...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Bruce Ash
 field':MAILTO:bruce.ashfi...@windriver.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Daniel Ca
 uchy':MAILTO:dcau...@mvista.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='deVries, 
 Alex':MAILTO:alex.devr...@windriver.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Dixon, Br
 ad':MAILTO:brad_di...@mentor.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Dmytriyenk
 o, Denys:MAILTO:de...@ti.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Erway, Tra
 cey M:MAILTO:tracey.m.er...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Flanagan, 
 Elizabeth:MAILTO:elizabeth.flana...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Hart, Darr
 en:MAILTO:darren.h...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Hatle, Ma
 rk':MAILTO:mark.ha...@windriver.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Jeremy Pu
 hlman':MAILTO:jpuhl...@gmail.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Kridner, J
 ason:MAILTO:j...@ti.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Lieu.Ta@w
 indriver.com':MAILTO:'lieu...@windriver.com'
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Lock, Josh
 ua:MAILTO:joshua.l...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='McCombe, 
 Kevin':MAILTO:kevin.mcco...@windriver.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Moeller, T
 horsten:MAILTO:thorsten.moel...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Sanjay Ra
 ina':MAILTO:sra...@mvista.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Osier-mixo
 n, Jeffrey:MAILTO:jeffrey.osier-mi...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Polk, Jef
 frey':MAILTO:jeff.p...@windriver.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Purdie, Ri
 chard:MAILTO:richard.pur...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Ranslam, 
 Rob':MAILTO:rob.rans...@windriver.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Saxena, Ra
 hul:MAILTO:rahul.sax...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Stewart, D
 avid C:MAILTO:david.c.stew...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Wold, Saul
 :MAILTO:saul.w...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Zanussi, T
 om:MAILTO:tom.zanu...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Zhang, Jes
 sica:MAILTO:jessica.zh...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Rifenbark,
  Scott M:MAILTO:scott.m.rifenb...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Hudson, S
 ean':MAILTO:sean_hud...@mentor.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Serban, La
 urentiu:MAILTO:laurentiu.ser...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Petrisor, 
 Ileana:MAILTO:ileana.petri...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Damian, Al
 exandru:MAILTO:alexandru.dam...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Burton, Ro
 ss:MAILTO:ross.bur...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Mueller, R
 obert:MAILTO:robert.muel...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Arce Moren
 o, Abraham:MAILTO:abraham.arce.mor...@intel.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Ravi Vomp
 olu':MAILTO:ravi.vomp...@mathworks.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN='Sadiq, Ir
 fan':MAILTO:irfan_sa...@mentor.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Santana Lo
 pez, Mario A:MAILTO:mario.a.santana.lo...@intel.com

Re: [yocto] [PATCH 0/3] [eclipse-poky] Eclipse plugin on Windows - fixes for progress update on wizards input validation

2012-12-04 Thread Zhang, Jessica
Hi Ioana,

There's issue as to syntax for YoctoHostShellProcessAdaptor since it's only 
supported by JDK version 1.7 and above.  Also, when I tried the plugin on 
Linux, it still failed for creating a project for an existing metadata 
directory.   With a not very clear error message  Directory /home/jzhang/poky 
contains a repository, please select validate repository which is what I did.  
It seems we are calling out the git repository for bitbake commander project, 
which I don't think there's the need. I think we should preserve the existing 
interface that only provide user the option to clone a new one if there's the 
need.  Otherwise, we should just validate the project repo behind the scene.  
And we shouldn't make the clone a new one as the default as the current 
implementation.

Thanks,
Jessica

-Original Message-
From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On 
Behalf Of Ioana Grigoropol
Sent: Tuesday, December 04, 2012 5:26 AM
To: yocto@yoctoproject.org
Subject: [yocto] [PATCH 0/3] [eclipse-poky] Eclipse plugin on Windows - fixes 
for progress update on wizards  input validation

- Resending patches with proper header for eclipse-poky
- Include fixes for showing progress information for long time running tasks on 
wizards for Bitbake Commander project  Bitbake recipe
- Includes validation for the location  name of a new Bitbake Commander in a 
new repo clone or an existing one

Ioana Grigoropol (3):
  Show progress bar for New Bitbake Commander project
  Show progress bar for building new Recipe in Bitbake commander
perspective
  Validate project name and location for Bitbake command project

 .../src/org/yocto/bc/bitbake/ShellSession.java |  116 +++-
 .../yocto/bc/remote/utils/ProcessStreamBuffer.java |3 +-
 .../org/yocto/bc/remote/utils/RemoteHelper.java|  155 +--
 .../org/yocto/bc/remote/utils/RemoteMachine.java   |4 +-
 .../remote/utils/YoctoHostShellProcessAdapter.java |  136 +-  
.../bc/remote/utils/YoctoRunnableWithProgress.java |  106 
 .../bc/ui/wizards/NewBitBakeFileRecipeWizard.java  |2 +-
 .../ui/wizards/NewBitBakeFileRecipeWizardPage.java |  285 ++-- 
 .../yocto/bc/ui/wizards/install/InstallWizard.java |  113 ++--
 .../yocto/bc/ui/wizards/install/OptionsPage.java   |  178 ++--
 .../BBConfigurationInitializeOperation.java|6 +-
 .../newproject/CreateBBCProjectOperation.java  |   31 +--
 12 files changed, 551 insertions(+), 584 deletions(-)  create mode 100644 
plugins/org.yocto.bc.ui/src/org/yocto/bc/remote/utils/YoctoRunnableWithProgress.java

--
1.7.9.5

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[linux-yocto] [PATCH 0/1] Add 32-bit support for Rangeley

2012-12-04 Thread kishore . k . bodke
From: Kishore Bodke kishore.k.bo...@intel.com

Hi,

Resending the patch for enabling the 32-bit support for
rangeley machine by resuing the existing rangeley branch.

Please pull them into linux-yocto-3.4/meta.

Thanks
Kishore.

The following changes since commit 6737e890fff2a423fbb022ab1f7f82ef187fd8b1:

  meta/emenlow: use emgd instead of psb graphics driver (2012-12-03 14:34:45 
-0500)

are available in the git repository at:

  git://git.pokylinux.org/linux-yocto-2.6.37-contrib kishore/rangeley32
  
http://git.pokylinux.org/cgit.cgi/linux-yocto-2.6.37-contrib/log/?h=kishore/rangeley32

Kishore Bodke (1):
  rangeley: Add 32-bit support for Rangeley

 .../bsp/rangeley/rangeley32-preempt-rt.scc |   17 +
 .../bsp/rangeley/rangeley32-standard.scc   |   16 +
 meta/cfg/kernel-cache/bsp/rangeley/rangeley32.scc  |   25 
 3 files changed, 58 insertions(+)
 create mode 100644 meta/cfg/kernel-cache/bsp/rangeley/rangeley32-preempt-rt.scc
 create mode 100644 meta/cfg/kernel-cache/bsp/rangeley/rangeley32-standard.scc
 create mode 100644 meta/cfg/kernel-cache/bsp/rangeley/rangeley32.scc

-- 
1.7.9.5

___
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto