]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
11 years agouser-manual: Fix issue with previous revert
Richard Purdie [Tue, 28 Jan 2014 15:29:26 +0000 (15:29 +0000)] 
user-manual: Fix issue with previous revert

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoRevert "usermanual: Updated CC License to version 3.0"
Richard Purdie [Tue, 28 Jan 2014 14:26:08 +0000 (14:26 +0000)] 
Revert "usermanual: Updated CC License to version 3.0"

This reverts commit 0546bc19557de9263b448ceb1707884543d2de56.

This change was not discussed with the copyright holders so the license
needs to remain at version 2.5.

11 years agosiggen.py: fix the SignatureGenerator()
Robert Yang [Mon, 20 Jan 2014 11:44:53 +0000 (19:44 +0800)] 
siggen.py: fix the SignatureGenerator()

If we set:

BB_SIGNATURE_HANDLER = "noop"

Then we would get the following errors:

[snip]
File "runqueue.py", line 876, in RunQueue._start_worker(fakeroot=False, rqexec=None):
                "fakerootnoenv" : self.rqdata.dataCache.fakerootnoenv,
   >            "hashes" : bb.parse.siggen.taskhash,
                "hash_deps" : bb.parse.siggen.runtaskdeps,
AttributeError: 'SignatureGenerator' object has no attribute 'taskhash'
[snip]

This patch fixes the problem.

