bitbake.git
10 years agobin/bitbake: Add import server
Richard Purdie [Fri, 22 Jan 2010 09:00:44 +0000 (09:00 +0000)]
bin/bitbake: Add import server

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agocooker: Drop unneeded import
Richard Purdie [Fri, 22 Jan 2010 00:04:24 +0000 (00:04 +0000)]
cooker: Drop unneeded import

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agobbimage: Drop, nobody should be using that now as its pointless
Richard Purdie [Thu, 21 Jan 2010 23:53:43 +0000 (23:53 +0000)]
bbimage: Drop, nobody should be using that now as its pointless

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agobitbake: Fix UI failure exception handling with python 2.6
Richard Purdie [Thu, 21 Jan 2010 23:50:22 +0000 (23:50 +0000)]
bitbake: Fix UI failure exception handling with python 2.6

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoknotty: Improve task failure message handling using the uihelper code
Richard Purdie [Thu, 21 Jan 2010 23:50:09 +0000 (23:50 +0000)]
knotty: Improve task failure message handling using the uihelper code

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue.py: Use fcntl to make the worker pipes non-blocking
Richard Purdie [Thu, 21 Jan 2010 23:47:26 +0000 (23:47 +0000)]
runqueue.py: Use fcntl to make the worker pipes non-blocking

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agocontrib/vim: Update with the changes from Ricardo Salveti and other fixes.
Khem Raj [Thu, 21 Jan 2010 22:06:43 +0000 (14:06 -0800)]
contrib/vim: Update with the changes from Ricardo Salveti and other fixes.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agobitbake/event: If the server disappears, we just exit too
Richard Purdie [Thu, 21 Jan 2010 16:00:21 +0000 (16:00 +0000)]
bitbake/event: If the server disappears, we just exit too

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue: When a task fails, make sure the server still processes events from other...
Richard Purdie [Thu, 21 Jan 2010 15:59:16 +0000 (15:59 +0000)]
runqueue: When a task fails, make sure the server still processes events from other workers

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoConfHandler: Fix require vs. include behaviour
Richard Purdie [Thu, 21 Jan 2010 13:14:25 +0000 (13:14 +0000)]
ConfHandler: Fix require vs. include behaviour

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years ago[parser] Move more stuff out the feeder
Holger Freyther [Sun, 17 May 2009 13:56:40 +0000 (15:56 +0200)]
[parser] Move more stuff out the feeder

10 years ago[parse] Move inherit handling to method
Holger Freyther [Sun, 17 May 2009 11:00:42 +0000 (13:00 +0200)]
[parse] Move inherit handling to method

10 years ago[parsers] Move out more functions
Holger Freyther [Sun, 17 May 2009 10:55:18 +0000 (12:55 +0200)]
[parsers] Move out more functions

10 years ago[parser] Move more stuff out to separate methods...
Holger Freyther [Sun, 17 May 2009 10:42:43 +0000 (12:42 +0200)]
[parser] Move more stuff out to separate methods...

10 years ago[parser] Move the handling of a method to a function
Holger Freyther [Sun, 17 May 2009 10:32:36 +0000 (12:32 +0200)]
[parser] Move the handling of a method to a function

We want to convert this into a proper AST. So move all
such operations to methods... Later change them to generate
a node... and create that node from here.

10 years ago[parse] Unify opening a file...
Holger Freyther [Sun, 17 May 2009 04:19:39 +0000 (06:19 +0200)]
[parse] Unify opening a file...

10 years ago[parser] Kill obtain/localpath from the parser
Holger Freyther [Sun, 17 May 2009 04:06:14 +0000 (06:06 +0200)]
[parser] Kill obtain/localpath from the parser

With obtain it was possible to use an existing fetcher to
download a bb or config file. In practive no one has used it
and it was likely broken in regard to depends_cache... Remove
it for now, simplfiy the code.

