]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
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>
11 years agobitbake: replace 3 spaces with 4
Robert Yang [Fri, 27 Dec 2013 15:55:53 +0000 (23:55 +0800)] 
bitbake: replace 3 spaces with 4

A part of fetch2/__init__.py uses 3 spaces as the indent, I
think that they should be typos.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: avoid printing "no checksum" error message twice
Paul Eggleton [Fri, 20 Dec 2013 14:48:45 +0000 (14:48 +0000)] 
fetch2: avoid printing "no checksum" error message twice

Because of the way we were handling this error, it was printed twice -
once via logger.error() (to avoid the log being printed) and a second
time when the exception gets wrapped in a FuncFailed at a higher level.
Call logger.error() earlier and change the text we send in the
exception to be more brief, so it more closely resembles the behaviour
when there is an invalid checksum.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2: fail checksum validation if SRC_URI checksums set to ""
Paul Eggleton [Fri, 20 Dec 2013 14:48:44 +0000 (14:48 +0000)] 
fetch2: fail checksum validation if SRC_URI checksums set to ""

We were checking SRC_URI md5sum/sha256sum values against None here, so
if they were set to "" then no error was produced. Since the value is
still effectively unset in this case, this is not the right behaviour;
just check if the value doesn't evaluate to False instead.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoUpdate to version 1.21.1 for master
Richard Purdie [Fri, 20 Dec 2013 12:23:12 +0000 (12:23 +0000)] 
Update to version 1.21.1 for master

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosiggen: Fix reversed difference output
Richard Purdie [Fri, 20 Dec 2013 12:07:20 +0000 (12:07 +0000)] 
siggen: Fix reversed difference output

The output when comparing siginfo files for dict_diff is reversed and shows
additions when things were removed and vice versa. This patch reverses the operation
so the changes are shown correctly and makes the output less confusing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Further extend bitbake -S output to view signature differences
Richard Purdie [Thu, 19 Dec 2013 09:40:52 +0000 (09:40 +0000)] 
runqueue: Further extend bitbake -S output to view signature differences

Based upon the list of difference starting points, we can use the siggen.find_siginfo()
function call and the difference printing code to provide a list of differences
between the current build target and whatever can be obtained from the sstate cache.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agosiggen: When printing signatures recursively, limit the output
Richard Purdie [Thu, 19 Dec 2013 09:37:39 +0000 (09:37 +0000)] 
siggen: When printing signatures recursively, limit the output

Currently the code prints all differences. If the task dependencies have changed hash,
we recurse into those and print those differences as well. This leads to a lot
of output. The reality is if the parents changed signature, we might as well just
say that and recurse with no other output since we're much more interested in how
the parents changed in nearly all cases. The changes in the parent are probably
the same ones we'd have printed at each level anyway.

By doing this we focus the output more carefully on the thing the user wants/needs
to see.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Fix data being written into siginfo/sigdata files
Richard Purdie [Thu, 19 Dec 2013 09:36:58 +0000 (09:36 +0000)] 
runqueue: Fix data being written into siginfo/sigdata files

The way hash_deps was being generated was different to the way siggen generated
the data internally which lead to seemingly different sigdata/siginfo files
for the same checksum. The -S output correct but the files written during
builds contained superflous data which would look like a difference.

This patch removes the badly duplicated data and uses it from the source
which ensures its consistent.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agorunqueue: Add output for -S option for listing the changepoints compared with an...
Richard Purdie [Wed, 18 Dec 2013 16:21:27 +0000 (16:21 +0000)] 
runqueue: Add output for -S option for listing the changepoints compared with an sstate cache

Its useful to understand where the delta starts against an existing sstate cache
for a given target. Adding this to the output of the -S option seems like a
natural fit.

We use the hashvalidate function to figure this out and assume it can find siginfo
files for more than just the setscene tasks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobb.fetch2.git: reuse basecmd attribute
Olof Johansson [Thu, 12 Dec 2013 16:48:55 +0000 (17:48 +0100)] 
bb.fetch2.git: reuse basecmd attribute

