summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2014-12-03[Yocto #4009] using OperationCanceledException to have a better handle of ↵HEADmasterJessica Zhang
the error compare to the current ProcessFailureException Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2014-06-25setup.sh: Change wget locationyocto-1.7.1yocto-1.7yocto-1.5.3dora-10.0.3dizzy-12.0.1dizzy-12.0.0dizzyElizabeth Flanagan
The eclipse infrastructure seems to be having issues with SDK location Switch to internal mirror. Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
2014-05-22plugins/cmake: Add oecore sysroot variables to CMAKE_FIND_ROOT_PATHTimo Mueller
The sysroots provided by the toolchain were not added to the CMAKE_FIND_ROOT_PATH variable. This resolved into CMake searching on the host system breaking cross-compilation in some cases. With the addition of the sysroot environment variables provided by oecore, we make sure that these sysroots are scanned when CMake is conducting searches. [BUGFIX #6314] Signed-off-by: Timo Mueller <timo.mueller@bmw-carit.de>
2014-05-22plugins/cmake: Refactor creation of CMAKE_FIND_ROOT_PATHTimo Mueller
Adding new environment variables to the list of variables that contribute to the the CMAKE_FIND_ROOT_PATH involved manually appending to the value string and also adding a whitespace to separate values. The construction of the CMAKE_FIND_ROOT_PATH value is extracted to a separate method, which expects a list of environment variables. Adding or removing environment variables that contribute to the path is now achieved by modifying the entries of the list. Signed-off-by: Timo Mueller <timo.mueller@bmw-carit.de>
2014-05-22plugins/cmake: Add cmake error message to error dialogTimo Mueller
In case cmake reported an error during project configuration the resulting error dialog showed a generic 'build failed' message. The specific error message which can help the user find the problem was hidden in cmake console. Along with logging the cmake error to the configure console it is now also captured and added to the error dialog. [BUGFIX #6313] Signed-off-by: Timo Mueller <timo.mueller@bmw-carit.de>
2014-05-22plugins/cmake: Use generic output streamTimo Mueller
This enables logging the process output to something other than a eclipse console. e.g. a log file or string that can be reused for dialogs and messages. Signed-off-by: Timo Mueller <timo.mueller@bmw-carit.de>
2014-05-22plugins/cmake: Enable separate capturing of cmake stderrTimo Mueller
The error reported by CMake was logged to the console but not used in any error dialog shown to the user so far. By capturing the error in a separate stream we can use it when reproting the error to the user. Signed-off-by: Timo Mueller <timo.mueller@bmw-carit.de>
2014-05-22plugins/cmake: Allow multiple targets when logging process outputTimo Mueller
Until now the stream pipe was connecting one input stream with one output stream. This for example allowed showing the output of a process in an eclipse console. If the output is required elsewhere, e.g. in a message dialog, the only possiblity was to read out the whole console afterwards. The stream pipe is extended so that we can now write the process output to multiple target while the process is running, e.g. a eclipse console and a byte stream. Signed-off-by: Timo Mueller <timo.mueller@bmw-carit.de>
2014-05-22plugins/cmake: Add sysroot specific include pathsTimo Mueller
CDT sets default include paths when a defined toolchain does not provide include paths of its own. The default include paths point to the host system which does not make sense for cross compiled projects. Instead of using the default include paths we provide our own path that points to the usr/include folder in the defined sysroot. Once this custom include path is defined CDT does not add any additional include paths. [BUGFIX #5544] Signed-off-by: Timo Mueller <timo.mueller@bmw-carit.de>
2014-02-20Fix cloning for a Bitbake Commander Projectyocto-1.6.1yocto-1.6daisy-11.0.1daisy-11.0.01.6_M4Alexandru Georgescu
Previous commit changed the way YoctoCommand sets a command forcing use of bash. However cloning a git repo passed the repository as argument, which doesn't work anymore, fix it by using a single command string. [YOCTO #5757] Signed-off-by: Alexandru Georgescu <alexandru.c.georgescu@intel.com>
2014-01-23Ensure the bitbake command is running in bash environment [Yocto #5707]1.6_M3.final1.6_M3Jessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-12-27Use TARGET_PREFIX instead of triplet since triplet names have been changed ↵1.6_M2Jessica Zhang
[YOCTO #5409] Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-12-26Checking the included path for invalid characters and filter them outJessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-11-26Make metadata field editable [YOCTO#5552]1.6_M1.rc11.6_M1.final1.6_M1Jessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-10-31Fix wrong command ID for ust [yocto #5381]Jessica Zhang
Signed-off-by: Johann Draschwandtner <johann.draschwandtner@windriver.com> Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-10-31Prevent execption when no project is selected profile menu contribution ↵Jessica Zhang
[yocto#5378] Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-10-11Add changeTerm method for TerminalHandler to allow subclass to override the ↵Jessica Zhang
setting. e.g. LatencyTopHandler [yocto #5328] Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-10-11sdk.remotetools: use xterm for latencytopTudor Florea
Use xterm instead of vt100 in order to avoid having unreadable output for latencytop due to some control characters. Signed-off-by: Tudor Florea <tudor.florea@enea.com>
2013-10-11Source oe-init-build-script before using yocto-bsp tool to ensure the ↵Jessica Zhang
environment is correct [yocto #5330] Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-09-16plugins/cmake: Added warning dialog on missing cmakeyocto_1.5_M5.rc8yocto-1.5_M5.rc2yocto-1.5.finalyocto-1.5poky-10.0.0.finaldora-10.0.01.5_M5.rc81.5_M5.rc71.5_M5.rc61.5_M5.rc51.5_M5.rc41.5_M5.rc31.5_M5.rc2Atanas Gegov
If the system is not able to run the command "cmake", the user is prompted with a MessageDialog to check the correctness of the cmake installation.
2013-09-04Make the combo expandable [yocto#5080]1.5_M5.rc11.5_M4.rc31.5_M4.final1.5_M4Jessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-08-13Switch to use localhostterminal for systemtap crosstap script to address ↵1.5_M4.rc21.5_M4.rc1Jessica Zhang
various systemtap execution issues Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-08-05Remove utils from features1.5_M3.final1.5_M3Jessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-08-05Fix url for eclipse-poky-keplerJessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-08-05Add remote.utils to bc featureJessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2013-08-05Fix project description missing exceptionIoana Grigoropol
- in order to avoid the deadlock that occurs when restarting Eclipse workspace containing a BBC project we return a NullFileStore - because of this NullFileStore, the project description will not be accessible and an exception will be thrown - instead of using a NullFileStore, we use a CustomLocalFile - this CustomLocalFile will point to a local file that contains the .project file from the original project, instead of a remote location - the .project file was stored when the project was created as a backup just for this case Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Adapt org.yocto.bc.ui plugin to PTP_7.0 changesIoana Grigoropol
- IRemoteServices.isInitialized() and initialize() methods have been removed - RSEConnection was removed to internal package org.eclipse.ptp.internal.remote.rse.core Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Fix Eclipse workspace deadlock when restoringIoana Grigoropol
- when creating a new bitbake commander project, a bunch of information relevant for the project is set in the project information map - when closing & restarting Eclipse, having a Bitbake commander project in the workspace an deadlock occurs due to the following: - Eclipse Resources container tries to restore all projects that were previously in the workspace - when trying to restore our BB project, we will try to determine what was the remote connection for that specific project, given its URI - we can only determine the connection by calling RSE plugin & we must wait for it to be initialized - the RSE plugin is initialized after the Resource container is finishes, and since this process is blocked waiting for a later one, a deadlock occurs - in order to fix this problem, perform the following steps: - when the Eclipse Resource container asks for the store of our project - return a NullFileStore - register as a listener of the RSEInitJob in order to get notified when the job is finished - restore the project information when the RSE API is up by triggering the internal file system core manager - restoring the information: - for the local implementation: - the connection of the project is missing -> retrive it by invoking RSE - for the remote implementation: - the only URI for the project is the oefs one - we cannot change this uri to point to the real one since it will block the refresh on the project - we cannot determine the real URI form the oefs one since we have no clue what is the host(ip) -> solution: - when creating the BBC project - save the information about the real URI of the project in the metadata of the workspace - when restoring the project - retrieve the information from the metadata location - fixed also the Project Description of the Location to display the real URI of the files Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Refactor OptionsPage to use Remote Location box & validationIoana Grigoropol
- replace text box & browse button with PTP implementation RemoteProjectContentsLocationArea - this implementation contains: - two combo boxes: one for the connections, and one for the remote services - a new button that allows creation of new connections - a text box & browse button for the location of the project - any errors that occur within the contents location area will be reported to the ErrorReporter that was registered at creation time - in our particular case, on error reporting we: - set the message of the wizard according - try and validate the page & update the underlying model - rearrange items in wizard in order to have a more consistent look (use grid data layout) - fix page validation - separate tasks in page validation in: - project name validation - project location validation - project name validation verifies that: - project name is not empty - project name is not invalid(contains invalid characters) - a project with the same name does not exist in the workspace - project location validation: - retrieves the remote IHostFile for the project - case we did select 'git clone' - make sure that the remote file either does not exists or is a empty directory - check that in the remote directory, we do not already have a .git file indicating that this directory contains git repo - case we did not select 'git clone' - make sure that the directory exists, and it contains oe-init-build-env file Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Refactor and clean-up of OptionsPage fieldsIoana Grigoropol
- clean-up all unused fields - rename fields to have consistent names Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Add implicit constructror for OEFileSystemContributorIoana Grigoropol
- this is needed in order to skip calling the default calling of the super constructor Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Remove unused ConsoleWriterIoana Grigoropol
- remove unused inner class ConsoleWriter from InstallWizard Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Create separated class for ConsoleWriterIoana Grigoropol
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Remove LongRunningTask,ICalculatePercentage from InstallWizardIoana Grigoropol
- remove inner classes & interfaces and use RemoteHelper implementation Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Retrieve console from RemoteHelper instead of recreating itIoana Grigoropol
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Refactor Bitbake wizard to use RemoteHelper APIIoana Grigoropol
Bitbake command wizard improvements: - retrive the console mapped to this particular connection from the RemoteHelper - retrive the stored remote connection & services from the model - retrive the connection from the map stored in RemoteHelper - retrive the command response handler mapped in the RemoteHelper for this connection - use newly added YoctoRunnableWithProgress for running the time consuming action(git clone) instead of the inner class - this is a customized IRunnableWithProgress that can be ran in a Wizard container and update the progress of the underlying monitor - this particular implementation is customized for running a git clone command - in order to parse the output of the git clone command, it also contains a calculator that tries to match each line with a given pattern and retrieves the percentage for updating the monitor - the run method of this class will make a call to the wrapper YoctoThread that runs the actual command in a separate thread in order not to block the interface - this thread will delegate the output processing to a YoctoRunnableOutputProcessor - this particular type of OutputProcessor takes care of parsing the error lines it receives and reporting the progress to the monitor Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Collect Bitbake error linesIoana Grigoropol
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Store reference to OptionsPage in InstallWizardIoana Grigoropol
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Enable Populate button when src URI changesIoana Grigoropol
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Run all Recipe task in wizard containerIoana Grigoropol
- if we run the remote commands without using the Wizard container, the monitor will never get updated properly and the messages will not appear - in order to fix this, we use a IRunnableWithProgress to perform all tasks Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Refactor Recipe Wizard Page to use Remote target ApiIoana Grigoropol
- refactored all steps taken when creating a new recipe to use RemoteHelper API and run commands on a abstract way regardless of the location of the target - each step that needs to run a command remote will appear as a new YoctoCommand - all commands are ran using RemoteHelper utility(handleRunCommandRemote) and passing a YoctoCommand - handleRunCommandRemote is a wrapper over the RSE Api that is able to run a command on a remote target in a separate shell - in addition to this, it also processes the output of the command and adds it to a ProcessStreamBuffer - each YoctoCommand contains: - the underlying command to be ran - the directory in which it should be ran - the ProcessStreamBuffer of this command - each process stream buffer contains two buffers: - error lines buffer - output lines buffer - all output/error processing of the command is done in separate threads and ensures that the command is finished before processing the output - [upstream issue] when dealing with remote targets, all the output and error lines will be found in the error lines - the underlying implementation has only one buffer and the errors are the first processed - [particular case] checksums are retrieved by running a Pattern against the output lines (local target) or error lines(remote target) Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Store metadata location as URI instead of StringIoana Grigoropol
- use URI to store meta-data location - initialize metadata location with projectLocation/meta Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Use uri instead of string to determine location of recipe & determine ↵Ioana Grigoropol
archive type - create URI from text location of the recipe and determine the location of the recipe by using the scheme(ftp, http, file) - extract achive type from URI Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Break handlePopulate into remote and local functionsIoana Grigoropol
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Refactor populate method nameIoana Grigoropol
- add more suggestive name Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Refactor Wizard Page fields to have consistent namesIoana Grigoropol
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Store connection for recipe in Recipe Wizard PageIoana Grigoropol
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Initialize and store the connection on Recipe WizardIoana Grigoropol
- retrieve the connection for the project destination of the recipe (using the Activator map) - store it in the Wizard & use it for running remote commands Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Save active connection for Bitbake recipeIoana Grigoropol
- retrieve active connection from project info and save it on the Bitbake editor Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>
2013-08-05Remove unsed methods & inner classes from ShellSessionIoana Grigoropol
Signed-off-by: Ioana Grigoropol <ioanax.grigoropol@intel.com>