10 years agousermanual.xml: Add section for ?= var setting.
Theodore A. Roth [Mon, 2 Mar 2009 20:08:09 +0000 (12:08 -0800)]
usermanual.xml: Add section for ?= var setting.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoFix bb.plain and bb.warn function, initial patch from Petri Lehtinen <petri.lehtinen...
Richard Purdie [Thu, 21 Jan 2010 10:44:21 +0000 (10:44 +0000)]
Fix bb.plain and bb.warn function, initial patch from Petri Lehtinen <petri.lehtinen+bitbake-dev@inoi.fi>

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agogit: remove repodir usage after 57b3a9a86bf8c6940187c6a899cedbbbb484884a
Martin Jansa [Sat, 16 Jan 2010 21:58:15 +0000 (22:58 +0100)]
git: remove repodir usage after 57b3a9a86bf8c6940187c6a899cedbbbb484884a

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue: Fix typo
Richard Purdie [Thu, 21 Jan 2010 10:26:32 +0000 (10:26 +0000)]
runqueue: Fix typo

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoImprove BBCLASSEXTEND handling for skipped packages and report better parsing statistics
Richard Purdie [Wed, 20 Jan 2010 12:16:40 +0000 (12:16 +0000)]
Improve BBCLASSEXTEND handling for skipped packages and report better parsing statistics

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agotaskdata: Improve error message if incorrectly formatted tasks are found (from poky)
Richard Purdie [Tue, 19 Jan 2010 15:31:52 +0000 (15:31 +0000)]
taskdata: Improve error message if incorrectly formatted tasks are found (from poky)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agodata_smart.py: Fix error where update-rc.d would not get added to the dependency...
Richard Purdie [Tue, 19 Jan 2010 15:30:22 +0000 (15:30 +0000)]
data_smart.py: Fix error where update-rc.d would not get added to the dependency tree (from Poky)

If there was a variable such as:

X_${Y}_append = "Z" The "Z" would be lost if X_${Y} was unset. This was due to a bug in the renameVar
function used by expandKeys().

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoBBHandler: Only add do_ prefix to tasks if its not already present (from Poky)
Richard Purdie [Tue, 19 Jan 2010 15:29:26 +0000 (15:29 +0000)]
BBHandler: Only add do_ prefix to tasks if its not already present (from Poky)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoproviders: Apply modified version of a patch from Martin Jansa <martin.jansa@gmail...
Richard Purdie [Tue, 19 Jan 2010 15:28:37 +0000 (15:28 +0000)]
providers: Apply modified version of a patch from Martin Jansa <martin.jansa@gmail.com> to allow wildcards at the end of PREFERRED_VERSION strings

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoDrop version requirement to 2.5 apart from XMLRPC mode
Richard Purdie [Tue, 19 Jan 2010 15:07:59 +0000 (15:07 +0000)]
Drop version requirement to 2.5 apart from XMLRPC mode

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agofetch: Add GIT_PROXY_COMMAND to runfetchcmd function
Richard Purdie [Tue, 19 Jan 2010 14:49:50 +0000 (14:49 +0000)]
fetch: Add GIT_PROXY_COMMAND to runfetchcmd function

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agobitdoc: Fixup against recent core changes
Richard Purdie [Tue, 19 Jan 2010 14:49:27 +0000 (14:49 +0000)]
bitdoc: Fixup against recent core changes

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agorunqueue.py: Improve IPC between worker threads and the server allowing proper event...
Richard Purdie [Tue, 19 Jan 2010 13:22:00 +0000 (13:22 +0000)]
runqueue.py: Improve IPC between worker threads and the server allowing proper event handling

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoui: Convert remaining event handlers to use isinstance
Richard Purdie [Tue, 19 Jan 2010 10:27:29 +0000 (10:27 +0000)]
ui: Convert remaining event handlers to use isinstance

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoevent.py: Convert to using pickle for events and isinstance in knotty UI handler
Richard Purdie [Tue, 19 Jan 2010 09:56:25 +0000 (09:56 +0000)]
event.py: Convert to using pickle for events and isinstance in knotty UI handler

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoserver/xmlrpc: Fix idle timeout handling and missing parameter
Richard Purdie [Tue, 19 Jan 2010 09:55:21 +0000 (09:55 +0000)]
server/xmlrpc: Fix idle timeout handling and missing parameter

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoevent.py: Drop unused events
Richard Purdie [Tue, 19 Jan 2010 09:53:51 +0000 (09:53 +0000)]
event.py: Drop unused events

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoevent.py: Pass the datastore to the fire command, don't build it into events
Richard Purdie [Tue, 19 Jan 2010 09:47:36 +0000 (09:47 +0000)]
event.py: Pass the datastore to the fire command, don't build it into events

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoserver: Improve idle handling timeouts
Richard Purdie [Mon, 18 Jan 2010 22:14:01 +0000 (22:14 +0000)]
server: Improve idle handling timeouts

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoAdd none server type to avoid xmlrpc in the default case
Richard Purdie [Mon, 18 Jan 2010 17:40:10 +0000 (17:40 +0000)]
Add none server type to avoid xmlrpc in the default case

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoMerge branch 'contrib-rday' of ssh://git@git.openembedded.net/bitbake
Richard Purdie [Mon, 18 Jan 2010 11:53:55 +0000 (11:53 +0000)]
Merge branch 'contrib-rday' of ssh://git@git.openembedded.net/bitbake