The basecmd is initialized in urldata_init; there's no need redoing that
work.

Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agofetch2/git: Improve handling of unresolved names verses branches
Richard Purdie [Thu, 12 Dec 2013 16:48:54 +0000 (17:48 +0100)] 
fetch2/git: Improve handling of unresolved names verses branches

Currently the fetcher doesn't distinguish between names that the fetcher
needs to resolve verses branch names that the user specified.

This meant that if you specify a tag and a branch, the fetcher broke. This
separates the two so that the branch name is preserved and can be used in
appropriate places.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agobuild/ast: Create strong task add/del API in bb.build
Richard Purdie [Wed, 18 Dec 2013 10:45:02 +0000 (10:45 +0000)] 
build/ast: Create strong task add/del API in bb.build

Currently its near impossible to control task addition/deletion from
metadata context. This adds stong add/deltask API to bb.build
which is traditionally where it resided. The rather broken
remove_tasks function was removed, it didn't appear to do anything
useful or have any users.

This allows us to clean up hacks currently in use in metadata and use
standard API for it instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
11 years agoast/BBHandler/build: Add support for removing tasks (deltask)
Richard Purdie [Wed, 18 Dec 2013 10:44:30 +0000 (10:44 +0000)] 
ast/BBHandler/build: Add support for removing tasks (deltask)

Back in the depths of time we did support task removal. In the pre
AST days it was nearly impossible to continue supporting it, it wasn't
used so it was dropped. With the modern codebase we can easily now support
deltask and it would be very useful within the metadata since it can
massively simplify dependency trees.

As an example, a core-image-sato had 47703 inter task dependencies before
this patch and a patch to native.bbclass, afterwards with the noexec tasks
deleted, we had 29883. Such a significant simplification is worthwhile
and justifies adding a deltask operation to the system.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agodata_smart: Fix hash corruption issue
Richard Purdie [Fri, 13 Dec 2013 12:06:12 +0000 (12:06 +0000)] 
data_smart: Fix hash corruption issue

We were accidentally using references to sets in the contains functionality
instead of creating a copy. This could cause data corruption and corruption
of the resulting sstate checksums.

This patch fixes this to make a copy of the set and resolved the corruption
issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoprocess: Add timeout to select call
Richard Purdie [Tue, 10 Dec 2013 17:53:55 +0000 (17:53 +0000)] 
process: Add timeout to select call

On some machines, a hang has been noticed where the system sits in
the select call despite the task having completed.

The exact reasons for this as unknown but adding a timeout unblocked
the builds and resolved the hangs in question.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: after adding a layer, hob do not parse the configuration
Cristiana Voicu [Fri, 6 Dec 2013 12:23:04 +0000 (14:23 +0200)] 
hob: after adding a layer, hob do not parse the configuration

Moved the parseConfiguration method before obtaining the machines and
other configurations from bitbake. If not, Hob doesn't see the new machines
added by the new layer.