[YOCTO #5741]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Simplify pointless len() usage
Richard Purdie [Mon, 27 Jan 2014 21:47:27 +0000 (21:47 +0000)] 
runqueue: Simplify pointless len() usage

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: No need for enable_proxy and same_proxy in conf file
Irina Patru [Thu, 23 Jan 2014 09:49:43 +0000 (11:49 +0200)] 
hob: No need for enable_proxy and same_proxy in conf file

Hob doesn't read these variable from file and bitbake doesn't use them,
so they shouldn't be set in conf file.

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: Don't always save proxy values in conf file
Irina Patru [Thu, 23 Jan 2014 09:49:42 +0000 (11:49 +0200)] 
hob: Don't always save proxy values in conf file

If enable_proxy is not activated, Hob should not save the proxy values
in the conf file when user hits save button.

[ HOB #5308 ]

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: don't display interruptions as fails
Irina Patru [Tue, 21 Jan 2014 15:59:38 +0000 (17:59 +0200)] 
hob: don't display interruptions as fails

When Hob receives a bb.command.CommandFailed event, it should check if
it's a log kind of information.
"Forced shutdown" and "Stopped build" are messages that show when a build
is not complete, but Hob considered them error.

[HOB #5609]

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: unsetting busy cursor after hitting Stop button
Irina Patru [Tue, 21 Jan 2014 15:59:37 +0000 (17:59 +0200)] 
hob: unsetting busy cursor after hitting Stop button

The busy cursor would never change after pressing Stop button.
It should be set after the possible return inside machine_combo_changed_cb()
method.

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: hob: check if parser has attribute 'shutdown'
Irina Patru [Tue, 21 Jan 2014 15:59:36 +0000 (17:59 +0200)] 
bitbake: hob: check if parser has attribute 'shutdown'

It must be checked first if parser has the attribute 'shutdown' when
user hits Stop button and the forceshutdown state is given.

[HOB #5579]

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agohob: change error_msg for CommandFailed event
Irina Patru [Tue, 21 Jan 2014 15:59:35 +0000 (17:59 +0200)] 
hob: change error_msg for CommandFailed event

When a bb.command.CommandFailed event is received by Hob, the error
message is stored inside event.error.
This information tells exactly why bitbake failed, so Hob should display
it instead of the current composed message.

Signed-off-by: Irina Patru <irina.patru@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agocooker: Add option of specifying indvidual tasks for targets
Richard Purdie [Mon, 27 Jan 2014 14:37:04 +0000 (14:37 +0000)] 
cooker: Add option of specifying indvidual tasks for targets

Currently its near enough impossible to tell bitbake to run target X,
task Y and target A, task B. We could hack various parts of the API
around but it would mean incompatibilities.

An alternative is to accept the syntax "<target>:do_<task>" as a target
name. The default task would be used where the task is unspecified.

This has the advantage that its neat/clean code and works from all
current APIs including the commandline.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-ref-variables.xml: Added 10 new variables to the glossary.
Scott Rifenbark [Wed, 22 Jan 2014 14:25:28 +0000 (08:25 -0600)] 
user-manual-ref-variables.xml: Added 10 new variables to the glossary.

Fixes [YOCTO #5472]

1. ASSUME_PROVIDED
2. BB_CURRENTTASK
3. BB_FETCH_PREMIRRORONLY
4. BB_FILENAME
5. BB_NICE_LEVEL
6. BB_HASHCONFIG_WHITELIST
7. BB_TASK_NICE_LEVEL
8. BB_NO_NETWORK
9. BB_NUMBER_PARSE_THREADS
10. STAMPCLEAN

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Fixed references to "Build Directory".
Scott Rifenbark [Tue, 21 Jan 2014 23:25:41 +0000 (17:25 -0600)] 
user-manual-ref-variables.xml: Fixed references to "Build Directory".

I made sure that these are lower-cased.  Also, removed the tags
for cross-referencing into the term section of the YP Development
Manual.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variables.xml: Editing pass.
Scott Rifenbark [Tue, 21 Jan 2014 23:20:55 +0000 (17:20 -0600)] 
user-manual-ref-variables.xml: Editing pass.

Corrected grammar and applied active voice where possible.
Also removed several cross-reference tags to the YP manual set.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agotemplate/titlepage.templates.xml: Suppress Title Text.
Scott Rifenbark [Mon, 20 Jan 2014 23:47:02 +0000 (17:47 -0600)] 
template/titlepage.templates.xml: Suppress Title Text.

I commented out two blocks of code that are responsible
for getting the book's title to format onto the title page.
Commenting the code out suppresses the title from the
PDF version's title page yet retains the title text for the
HTML tab space of the browser.  The reason this is necessary
is because the BitBake User Manual uses an image file for
the title.  Thus, it is not necessary to print the title
again.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-customization.xsl: Updated param list to pass
Scott Rifenbark [Mon, 20 Jan 2014 22:35:25 +0000 (16:35 -0600)] 
user-manual-customization.xsl: Updated param list to pass

I added five parameters here to match the build process used
for the YP manual set.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-metadata.xml: Renamed section tag
Scott Rifenbark [Mon, 20 Jan 2014 21:13:18 +0000 (15:13 -0600)] 
user-manual-metadata.xml: Renamed section tag

There were two section tags that used the same id name "classes".
One was in the intro chapter and one was in the metadata chapter.
This was causing an exception in the PDF creation process and
breaking it.  I renamed the tag in the metadata chapter
"metadata-classes".

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-ref-variavbles.xml: Added new glossary chapter.
Scott Rifenbark [Mon, 20 Jan 2014 19:09:43 +0000 (13:09 -0600)] 
user-manual-ref-variavbles.xml: Added new glossary chapter.

Added a scrubbed copy of the YP ref-manual glossary.  The content
was scrubbed to contain BB variables only.  Removed broken
cross-references, made sure the PDF file built.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-bitbakecommand: Various edits/cleanups
Richard Purdie [Sat, 18 Jan 2014 16:25:25 +0000 (16:25 +0000)] 
user-manual-bitbakecommand: Various edits/cleanups

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-bitbakecommand: Standardise on section tags, not example
Richard Purdie [Sat, 18 Jan 2014 16:22:01 +0000 (16:22 +0000)] 
user-manual-bitbakecommand: Standardise on section tags, not example

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-bitbakecommand: Replace screen tags with literallayout
Richard Purdie [Sat, 18 Jan 2014 16:14:52 +0000 (16:14 +0000)] 
user-manual-bitbakecommand: Replace screen tags with literallayout

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-bitbakecommand: Reform whitespace
Richard Purdie [Sat, 18 Jan 2014 16:05:00 +0000 (16:05 +0000)] 
user-manual-bitbakecommand: Reform whitespace

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-bitbakecommand: Update help text output with that from bitbake master
Richard Purdie [Sat, 18 Jan 2014 15:33:30 +0000 (15:33 +0000)] 
user-manual-bitbakecommand: Update help text output with that from bitbake master

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-fetching: Editing pass over the manual chapter
Richard Purdie [Sat, 18 Jan 2014 15:24:18 +0000 (15:24 +0000)] 
user-manual-fetching: Editing pass over the manual chapter

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-fetching: Change varname/emphasis tags to filename
Richard Purdie [Sat, 18 Jan 2014 15:21:33 +0000 (15:21 +0000)] 
user-manual-fetching: Change varname/emphasis tags to filename

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-fetching: Change screen -> literallayout
Richard Purdie [Sat, 18 Jan 2014 15:13:13 +0000 (15:13 +0000)] 
user-manual-fetching: Change screen -> literallayout

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-fetching: Change the file whitespace
Richard Purdie [Sat, 18 Jan 2014 15:07:32 +0000 (15:07 +0000)] 
user-manual-fetching: Change the file whitespace

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Clean up task documentation
Richard Purdie [Sat, 18 Jan 2014 14:34:14 +0000 (14:34 +0000)] 
user-manual-metadata: Clean up task documentation

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Clean up task flag section
Richard Purdie [Sat, 18 Jan 2014 14:33:33 +0000 (14:33 +0000)] 
user-manual-metadata: Clean up task flag section

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Expand parsing process docuemtnation
Richard Purdie [Sat, 18 Jan 2014 14:32:51 +0000 (14:32 +0000)] 
user-manual-metadata: Expand parsing process docuemtnation

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section about layers
Richard Purdie [Sat, 18 Jan 2014 14:30:45 +0000 (14:30 +0000)] 
user-manual-metadata: Add section about layers

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section about INHERIT
Richard Purdie [Sat, 18 Jan 2014 14:29:16 +0000 (14:29 +0000)] 
user-manual-metadata: Add section about INHERIT

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section about running tasks and the environment
Richard Purdie [Sat, 18 Jan 2014 14:27:30 +0000 (14:27 +0000)] 
user-manual-metadata: Add section about running tasks and the environment

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Rework section about shell/python functions
Richard Purdie [Sat, 18 Jan 2014 14:26:07 +0000 (14:26 +0000)] 
user-manual-metadata: Rework section about shell/python functions

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section about data store operations
Richard Purdie [Sat, 18 Jan 2014 14:24:13 +0000 (14:24 +0000)] 
user-manual-metadata: Add section about data store operations

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add lists of common events
Richard Purdie [Sat, 18 Jan 2014 14:22:41 +0000 (14:22 +0000)] 
user-manual-metadata: Add lists of common events

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Editing pass over the manual chapter
Richard Purdie [Sat, 18 Jan 2014 14:02:18 +0000 (14:02 +0000)] 
user-manual-metadata: Editing pass over the manual chapter

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Use filename tags instead of literal and varname tags
Richard Purdie [Sat, 18 Jan 2014 13:20:36 +0000 (13:20 +0000)] 
user-manual-metadata: Use filename tags instead of literal and varname tags

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Replace screen tags with literallayout tags
Richard Purdie [Sat, 18 Jan 2014 13:14:30 +0000 (13:14 +0000)] 
user-manual-metadata: Replace screen tags with literallayout tags

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Update whitespace (no content changes)
Richard Purdie [Sat, 18 Jan 2014 11:34:47 +0000 (11:34 +0000)] 
user-manual-metadata: Update whitespace (no content changes)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Reorder sections to more logical order
Richard Purdie [Fri, 17 Jan 2014 16:35:32 +0000 (16:35 +0000)] 
user-manual-metadata: Reorder sections to more logical order

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-metadata: Add section ids for most sections
Richard Purdie [Fri, 17 Jan 2014 16:22:42 +0000 (16:22 +0000)] 
user-manual-metadata: Add section ids for most sections

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-hello.xml: Added new chapter for "Hello World Example"
Scott Rifenbark [Tue, 14 Jan 2014 13:27:59 +0000 (07:27 -0600)] 
user-manual-hello.xml: Added new chapter for "Hello World Example"

This file was evidently a "working" file and not included in the
manual at the point Bill left off.  The wmat branch, however, had
a load of commits dedicated to this file.  Rather than attempt to
replay them all one-by-one, I simply copied the file from the
wmat branch and hand-inserted the changes to make it equal to what
was there.  Note also that I re-formatted the file to have the
same formatting standards I use in the YP manuals.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual.xml: Cleanup on the title page.
Scott Rifenbark [Tue, 14 Jan 2014 00:04:41 +0000 (18:04 -0600)] 
user-manual.xml: Cleanup on the title page.

1. Added commented out manual revision history.
2. Cleaned up the author stuff.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-intro.xml: Re-write of BitBake introduction.
Bill Traynor [Tue, 14 Jan 2014 00:34:16 +0000 (18:34 -0600)] 
user-manual-intro.xml: Re-write of BitBake introduction.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
11 years agouser-manual-intro: Various minor cleanups/improvements
Richard Purdie [Fri, 17 Jan 2014 15:15:24 +0000 (15:15 +0000)] 
user-manual-intro: Various minor cleanups/improvements

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-intro: Add obtaining bitbake and summary sections
Richard Purdie [Fri, 17 Jan 2014 15:07:11 +0000 (15:07 +0000)] 
user-manual-intro: Add obtaining bitbake and summary sections

Add new obtaining bitbake and summary sections from Bill Traynor

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-intro.xml: Added "Concepts" section.
Scott Rifenbark [Mon, 13 Jan 2014 23:35:00 +0000 (17:35 -0600)] 
user-manual-intro.xml: Added "Concepts" section.

Provided initial text for recipes, configuration files, and
classes.

Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-intro: Update/improve whitespace
Richard Purdie [Fri, 17 Jan 2014 15:00:48 +0000 (15:00 +0000)] 
user-manual-intro: Update/improve whitespace

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual-intro: Expand introduction and fix spelling mistakes
Richard Purdie [Fri, 17 Jan 2014 14:58:20 +0000 (14:58 +0000)] 
user-manual-intro: Expand introduction and fix spelling mistakes

Expand the introduction section, fill out the section ids and fix some spelling
mistakes.

Wording from Bill Traynor/Scott Rifenbark

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agodocumentation: Add README based off the YP docs one
Bill Traynor [Mon, 14 Jan 2013 20:24:34 +0000 (15:24 -0500)] 
documentation: Add README based off the YP docs one

Reusing the README file from the Yocto Project Documentation
directory but removed the YP specific content and changed to be
specific to BitBake.

Signed-off-by: Bill Traynor <wmat@alphatroop.com>
11 years agogitignore: Update for recent docs changes
Bill Traynor [Mon, 14 Jan 2013 19:32:51 +0000 (14:32 -0500)] 
gitignore: Update for recent docs changes

Added a few more files to gitignore file to allow document
generation testing.

Signed-off-by: Bill Traynor <wmat@alphatroop.com>
11 years agouser-manual: Separate out chapters into individual files
Richard Purdie [Fri, 11 Jan 2013 17:45:15 +0000 (12:45 -0500)] 
user-manual: Separate out chapters into individual files

Splitting the manual into a chapter per file makes the content
a little more managable.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agouser-manual: Import YP Docs templates for usermanual improvements
Bill Traynor [Fri, 11 Jan 2013 17:45:15 +0000 (12:45 -0500)] 
user-manual: Import YP Docs templates for usermanual improvements

Import the necessary pieces to be able to build the BitBake User
Manual using make in a similar way that the Yocto Documentation is
built.  The Makefile has been edited to remove Yocto Project specific
content and adapt for bitbake's needs.

Signed-off-by: Bill Traynor <wmat@alphatroop.com>
11 years agousermanual: Renamed manual dir to user-manual to be consistent.
Bill Traynor [Mon, 7 Jan 2013 14:34:50 +0000 (09:34 -0500)] 
usermanual: Renamed manual dir to user-manual to be consistent.

Renaming the manual directory to user-manual in order to allow
for future additions of specific manual types, such as a
dev-manual.

Signed-off-by: Bill Traynor <wmat@alphatroop.com>
11 years agousermanual: Updated CC License to version 3.0
Bill Traynor [Fri, 4 Jan 2013 15:40:40 +0000 (10:40 -0500)] 
usermanual: Updated CC License to version 3.0

Updated the Creative Commons License to the most current version,
version 3.0.  Also updated the Creative Commons mailing address.

Signed-off-by: Bill Traynor <wmat@alphatroop.com>
11 years agotoaster: fix package data gathering
Alexandru DAMIAN [Fri, 17 Jan 2014 17:58:05 +0000 (17:58 +0000)] 
toaster: fix package data gathering

Under OE-Core, the name under which a package would
be installed in a target may have been different than the
name under it has been built or recorded in the dependencies
listings.

This patch addresses the way that Toaster records package
names, and adds the field of "installed_name" to save the
name under which a package have been installed in an image.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: fix builds page CSS and functionality
Alexandru DAMIAN [Mon, 20 Jan 2014 17:31:08 +0000 (17:31 +0000)] 
toaster: fix builds page CSS and functionality

This patch fixes a set of CSS and functionality problems
with the build list page:

* Fix Recent Builds text styles
* Added proper links from Failed Tasks entries.
* Always Search returns to the first page of results.
* Clear search button appears only if search is active.
* Search shows the number of object, proper no objects found
* Various smaller fixes.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Set .error styles for tables
Barros Pena, Belen [Thu, 16 Jan 2014 10:50:59 +0000 (10:50 +0000)] 
toaster: Set .error styles for tables

Override the default styles of Twitter Bootstrap for table rows
with the .error class applied, and ensure that table cells and
anchor tags inherit the .error styles when their table row has
that class applied.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
11 years agotoaster: All Tasks Feature with sorting and filtering
Ravi Chintakunta [Fri, 10 Jan 2014 21:43:24 +0000 (16:43 -0500)] 
toaster: All Tasks Feature with sorting and filtering

- Fixed the all tasks view and template  to match the UI design and use
the new basetable code.

- Added a method to views to add sort order icon to the view context.

- Default sort order when the page is loaded is displayed with the sort icon

- Filtering of columns

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
11 years agotoaster: Implementation of recipe detail views
David Reyna [Sat, 18 Jan 2014 00:58:08 +0000 (16:58 -0800)] 
toaster: Implementation of recipe detail views

Add the new recipe detail page and update the view context accordingly.
Rename the recipe summary page to 'recipes.html' and add the respective
links to the recipe details page.

The views are based on specifications found in attachments to
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4299

[YOCTO #4299]

Signed-off-by: David Reyna <david.reyna@windriver.com>
11 years agotoaster: Implementation of base build details page
David Reyna [Fri, 17 Jan 2014 01:41:57 +0000 (17:41 -0800)] 
toaster: Implementation of base build details page

This page is the standard base page for 'details' views. It is
based on 'basebuildpage.html' but does not include the build's
quick-link sidebar.

Signed-off-by: David Reyna <david.reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Added custom filter tags for use in templates.
Ravi Chintakunta [Tue, 14 Jan 2014 19:06:38 +0000 (14:06 -0500)] 
toaster: Added custom filter tags for use in templates.

- custom filter tag to return the css class based on
  the task execution status and execution outcome

- custom filters for active filter icon and tooltip text

- custom filter for displaying blank for None, zero, '0' and
  'Not Applicable'

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Base table fixes for header text, sort icon and filter icon
Ravi Chintakunta [Fri, 10 Jan 2014 21:36:40 +0000 (16:36 -0500)] 
toaster: Base table fixes for header text, sort icon and filter icon

- Display the table column header as a link only if it is sortable.
   Non-sortable column headers are displayed as plain text.

- Display the sort order by an up / down arrow icon next to the
   column header

- Add style for header in default.css

- Set tooltip for the active filter icon

- Pass the view name to the filter dialog

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Base html fix to set the page title
Ravi Chintakunta [Wed, 15 Jan 2014 19:55:06 +0000 (14:55 -0500)] 
toaster: Base html fix to set the page title

Set title of the page if the context includes objectname.

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: settings remove duplicate entry
Alexandru DAMIAN [Fri, 10 Jan 2014 03:08:09 +0000 (22:08 -0500)] 
toaster: settings remove duplicate entry

The 'toastergui' application had duplicate entries,
so this patch removes the duplicate ones.

Based on an original patch from Ravi Chintakunta <ravi.chintakunta@timesys.com>.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Add initial tests
Andreea Proca [Tue, 14 Jan 2014 14:01:08 +0000 (16:01 +0200)] 
toaster: Add initial tests

This adds the initial api tests for toaster, using Django's unittest modules.

Signed-off-by: Andreea Proca <andreea.b.proca@intel.com>
11 years agotoaster: Toaster GUI Build and Dashboard pages fixes
Alexandru DAMIAN [Thu, 16 Jan 2014 12:22:21 +0000 (12:22 +0000)] 
toaster: Toaster GUI Build and Dashboard pages fixes

THis is a large set of fixes for the generic table, Build and
Dashboard pages.

Among the fixes:
* the table remembers which columns to show across refreshes,
based on saving the settings in a cookie
* added column timespent for a build which is  a denormalization
of the completed_on - started_on information due to limits in
computing datetime differences in the SQL engine
* fixed formatting of the time differences
* various sorting header links fixed
* correct error and warning CSS classes applied to the
respective rows
* fixes multiple divide-by-zero error in displaying duration
estimations

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: add jquery cookie plugin
Alexandru DAMIAN [Thu, 16 Jan 2014 13:07:02 +0000 (13:07 +0000)] 
toaster: add jquery cookie plugin

We add the jquery cookie plugin to allow us to save
and read local client date in cookie.

jquery-cookie using version 1.4.0 under MIT licence.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: add vim modelines for .py files
Alexandru DAMIAN [Tue, 14 Jan 2014 12:50:32 +0000 (12:50 +0000)] 
toaster: add vim modelines for .py files

No-op patch that adds vim modelines for all .py files
intended to be user-edited.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: update Task classification fields
Alexandru DAMIAN [Tue, 14 Jan 2014 12:35:12 +0000 (12:35 +0000)] 
toaster: update Task classification fields

This patch updates the task classification fields (outcome, etc)
as to

* Changes outcome names from SSTATE to CACHED and
from EXISTING to PREBUILT

* NoExec tasks now recorded as Not Executed / script type NA instead
of Executed / script type NOEXEC. Script type NOEXEC is deleted.

* SetScene tasks do not get order numbers

* New task method that returns a QuerySet for setscene tasks related
to this task: Task.get_related_setscene()

* New custom TaskManager that allows searching for setscene tasks
related to a certain task: Task.objects.related_setscene(task)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: update Simple UI references to avoid conflict
Alexandru DAMIAN [Mon, 13 Jan 2014 17:03:41 +0000 (17:03 +0000)] 
toaster: update Simple UI references to avoid conflict

Since the Toaster GUI was cloned from the Simple UI, we need
to update the URL pattern names in Simple UI to
prevent conflict when determining the reverse URL path.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agorunqueue: Only attempt to print closest matching task if there is a match
Richard Purdie [Mon, 20 Jan 2014 21:36:36 +0000 (21:36 +0000)] 
runqueue: Only attempt to print closest matching task if there is a match

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2/wget: Check downloaded file isn't zero size
Richard Purdie [Tue, 21 Jan 2014 09:58:21 +0000 (09:58 +0000)] 
fetch2/wget: Check downloaded file isn't zero size

I can't think of a reason we'd download zero sized files however there are
reasons zero length files can accidently make it onto source mirrors.

This check allows us to ignore the broken files and switch to another
mirror rather than fail with odd checksum failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2/git: Dereference unresolved tags with ls-remote
Richard Purdie [Mon, 20 Jan 2014 14:23:55 +0000 (14:23 +0000)] 
fetch2/git: Dereference unresolved tags with ls-remote

We need to deference tags when trying to map them to commit IDs with
ls-remote. If we don't do this, a given commit might not show up
later in a specific branch. There appears to be no good reason not
to do this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2/git: Anchor names when using ls-remote
Richard Purdie [Mon, 20 Jan 2014 14:30:11 +0000 (14:30 +0000)] 
fetch2/git: Anchor names when using ls-remote

When specifying tags, they're searched for unanchored so foo/bar could
match:

refs/heads/abc/foo/bar
refs/heads/xyz/foo/bar
refs/heads/foo/bar

This change anchors the expressions so they are based against heads
or tags (or any other base level tree that has been created).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: Improve invalid SRCREV error message
Richard Purdie [Mon, 20 Jan 2014 13:25:43 +0000 (13:25 +0000)] 
fetch2: Improve invalid SRCREV error message

The current message can be ambiguous, improve it (and also rename a
variable to clean up the rest of the function).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: Sanity check SRCREV matches rev/tag parameter
Richard Purdie [Mon, 20 Jan 2014 13:15:12 +0000 (13:15 +0000)] 
fetch2: Sanity check SRCREV matches rev/tag parameter

Add a sanity check so that if some SRCREV is set and a rev parameter is given
to the url, the revision given should match.

Any tag parameter behaves the same as rev. If both are specified, error to
tell the user we're confused rather than do something which may or may not
be what they intended.

Also add some unittests for this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: Clean up srcrev_internal_helper
Richard Purdie [Mon, 20 Jan 2014 13:10:46 +0000 (13:10 +0000)] 
fetch2: Clean up srcrev_internal_helper

Currently INVALID and None are checked as incorrect values under different
circumstances. This code standardises those checks to be consistent. We
should phase out the use of "INVALID".

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2/__init__.py: let try_mirror_url return correct value
Robert Yang [Wed, 25 Dec 2013 16:01:26 +0000 (00:01 +0800)] 
fetch2/__init__.py: let try_mirror_url return correct value

The fetcher will try:

1) PREMIRROR
2) Upstream
3) MIRROR

If it fails to download from the Upstream, but succeeds from the MIRROR,
and ud.localpath != origud.localpath (for example, the git tarball),
then we will get the error (e.g.: xf86-video-omapfb):

ERROR: Function failed: Fetcher failure for URL: 'xxx'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /path/to/log.do_fetch.28024

It should not show the error and let the build go on since it succeeds.
(e.g.: xf86-video-omapfb)

[YOCTO #5686]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoSignatureGenerator: Add empty implementation for dump_sigs
Martin Jansa [Fri, 17 Jan 2014 13:13:43 +0000 (14:13 +0100)] 
SignatureGenerator: Add empty implementation for dump_sigs

* bitbake -S throws exception when 'noop' signature handler is used

[YOCTO #5738]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2/gitsm: Use ud.basecmd instead of hardcoding git
Richard Purdie [Fri, 17 Jan 2014 12:01:27 +0000 (12:01 +0000)] 
fetch2/gitsm: Use ud.basecmd instead of hardcoding git

This allows FETCHCMD_git to override the fetcher command as the git fetcher does.

[YOCTO #5717]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: Don't allow '/' in user:pass, fix branch containing '@'
Martin Jansa [Thu, 16 Jan 2014 14:55:19 +0000 (15:55 +0100)] 
fetch2: Don't allow '/' in user:pass, fix branch containing '@'

* currently decode_url regexp parses branch=@foo as username so it ends like this:
  - ('git', '', 'foo', 'git.openembedded.org/bitbake;branch=', '', {})
  + ('git', 'git.openembedded.org', '/bitbake', '', '', {'branch': '@foo'})
* http://hg.python.org/cpython/file/2.7/Lib/urlparse.py also assumes
  that there is at least one '/' as separator between netloc and path,
  params, so it looks reasonable to prevent including '/' in username

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosiggen: Remove fsync that is causing performance issues
Richard Purdie [Sat, 18 Jan 2014 23:23:02 +0000 (23:23 +0000)] 
siggen: Remove fsync that is causing performance issues

This fsync was added for belt and braces protection for things like sstate
on NFS. To be honest, it probably doesn't buy much, if the rename isn't
atomic, all bets are off anyway and there are bigger issues to worry about.

The issue is that at the end of every task, the dump_sig() code is triggered
to save out information about the task and this was triggering an fsync(fd).

Whilst it may select the file descriptor, on file systems like ext4, it will
require large parts of the journal to be written out so it can have
significant impact. latencytop showed an average fsync() call overhead of about
2s and if that happens for 5000 tasks, the time mounts up. This blocks the next
task execution by that time.

We therefore drop the fsync since in reality its causing problems and is unlikely
to buy much.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster: Toaster GUI, generic search, filter and order
Alexandru DAMIAN [Tue, 7 Jan 2014 13:10:42 +0000 (13:10 +0000)] 
toaster: Toaster GUI, generic search, filter and order

This patch implements table searching, filtering and ordering, in a
generic mode reusable for all tables.

The search operates list of fields defined in the corresponding
class for each model, search_allowed_fields.

The search expression and filters are sent through GET requests
using a QuerySet-like input. The inputs are filtered and
validated before usage to prevent inadvertent or malicious use.

Filters and table headers are defined in the views for each table,
and rendered by generic code which is easily modified for various
tables.

The Build table and Configuration table are implemented using this
framework as an example of how it should be used.

    [YOCTO #4249]
    [YOCTO #4254]
    [YOCTO #4255]
    [YOCTO #4256]
    [YOCTO #4257]
    [YOCTO #4259]
    [YOCTO #4260]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Build dashboard implementation
Alexandru DAMIAN [Fri, 13 Dec 2013 17:14:34 +0000 (17:14 +0000)] 
toaster: Build dashboard implementation

This patch adds the build dashboard page implementation,
which is the landing page for the Toaster GUI.

Also adds correct links from the main build page
to the various parts of the dashboard.

    [YOCTO #4258]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: Create the base page navigation structure
Alexandru DAMIAN [Wed, 11 Dec 2013 16:42:34 +0000 (16:42 +0000)] 
toaster: Create the base page navigation structure

Updating the general container pages to use the graphical
design and features from the design phase.

In the process of adapting the Simple UI to the designed
interface, we create all the pages and the navigation
structure for the Toaster GUI.

Views for each page have been added, and the url mapping
has been updated to reflect newly added pages.

The table page has been refactored to be component-oriented
instead of class-oriented in order to facilitate reusage.

Changes are made in different layers of the template
(base, basetable) in order to maximize code reuse among
different pages in the build.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: update static media for Toaster GUI
Alexandru DAMIAN [Wed, 11 Dec 2013 16:40:05 +0000 (16:40 +0000)] 
toaster: update static media for Toaster GUI

In the process of making the GUI more usable, we
bring in the static assets used during the design
phase into the application.

Licenses used:

    Bootstrap 2.3.2 under Apache License 2.0
    Font Awesome under SIL OFL 1.1 (GPL compatible) and MIT licence
    GLYPHICONS Halflings released with Bootstrap, CC BY 3.0
    jQuery 2.0.3 under MIT licence
    prettify.js under Apache Licence 2.0

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agotoaster: clone Simple UI as base for Toaster GUI
Alexandru DAMIAN [Wed, 18 Dec 2013 19:50:45 +0000 (19:50 +0000)] 
toaster: clone Simple UI as base for Toaster GUI

This patch clones the Simple UI to provide the base code for
the development of the Toaster GUI. The clone takes the place
of the application that was reserved for Javascript MVC code.

The templates used for Simple UI are renamed to start with
an "simple_" to prevent name resolution conflict with the
Toaster GUI templates.

Minor changes are made to the settings.py and urls.py in the
toaster main section to account for the newly enabled application.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
11 years agofetch2/gitannex: Fix function arguments to match bitbake master
Richard Purdie [Wed, 8 Jan 2014 15:26:29 +0000 (15:26 +0000)] 
fetch2/gitannex: Fix function arguments to match bitbake master

This code clearly uses an earlier fetcher API. Update it to match master.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agogitannex: Add missing file from previous commit
Richard Purdie [Wed, 8 Jan 2014 13:07:39 +0000 (13:07 +0000)] 
gitannex: Add missing file from previous commit

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2/git: add description for nobranch
Zhenhua Luo [Wed, 8 Jan 2014 10:17:08 +0000 (18:17 +0800)] 
bitbake: fetch2/git: add description for nobranch

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: gitannex.py: Add Git Annex support
Otavio Salvador [Tue, 7 Jan 2014 15:58:33 +0000 (13:58 -0200)] 
bitbake: gitannex.py: Add Git Annex support

This add a Git Annex backend which reuses the Git fetcher code; it
allows managing files with git, without checking the file contents
into git, being useful when dealing with files larger than git can
currently easily handle, whether due to limitations in memory, time,
or disk space.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetch2/git: add nobranch option for SRC_URI to skip SHA validating for branch
Zhenhua Luo [Tue, 7 Jan 2014 10:45:34 +0000 (18:45 +0800)] 
bitbake: fetch2/git: add nobranch option for SRC_URI to skip SHA validating for branch

For rebased git tree, some commits doesn't exist in any branch, and such commits are
valid in tag, the change is useful for such case.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake/lib/bb/build.py: fix the task flags cleandirs
Robert Yang [Mon, 6 Jan 2014 09:52:35 +0000 (04:52 -0500)] 
bitbake/lib/bb/build.py: fix the task flags cleandirs

The user manual said:

'cleandirs' - directories which should created before the task runs but should be empty

But it only removes the dir, doesn't create it

[YOCTO #5703]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: usermanual.xml: fix a typo
Robert Yang [Mon, 6 Jan 2014 09:52:36 +0000 (04:52 -0500)] 
bitbake: usermanual.xml: fix a typo

Fixed:
"should created" -> "should be created"

[YOCTO #5703]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agotoaster: add two-stage commit startup logic
Alexandru DAMIAN [Tue, 10 Dec 2013 18:24:18 +0000 (18:24 +0000)] 
toaster: add two-stage commit startup logic

Toaster start script lunches multiple process components
of the toaster system.

This patch adds logic into the startup script to
safely fail startup and do proper cleanup on any error
that may happen during system start.

Bitbake needs to return 0 if it will successfully lunches
the server-mode.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake/lib/bb/cooker.py: remove a duplicated self.data
Robert Yang [Fri, 3 Jan 2014 17:24:32 +0000 (01:24 +0800)] 
bitbake/lib/bb/cooker.py: remove a duplicated self.data

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetcher2: clean(): remove the .patch.done
Robert Yang [Fri, 27 Dec 2013 06:51:51 +0000 (01:51 -0500)] 
bitbake: fetcher2: clean(): remove the .patch.done

There was a problem:

$ bitbake xf86-video-omapfb -cfetch && bitbake xf86-video-omapfb -ccleanall

Everything should be removed, but the
0006-omapfb-port-to-new-xserver-video-API.patch.done still exists in the
DL_DIR, this is because the clean() in the fetch2/__init__.py skips
removing the local file, so that it will skip removing the .done.

The local file (file://) isn't needed to be removed since it is not
downloaded into DL_DIR, but the .done should be removed, this patch will
remove the .done, and it doesn't remove anything else since the clean()
in local.py does nothing.

[YOCTO #5687]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobitbake: fetcher2: git.py: clean(): remove the .tar.gz.done
Robert Yang [Fri, 27 Dec 2013 06:51:52 +0000 (01:51 -0500)] 
bitbake: fetcher2: git.py: clean(): remove the .tar.gz.done

There was a problem:

$ bitbake xf86-video-omapfb -cfetch && bitbake xf86-video-omapfb -ccleanall

The git2_git.pingu.fi.xf86-video-omapfb.tar.gz has been removed from the
DL_DIR, but the git2_git.pingu.fi.xf86-video-omapfb.tar.gz.done still exists,
this is because the "open(ud.donestamp, 'w').close()" in try_mirror_url() will
create the git2_git.xxx.tar.gz.done, but no one removes it (the clean() in
fetch2/__init__.py removes the DL_DIR/git2/pkg.done)

This only happens on the git fetcher AFAIK.

[YOCTO #5688]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>