Conflicts:
doc/bitbake.1

10 years agoFix a couple copy-and-paste errors in fetcher comments.
Robert P. J. Day [Sat, 16 Jan 2010 17:45:39 +0000 (12:45 -0500)]
Fix a couple copy-and-paste errors in fetcher comments.

10 years ago"pserver" is not a valid type for a CVS fetch, it's now a possible
Robert P. J. Day [Sat, 16 Jan 2010 17:37:51 +0000 (12:37 -0500)]
"pserver" is not a valid type for a CVS fetch, it's now a possible
method instead.  This just gets rid of a historical holdover.

10 years agoFix an obvious copy-and-paste error in the documentation for a
Robert P. J. Day [Sat, 16 Jan 2010 09:51:59 +0000 (04:51 -0500)]
Fix an obvious copy-and-paste error in the documentation for a
local fetch, and remove the option for a "patch" type URL, since
patches use a "file" type URL.

10 years agoFix a number of obvious documentation typoes.
Robert P. J. Day [Sat, 16 Jan 2010 09:50:51 +0000 (04:50 -0500)]
Fix a number of obvious documentation typoes.

10 years agoRemove the now-obsolete reference to "bbread".
Robert P. J. Day [Sat, 16 Jan 2010 09:47:33 +0000 (04:47 -0500)]
Remove the now-obsolete reference to "bbread".

10 years agoFix typoes
Robert P. J. Day [Sat, 16 Jan 2010 09:37:55 +0000 (10:37 +0100)]
Fix typoes

10 years agoCorrect a number of misspellings of "seperate".
Robert P. J. Day [Wed, 13 Jan 2010 20:40:40 +0000 (15:40 -0500)]
Correct a number of misspellings of "seperate".

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
10 years agoSolidify server class creation
Richard Purdie [Thu, 14 Jan 2010 18:52:43 +0000 (18:52 +0000)]
Solidify server class creation

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years ago.gitignore: Ignore backup files
Richard Purdie [Fri, 18 Dec 2009 17:41:37 +0000 (17:41 +0000)]
.gitignore: Ignore backup files

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoMove xmlrpcserver.py into lib/bb/server as xmlrpc.py
Richard Purdie [Fri, 18 Dec 2009 17:41:21 +0000 (17:41 +0000)]
Move xmlrpcserver.py into lib/bb/server as xmlrpc.py

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agofetch: Clean up debug
Richard Purdie [Fri, 18 Dec 2009 17:08:41 +0000 (17:08 +0000)]
fetch: Clean up debug

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoEnable --ignore-deps options to access regular expression string
Guo Hongruan [Tue, 15 Dec 2009 09:10:13 +0000 (17:10 +0800)]
Enable --ignore-deps options to access regular expression string

1. Add a function named re_match_strings(target,strings), to match
   target using the string in strings which can be regular expression