[YOCTO #5632]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotoaster: Add more information for tasks in Simple UI
Alexandru DAMIAN [Thu, 5 Dec 2013 14:34:55 +0000 (14:34 +0000)] 
toaster: Add more information for tasks in Simple UI

This patch adds more information about Tasks in the Simple UI:
* all local file system information is not listed in a single
column, showing the common relationship
* adding the display for the location of the task source
* we display the work directory for each task

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoaster: add pagination to the Simple UI
Alexandru DAMIAN [Thu, 5 Dec 2013 14:20:36 +0000 (14:20 +0000)] 
toaster: add pagination to the Simple UI

In an effort to make the Simple UI more usable and
reponsive, this patch adds pagination support for the
pages with lots of entries: Builds, Configuration and
Tasks.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoaster: migrate orm models to South
Alexandru DAMIAN [Tue, 3 Dec 2013 12:51:04 +0000 (12:51 +0000)] 
toaster: migrate orm models to South

As Toaster advances, database schema alteration
will force users to delete old versions and lose
all data collected.

In order to prevent this, and to allow database
updates to happen without having to delete old data,
we use South to handle migrations for the ORM
application which stores the Toaster data.

    [YOCTO #5559]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoaster: update to Django 1.5
Alexandru DAMIAN [Mon, 2 Dec 2013 15:58:31 +0000 (15:58 +0000)] 
toaster: update to Django 1.5

In order to remain up to date with the relevant technologies,
Toaster is updated with this patch to Django 1.5. This also
makes headways to allow usage of emerging
Django-related technologies.

Changes include the startup script Django version check, usage
of TemplateView instead of deprecated simple function to do
redirects, and update to the new form of the _url_ template tag.

Support for Django 1.4.5 is now deprecated.

    [YOCTO #5558]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoasterui: do not link non-image targets
Alexandru DAMIAN [Mon, 2 Dec 2013 15:32:44 +0000 (15:32 +0000)] 
toasterui: do not link non-image targets

In the Simple UI, builds table, targets that are images
have link to the list of installed packages.

There is no point in having links enabled for the non-image
targets, so we don't link in this case.

    [YOCTO #5366]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoasterui: fix version numbers for no PE specified
Alexandru DAMIAN [Mon, 2 Dec 2013 14:39:15 +0000 (14:39 +0000)] 
toasterui: fix version numbers for no PE specified

PE is an optional field in recipes specifiying the epoch
for the recipe. The canonical form for the
full recipe version string is: PE:PV-PR

If no PE is specified, we shouldn't store the initial ":"
character, as it leads to inconsistency with how the
version string is used elsewhere. This patch drops the leading ":"

    [YOCTO #5459]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoaster: change package storage model
Alexandru DAMIAN [Tue, 26 Nov 2013 18:12:43 +0000 (18:12 +0000)] 
toaster: change package storage model

Up until this patch, package information lived in two
places - one table for build packages and one table for
target installed packaged. This situation leads to
two problems: there is no direct link between a build
package and a installed package, and a lot of data is duplicated.

This change unifies all package types in a single table.
The SimpleUI remains the same for continuity sake,
but the REST API will be changed in a future patch.

The package dependencies and package files are now
kept in a single table.

Since we collect target installed package information at all times,
we need to expand it to supplement missing information if a
package is not actually built in the current build.

Small changes to the Simple UI reflect the updated database schema.

    [YOCTO #5565]
    [YOCTO #5269]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoaster: update build stats reading
Alexandru DAMIAN [Wed, 27 Nov 2013 16:38:29 +0000 (16:38 +0000)] 
toaster: update build stats reading

In the processes of removing local system accesses
from toaster UI, we remove the build stats
code that was moved to toaster.bbclass, and
adapt the database writing code to read the data
from BuildStatsList event sent by the toaster.bbclass

    [YOCTO #5604]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoaster: move layer information reading code
Alexandru DAMIAN [Wed, 27 Nov 2013 13:56:19 +0000 (13:56 +0000)] 
toaster: move layer information reading code

In the processes of removing local system accesses
from toaster UI, we remove the layer data reading
code that was moved to toaster.bbclass, and
adapt the database writing code to read the data
from event sent by the toaster.bbclass

    [YOCTO #5604]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoaster: remove Author field in SimpleUI
Alexandru DAMIAN [Thu, 21 Nov 2013 11:47:44 +0000 (11:47 +0000)] 
toaster: remove Author field in SimpleUI

Removes a left-over Author field in the Simple UI
recipe page.

    [YOCTO #5449]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agotoaster: Analysis API variablehistory update
Alexandru DAMIAN [Mon, 18 Nov 2013 12:43:18 +0000 (12:43 +0000)] 
toaster: Analysis API variablehistory update

This patch updates the Analysis REST API to expose
the variablehistory information. A UI tool can query
this API to get a picture on how a variable value got
to its final form.

The documentation for VariableHistory is updated on
Wiki https://wiki.yoctoproject.org/wiki/Analysis_REST_API_Contracts

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
12 years agodata: Ensure we add the contains keys in a particular order
Richard Purdie [Mon, 9 Dec 2013 10:18:31 +0000 (10:18 +0000)] 
data: Ensure we add the contains keys in a particular order

If we don't sort the data, the values can reorder changing the
signatures meaning we get confused builds and significant cache
misses.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2/git: Ensure check is made in the correct directory
Richard Purdie [Fri, 6 Dec 2013 14:08:46 +0000 (14:08 +0000)] 
fetch2/git: Ensure check is made in the correct directory

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agotoaster: exclude "set in documentation.conf" from variable history
Cristiana Voicu [Wed, 4 Dec 2013 13:58:06 +0000 (15:58 +0200)] 
toaster: exclude "set in documentation.conf" from variable history

That has no impact on the builds themselves, so we should just
remove that line from the variable history.

[YOCTO #5561]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: changes to INHERIT var should use "append" operation
Cristiana Voicu [Thu, 5 Dec 2013 14:09:15 +0000 (16:09 +0200)] 
hob: changes to INHERIT var should use "append" operation

Setting INHERIT var means to remove other operations made on INHERIT.
This is too intrusive, so we decided to use append for this case.

[YOCTO #5448]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agofetch2/git: Add sanity check to ensure we really did fetch the correct revisions
Richard Purdie [Thu, 5 Dec 2013 15:21:38 +0000 (15:21 +0000)] 
fetch2/git: Add sanity check to ensure we really did fetch the correct revisions

The fetcher made the rather bold assumption that if it fetched from the upstream,
the revisions were present and correct. These checks are fast and ensure that
really is the case. The avoids accidental network accessed and missing
branch configuration problems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agoHob: check if warnings are related to package build
Valentin Popa [Tue, 3 Dec 2013 15:52:58 +0000 (17:52 +0200)] 
Hob: check if warnings are related to package build

If warnings come from recipes parsing
and not from package build, 'parent' object
will be None; so don't update the color for it.

[YOCTO #5621]

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: fix package property dialog for changes to FILES_INFO
Paul Eggleton [Mon, 2 Dec 2013 18:58:47 +0000 (18:58 +0000)] 
hob: fix package property dialog for changes to FILES_INFO

The FILES_INFO structure is now much simpler, so remove all of the
horrible mangling we had to do here in order to read it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agohob: name package files list variables appropriately
Paul Eggleton [Mon, 2 Dec 2013 18:58:46 +0000 (18:58 +0000)] 
hob: name package files list variables appropriately

This treeview code was obviously copy-pasted from one of the config
dialogs and the variables were never renamed. Rename them now to improve
readability.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agolib/bb/ui: handle PKGSIZE change to bytes
Paul Eggleton [Mon, 2 Dec 2013 18:58:45 +0000 (18:58 +0000)] 
lib/bb/ui: handle PKGSIZE change to bytes

PKGSIZE is now in bytes in pkgdata, so we need to treat it as such in
the UI code for Hob / Toaster.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 years agocooker/command/hob: Cleanup configuration init/reset functions and commands
Richard Purdie [Mon, 2 Dec 2013 17:48:40 +0000 (17:48 +0000)] 
cooker/command/hob: Cleanup configuration init/reset functions and commands

initConfigurationData and loadConfigurationData are similar functions, the only
reason for them appears to be to be able to reset the pre/post configuration
files. The current code is confusing and unmaintainable.

Instead this patch creates a new Sync command which allows these to be explicitly
set. The init and load functions can then be merged into one. There is then no
need for a parseConfiguration command, we can simply reset the server to have the
settings take effect.

The reset fuction is not an instant value return and triggers an event so it should
be an Async command, not a sync one.

The number of calls for the set pre/post command is probably higher than it
need be but someone with more familiarity with the hob code base can probably
figure out the right places its needed (maybe just init_cooker?).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>