10 years agogit: Allow fetching a single subdirectory from a git repository
Paul Eggleton [Mon, 14 Dec 2009 10:15:55 +0000 (10:15 +0000)]
git: Allow fetching a single subdirectory from a git repository

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agofetch/__init__.py: Remove uneeded debug
Richard Purdie [Mon, 14 Dec 2009 09:31:11 +0000 (09:31 +0000)]
fetch/__init__.py: Remove uneeded debug

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agogit.py: Trap empty return values and error (from Poky)
Richard Purdie [Mon, 14 Dec 2009 09:23:56 +0000 (09:23 +0000)]
git.py: Trap empty return values and error (from Poky)

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agofetch/git.py: Add fullclone parameter to allow WORKDIRs to contain full git repositor...
Richard Purdie [Mon, 14 Dec 2009 09:22:27 +0000 (09:22 +0000)]
fetch/git.py: Add fullclone parameter to allow WORKDIRs to contain full git repositories (from Poky)

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agofetch/git.py: Move variable init into the localpath function
Richard Purdie [Mon, 14 Dec 2009 09:20:49 +0000 (09:20 +0000)]
fetch/git.py: Move variable init into the localpath function

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agocooker.py: Fix variable name: targets doesn't exist, should be item
Richard Purdie [Sun, 22 Nov 2009 00:10:08 +0000 (00:10 +0000)]
cooker.py: Fix variable name: targets doesn't exist, should be item

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agofetch/git.py: BB_GIT_CLONE_FOR_SRCREV updates
Richard Purdie [Sun, 22 Nov 2009 00:04:45 +0000 (00:04 +0000)]
fetch/git.py: BB_GIT_CLONE_FOR_SRCREV updates

Based on a patch from Martin Jansa <Martin.Jansa@gmail.com>:

* Add a _sortable_buildindex attribute and return the index separate from
  the revision
* This means the git.py internal cache is no longer needed
* Adds the returned value to the cache so if the mechanism for
  selecting the index changes, the values increase.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agofetch/__init__.py: Replace _sortable_revision_valid attribute with an init call for...
Richard Purdie [Sat, 21 Nov 2009 23:38:18 +0000 (23:38 +0000)]
fetch/__init__.py: Replace _sortable_revision_valid attribute with an init call for fetchers to clean up logic

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoOptional LOCALCOUNT for recipe
Martin Jansa [Tue, 17 Nov 2009 07:24:52 +0000 (08:24 +0100)]
Optional LOCALCOUNT for recipe

* Instead of autoincrement from persistent cache when srcrev is changed.
* Should be used by distributions with multiple builders, where consistent
  PV is needed.
* Can be used instead of PR bump in PVs like this "0.0+${PR}+gitr${SRCPV}"
* BB_LOCALCOUNT_OVERRIDE to enable setting LOCALCOUNT for recipe
* This way LOCALCOUNTs can be specified directly in recipes instead of
  separated distro config (as not all want to use them). And will be
  used only when BB_LOCALCOUNT_OVERRIDE set in distro config.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoutils.py: add special handling for version delimiters
Denys Dmytriyenko [Mon, 12 Oct 2009 04:00:47 +0000 (04:00 +0000)]
utils.py: add special handling for version delimiters

Make version comparison work properly for pre-releases and release-candidates,
when there is an extra suffix in the field, such as:
PV = "2.6.29+2.6.30-rc5-${PR}+gitr${SRCREV}"

More details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/26691

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agofetch/__init__.py: Allow SRC_URI to be overridden in fetcher go() function
Richard Purdie [Fri, 6 Nov 2009 16:34:35 +0000 (16:34 +0000)]
fetch/__init__.py: Allow SRC_URI to be overridden in fetcher go() function

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agoproviders.py: Fix package sorting order to reflect priorities
Chris Conroy [Mon, 21 Sep 2009 20:07:40 +0000 (16:07 -0400)]
providers.py: Fix package sorting order to reflect priorities

I found that the code that sorts packages does not respect the priority
order.

By iterating over sortpkg_pn.keys() instead of pkg_pn.keys(), it
produces the expected order based on the priorities I have set.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agogit.py: Search mirrors for tarballs before fetching, not just local directories
Richard Purdie [Wed, 4 Nov 2009 00:47:09 +0000 (00:47 +0000)]
git.py: Search mirrors for tarballs before fetching, not just local directories

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agofetch/__init__.py: Try and make the sortable_revision code mode readable
Richard Purdie [Wed, 4 Nov 2009 00:42:17 +0000 (00:42 +0000)]
fetch/__init__.py: Try and make the sortable_revision code mode readable

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agoBBHandler.py: Use exec_func, not exec_func_python
Richard Purdie [Tue, 3 Nov 2009 22:19:40 +0000 (22:19 +0000)]
BBHandler.py: Use exec_func, not exec_func_python

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agoImprove anonymous python function handling sp functions use the methodpool and are...
Richard Purdie [Sat, 17 Oct 2009 19:15:21 +0000 (20:15 +0100)]
Improve anonymous python function handling sp functions use the methodpool and are no longer concatenated

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agofetch/svk: Fix up breakage. Evidently nobody uses svk
Richard Purdie [Fri, 23 Oct 2009 09:39:43 +0000 (10:39 +0100)]
fetch/svk: Fix up breakage. Evidently nobody uses svk

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agobuild.py: Make sure the logfile exists before checking its size. Previously this...
Richard Purdie [Fri, 23 Oct 2009 09:25:30 +0000 (10:25 +0100)]
build.py: Make sure the logfile exists before checking its size. Previously this broke upon recursive calls.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoAdd hg fetcher auto revisioning, patch from Carl Simonson <simonsonc@gmail.com>
Richard Purdie [Fri, 23 Oct 2009 09:23:25 +0000 (10:23 +0100)]
Add hg fetcher auto revisioning, patch from Carl Simonson <simonsonc@gmail.com>

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agofetch/__init__.py: Fix a bug where errors could corrupt bitbake internal state wrt...
Richard Purdie [Sat, 17 Oct 2009 18:48:34 +0000 (19:48 +0100)]
fetch/__init__.py: Fix a bug where errors could corrupt bitbake internal state wrt SRCREVINACTION (from Poky)

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agofetch/__init__.py: Remove hardcoded use of SRC_URI - OE.dev was adjusted for this...
Richard Purdie [Sat, 17 Oct 2009 18:46:48 +0000 (19:46 +0100)]
fetch/__init__.py: Remove hardcoded use of SRC_URI - OE.dev was adjusted for this a long time ago (from Poky)

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agoBBHandler: Drop unused internal __functions__ variable
Richard Purdie [Sat, 17 Oct 2009 18:30:34 +0000 (19:30 +0100)]
BBHandler: Drop unused internal __functions__ variable

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agoknotty: Add new event from compare reivions code
Richard Purdie [Sat, 17 Oct 2009 18:29:48 +0000 (19:29 +0100)]
knotty: Add new event from compare reivions code

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agobuild.py: Optimisation to remove zero sized log files (from Poky)
Richard Purdie [Sat, 17 Oct 2009 18:28:35 +0000 (19:28 +0100)]
build.py: Optimisation to remove zero sized log files (from Poky)

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agorunqueue.py: Small optimisation in set creation removing an update call (from Poky)
Richard Purdie [Sat, 17 Oct 2009 18:27:31 +0000 (19:27 +0100)]
runqueue.py: Small optimisation in set creation removing an update call (from Poky)

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agocache.py: Add check for leakage of SRCREVINACTION variable (from Poky)
Richard Purdie [Sat, 17 Oct 2009 18:05:57 +0000 (19:05 +0100)]
cache.py: Add check for leakage of SRCREVINACTION variable (from Poky)

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agoAdd a compare-versions command which returns whether the SRCREV versions have changed...
Richard Purdie [Sat, 17 Oct 2009 18:02:09 +0000 (19:02 +0100)]
Add a compare-versions command which returns whether the SRCREV versions have changed since bitbake was last run (from Poky)

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
10 years agoshell: Add install command
Søren Holm [Thu, 1 Oct 2009 13:23:59 +0000 (15:23 +0200)]
shell: Add install command

Add an install command similiar to the other existing commands.

Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
10 years agocache: only invalidate for non-existent depends if they used to exist.
Chris Larson [Thu, 16 Jul 2009 17:49:49 +0000 (10:49 -0700)]
cache: only invalidate for non-existent depends if they used to exist.

Previously, if a file listed in the cached __depends did not exist, it would
always invalidate the cache.  Now it only does so if the cached version
existed, and the current does not.  In this way, we can support storing
entries in __depends for files which may or may not exist, and ensure that
creating such a file results in cache invalidation.  Specifically, this is for
the amend.inc implementation.

Signed-off-by: Chris Larson <clarson@mvista.com>
10 years agoOnly print python exception tracebacks if debugging is enabled.
Chris Larson [Thu, 10 Sep 2009 18:49:50 +0000 (11:49 -0700)]
Only print python exception tracebacks if debugging is enabled.

Uses sys.excepthook to replace the toplevel exception handler with a version
that obeys the debug level of the 'default' messaging domain.  A non-zero
value there will result in displaying the full traceback.

Signed-off-by: Chris Larson <clarson@mvista.com>
10 years agoAdd a RecipeParsed event, which can be used as an alternative to anonymous functions.
Chris Larson [Sun, 13 Sep 2009 05:42:45 +0000 (22:42 -0700)]
Add a RecipeParsed event, which can be used as an alternative to anonymous functions.

Signed-off-by: Chris Larson <clarson@mvista.com>
10 years agodaemonize: Kill the forcing of umask to 0 in our children.
Chris Larson [Thu, 27 Aug 2009 19:20:10 +0000 (12:20 -0700)]
daemonize: Kill the forcing of umask to 0 in our children.

It forces the daemon umask to the module level UMASK variable, which defaults
to 0, so the bitbake daemons end up with a umask of 0.  Fixed by setting UMASK
to None and making it only run umask when it's not None, so our children will
inherit the parent umask

Signed-off-by: Chris Larson <clarson@mvista.com>
11 years agoInitial switch from distutils to setuptools.
Chris Larson [Wed, 29 Jul 2009 20:26:56 +0000 (13:26 -0700)]
Initial switch from distutils to setuptools.

Signed-off-by: Chris Larson <clarson@kergoth.com>
11 years agoAUTHORS: update my email
Marcin Juszkiewicz [Fri, 24 Jul 2009 18:54:17 +0000 (20:54 +0200)]
AUTHORS: update my email

11 years agocommand/cooker: Remve the need for the cache for -e -b options
Richard Purdie [Thu, 23 Jul 2009 18:51:03 +0000 (19:51 +0100)]
command/cooker: Remve the need for the cache for -e -b options

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
11 years agocommand/cooker: Improve showEnvironment functionality
Richard Purdie [Thu, 23 Jul 2009 18:43:17 +0000 (19:43 +0100)]
command/cooker: Improve showEnvironment functionality

Allow showEnvironment to function without loading the cache by adding
a second caching version.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
11 years agocooker: Fix cooker parser for case where there are no recipes
Richard Purdie [Thu, 23 Jul 2009 18:33:18 +0000 (19:33 +0100)]
cooker: Fix cooker parser for case where there are no recipes

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
11 years agoUpdate the minimal base.bbclass & bitbake.conf.
Chris Larson [Thu, 23 Jul 2009 17:44:55 +0000 (10:44 -0700)]
Update the minimal base.bbclass & bitbake.conf.

I could argue in favor of the removal of these entirely, as their usefulness
is limited, and I've yet to see anyone use bitbake for anything without using
OE as a base.  It's something to consider, anyway, but this at least makes
them parse without complaining.

Signed-off-by: Chris Larson <clarson@mvista.com>
11 years agorunqueue: Improve recursive task dependency calculation speed (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:58:56 +0000 (17:58 +0100)]
runqueue: Improve recursive task dependency calculation speed (from Poky)

At present there is a bottleneck in runqueue in the
get_recursive_tdepends() function which bothers me as we never used to
have it. It appeared when we fixed some correctness issues with the
dependency tree and the code in this area has grown adhoc for too long.

As an example the above function was getting called 500,000 times in my
main test case of building an image. Its particularly problematic in
builds with many recursive dependencies such as 'bitbake world'.

This commit rewrites the problematic function entirely with the
following benefits:

* Replaces the most illegible code in that function with code thats
  easier to understand
* Builds the dependency tree per filename, not per task since we don't
  need it per task which is a performance win
* Improves the documentation in places
* Much faster execution
* Reuses the main dependency tree data, doesn't make its own.

The code functions very differently to the original. Previously the
recursive dependency tree and the main dependency tree were separate. In
this implementation we use the main tree to build the recursive tree
after the main tree has been completed, then inject the dependencies.

Compared with the original this actually inserts small numbers (4 in my
test cases) of additional dependencies into the task graph such as
image_recipe:do_rootfs -> image_recipe:do_package_write_ipk which is
arguably an bug in the existing implementation. I've checked into this,
understand why its happening and believe none of the additional
dependencies should cause any complications.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
11 years agobin/bitbake: Add python 2.6 check (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:56:42 +0000 (17:56 +0100)]
bin/bitbake: Add python 2.6 check (from Poky)

Now we need python 2.6 check for it otherwise bitbake appears to hang.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
11 years agocooker.py: Improve server idle handling (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:53:32 +0000 (17:53 +0100)]
cooker.py: Improve server idle handling (from Poky)

This patch:
  * Uses the xmlrpc timeout controls added in python 2.6 removing the need to
    hack the class instead. The hacking didn't work for 2.6.
  * Converts the parsing function to parse a file per call to the function
  * Allows checking for xmlrpc commands between parsing files allowing the user
    to interrupt parsing.
  * Starts to teach the command queue about command properties such as whether
    they require the cache.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
11 years agoproviders.py: Add caching for the dynamic package regexps (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:48:18 +0000 (17:48 +0100)]
providers.py: Add caching for the dynamic package regexps (from Poky)

Add caching for the dyanmic package regexps which improves task data
performance significantly.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
11 years agoutils.py: Add build_environment function (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:46:20 +0000 (17:46 +0100)]
utils.py: Add build_environment function (from Poky)

Add a function to bring the command environment in sync with the data
dictonary.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
11 years agoui/puccho: Improve path specification to glade files (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:45:22 +0000 (17:45 +0100)]
ui/puccho: Improve path specification to glade files (from Poky)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
11 years agoAdd .gitignore, ignore *.pyc.
Chris Larson [Wed, 22 Jul 2009 18:12:27 +0000 (11:12 -0700)]
Add .gitignore, ignore *.pyc.

Signed-off-by: Chris Larson <clarson@mvista.com>
11 years agotaskdata: fix a possible infinite loop when multiple eligible providers aren't buildable
Chris Larson [Fri, 17 Jul 2009 22:26:45 +0000 (15:26 -0700)]
taskdata: fix a possible infinite loop when multiple eligible providers aren't buildable

The code which removes providers which aren't buildable from the eligible list
modifies the list while iterating it, resulting in skipping some entries.  If
the list contained two failed providers in sequence, it left the second behind
in the eligible list.

Fixed by replacing the block with a list comprehension that constructs a new
eligible list without the failed entries.

Signed-off-by: Chris Larson <clarson@mvista.com>
11 years agoMerge the BBCLASSEXTEND code from Poky. This allows once recipe to provide mutliple...
Richard Purdie [Fri, 19 Jun 2009 10:30:15 +0000 (10:30 +0000)]
Merge the BBCLASSEXTEND code from Poky. This allows once recipe to provide mutliple targets (e.g. -native and -sdk) and has been discussed on the OE mailing list

11 years agoproviders.py: Fix + character escaping from PACKAGES_DYNAMIC (thanks Otavio Salvador)
Richard Purdie [Tue, 12 May 2009 14:29:20 +0000 (14:29 +0000)]
providers.py: Fix + character escaping from PACKAGES_DYNAMIC (thanks Otavio Salvador)

11 years agodata.py: Make sure allowed variables inherited from the environment are exported...
Richard Purdie [Mon, 11 May 2009 21:49:13 +0000 (21:49 +0000)]
data.py: Make sure allowed variables inherited from the environment are exported again (from Poky)
shell.py: When running a stage task in bbshell, run populate_staging, not the stage task (from Poky)

11 years agofetch/__init__.py: Set HOME environmental variable when running fetcher commands...
Richard Purdie [Mon, 11 May 2009 21:33:14 +0000 (21:33 +0000)]
fetch/__init__.py: Set HOME environmental variable when running fetcher commands (from Poky)