]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
14 years agorunqueue: pass task hash information to tasks
Richard Purdie [Mon, 27 Sep 2010 14:57:13 +0000 (15:57 +0100)] 
runqueue: pass task hash information to tasks

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agorunqueue: avoid unnecessary delays
Richard Purdie [Mon, 13 Sep 2010 15:57:13 +0000 (16:57 +0100)] 
runqueue: avoid unnecessary delays

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoImplement task signatures
Richard Purdie [Tue, 31 Aug 2010 13:49:43 +0000 (14:49 +0100)] 
Implement task signatures

Includes functionality to find out what changes between two different
signature data dumps.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agodata: Add emit_func and generate_dependencies
Richard Purdie [Tue, 3 Aug 2010 13:30:20 +0000 (14:30 +0100)] 
data: Add emit_func and generate_dependencies

These functions allow generation of dependency data between functions and
variables allowing moves to be made towards generating checksums and allowing
use of the dependency information in other parts of bitbake.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agocodeparser: Implement persistent cache
Richard Purdie [Tue, 31 Aug 2010 13:19:22 +0000 (14:19 +0100)] 
codeparser: Implement persistent cache

For a given input to this code, the output doesn't change to implement a persistent
cache of the data to speed up parsing.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agodata_smart: track variable references
Richard Purdie [Wed, 25 Aug 2010 13:26:37 +0000 (14:26 +0100)] 
data_smart: track variable references

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agocodeparser: add module for parsing shell/python
Richard Purdie [Mon, 2 Aug 2010 09:20:20 +0000 (10:20 +0100)] 
codeparser: add module for parsing shell/python

This commit is derived from Chris Larson's checksum work, turned into a
standalone piece of code for parsing python and shell functions.

The deindent code has been replaced with code to work around indentation
for speed. The original NodeVisitor in the ast was replaced with a faster
class walk call.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agorunqueue: implement scenequeue
Richard Purdie [Thu, 19 Aug 2010 10:36:29 +0000 (11:36 +0100)] 
runqueue: implement scenequeue

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agofetch: add SRC_URI checksum
Yu Ke [Fri, 17 Dec 2010 05:52:52 +0000 (13:52 +0800)] 
fetch: add SRC_URI checksum

This patch adds per-recipe SRC_URI checksum verification.

- SRC_URI format
The format of SRC_URI checksum follow OE definition:

1. SRC_URI has single src
SRC_URI = "http://some.domain/file.tar.gz"
SRC_URI[md5sum] = "xxxxxxxxxxxxxxx"
SRC_URI[sha256sum] = "xxxxxxxxxxxxxxxxxxxxxx"

2. SRC_URI has multiple src, every src need specify name
SRC_URI = "http://some.domain/file1.tar.gz;name=name1 \
           http://some.domain/file2.tar.gz;name=name2 "
SRC_URI[name1.md5sum] = "xxxxxxxxxxxxxxx"
SRC_URI[name1.sha256sum] = "xxxxxxxxxxxxxxxxxxxxxx"
SRC_URI[name2.md5sum] = "xxxxxxxxxxxxxxx"
SRC_URI[name2.sha256sum] = "xxxxxxxxxxxxxxxxxxxxxx"

- SRC_URI checking invocation:
the checksum checking is invoked in do_fetch phase,
so it can be invoked manually by

if recipes has no SRC_URI checksum item, bitbake will show warning:
"
WARNING: Missing SRC_URI checksum for xxxx.tar.gz, consider to add
SRC_URI[md5sum] = "5c69f16d452b0bb3d44bc3c10556c072"
SRC_URI[sha256sum] = "f4e0ada8d4d516bbb8600a3ee7d9046c9c79e38cd781df9ffc46d8f16acd1768"
"
thus recipe author can add it to recpie file after SRC_URI

- control variable BB_STRICT_CHECKSUM
when SRC_URI checksum is missing, this variable decide pass or not
if BB_STRICT_CHECKSUM = "1", missing checksum is fatal

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoprocess: fix handling of the input argument
Chris Larson [Thu, 30 Dec 2010 06:44:21 +0000 (23:44 -0700)] 
process: fix handling of the input argument

When using a logfile, we weren't sending input to the child process.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agofetch: handle no sortable_buildindex for git
Chris Larson [Thu, 30 Dec 2010 01:39:50 +0000 (18:39 -0700)] 
fetch: handle no sortable_buildindex for git

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoutils: kill unnecessary duplicated chmod
Chris Larson [Thu, 30 Dec 2010 00:52:54 +0000 (17:52 -0700)] 
utils: kill unnecessary duplicated chmod

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agofetch: fix git rev key compat for sortable
Chris Larson [Wed, 29 Dec 2010 23:46:21 +0000 (16:46 -0700)] 
fetch: fix git rev key compat for sortable

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobb.debug: handle caller not passing a debug level
Chris Larson [Tue, 28 Dec 2010 17:02:49 +0000 (10:02 -0700)] 
bb.debug: handle caller not passing a debug level

This is a compatibility measure, as previous versions did not error out when
this occurred, and will most likely be dropped in the next bitbake minor
version in favor of a fatal error.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agofetch: resurrect branch inclusion in git revision key
Chris Larson [Wed, 29 Dec 2010 23:23:14 +0000 (16:23 -0700)] 
fetch: resurrect branch inclusion in git revision key

This is similar to Richard Purdie's commit, but falls back to checking the
persist_data database for the old key if the new does not exist, so as to
retain compatibility for at least one bitbake minor version.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agofetch: Ensure SRCREV is still set correctly if the pn-X override has been expanded
Richard Purdie [Sat, 9 Oct 2010 16:24:16 +0000 (17:24 +0100)] 
fetch: Ensure SRCREV is still set correctly if the pn-X override has been expanded

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agofetch: Fix named SRCREVS variable name ordering
Richard Purdie [Thu, 9 Sep 2010 14:09:50 +0000 (15:09 +0100)] 
fetch: Fix named SRCREVS variable name ordering

Retains backward compatibility.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agobuild: fix empty function execution
Chris Larson [Wed, 29 Dec 2010 00:23:34 +0000 (17:23 -0700)] 
build: fix empty function execution

- If the function is empty *or* unset, don't exec it.
- If the function is unset, warn.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: work around do_clean issue by creating T in exec_func
Chris Larson [Tue, 28 Dec 2010 17:29:04 +0000 (10:29 -0700)] 
build: work around do_clean issue by creating T in exec_func

In some repositories (e.g. poky), do_clean removes WORKDIR, then uses
exec_func, which expects T to exist, so let's make sure it does.  I think its
fair to assume that the runfile dir exists in exec_func, so this is a
temporary measure.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: allow creation of FuncFailed with no function name
Chris Larson [Tue, 28 Dec 2010 17:28:32 +0000 (10:28 -0700)] 
build: allow creation of FuncFailed with no function name

This is only for compatibility, and will likely be dropped after this next
bitbake release.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: only warn about unset functions, not empty ones
Chris Larson [Tue, 28 Dec 2010 17:31:55 +0000 (10:31 -0700)] 
build: only warn about unset functions, not empty ones

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agopersist_data: unbork the resurrect of select lock wait
Chris Larson [Fri, 24 Dec 2010 02:29:50 +0000 (19:29 -0700)] 
persist_data: unbork the resurrect of select lock wait

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agodata_smart: don't include functions in name lookups
Chris Larson [Fri, 24 Dec 2010 02:22:21 +0000 (19:22 -0700)] 
data_smart: don't include functions in name lookups

For raw name lookups in python snippets, don't return the values for functions
in the metadata.  This was necessary to fix issues once the methodpool
functions get added to the metadata.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agorunqueue: simplify next buildable task
Chris Larson [Fri, 24 Dec 2010 00:04:07 +0000 (17:04 -0700)] 
runqueue: simplify next buildable task

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agopersist_data: resurrect the lock wait for selects
Chris Larson [Thu, 23 Dec 2010 17:36:39 +0000 (10:36 -0700)] 
persist_data: resurrect the lock wait for selects

Think this got inadvertantly dropped when switching to the new API.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoMerge remote branch 'foerster/depexp-sorting'
Chris Larson [Wed, 22 Dec 2010 22:14:01 +0000 (15:14 -0700)] 
Merge remote branch 'foerster/depexp-sorting'

* foerster/depexp-sorting:
  depexp: add sorting of all package lists

14 years agobuild: pass the correct filename to better_{compile,exec}
Chris Larson [Wed, 22 Dec 2010 19:07:09 +0000 (12:07 -0700)] 
build: pass the correct filename to better_{compile,exec}

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoutils: show the actual exception in better_exec
Chris Larson [Wed, 22 Dec 2010 19:06:54 +0000 (12:06 -0700)] 
utils: show the actual exception in better_exec

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agopysh: add missing os.path import
Chris Larson [Wed, 22 Dec 2010 18:00:43 +0000 (11:00 -0700)] 
pysh: add missing os.path import

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agodata_smart: handle None values in expandVarrefs
Chris Larson [Wed, 22 Dec 2010 18:00:22 +0000 (11:00 -0700)] 
data_smart: handle None values in expandVarrefs

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agorunqueue: fix typo in documentation of calculate_task_weights
Bernhard Reutner-Fischer [Wed, 22 Dec 2010 15:41:32 +0000 (16:41 +0100)] 
runqueue: fix typo in documentation of calculate_task_weights

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobitbake/runqueue.py: Ensure rqexe always exists and that empty task lists cause a...
Richard Purdie [Tue, 24 Aug 2010 23:58:23 +0000 (00:58 +0100)] 
bitbake/runqueue.py: Ensure rqexe always exists and that empty task lists cause a graceful exit

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agodepexp: add sorting of all package lists
Bob Foerster [Tue, 21 Dec 2010 13:12:21 +0000 (08:12 -0500)] 
depexp: add sorting of all package lists

Without sorting, it's very difficult to find the information you're
looking for.  Now, the lists are all sorted alphabetically for easy
viewing.

Signed-off-by: Bob Foerster <robert@erafx.com>
14 years agoUse os.devnull, not /dev/null
Chris Larson [Mon, 20 Dec 2010 02:30:49 +0000 (19:30 -0700)] 
Use os.devnull, not /dev/null

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoshell: remove
Chris Larson [Sat, 18 Dec 2010 17:57:12 +0000 (10:57 -0700)] 
shell: remove

bb.shell is unused and incompatible with current bitbake.  We can resurrect it
in a more functional form when we add the text input to the goggle and ncurses
UIs.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoRevert "server: kill stdin/stdout/stderr"
Chris Larson [Sat, 18 Dec 2010 17:49:15 +0000 (10:49 -0700)] 
Revert "server: kill stdin/stdout/stderr"

This is a useful thing, but requires that tasks behave correctly, sending
their output via the usual bitbake messaging mechanisms, rather than via
stdout.  We'll postpone this until after the release.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoserver: fix NULL file mode
Chris Larson [Sat, 18 Dec 2010 17:22:43 +0000 (10:22 -0700)] 
server: fix NULL file mode

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: Add support for pre and postfuncs for tasks
Richard Purdie [Wed, 4 Aug 2010 10:30:39 +0000 (11:30 +0100)] 
build: Add support for pre and postfuncs for tasks

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoserver: drop none and xmlrpc
Chris Larson [Fri, 17 Dec 2010 21:35:36 +0000 (14:35 -0700)] 
server: drop none and xmlrpc

These are no longer used, and are no longer compatible with the current UIs.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoutils: Allow copyfile to copy files which aren't readable
Richard Purdie [Fri, 20 Aug 2010 14:11:44 +0000 (15:11 +0100)] 
utils: Allow copyfile to copy files which aren't readable

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agorunqueue: use fewer newlines in error path
Bernhard Reutner-Fischer [Fri, 17 Dec 2010 21:56:08 +0000 (22:56 +0100)] 
runqueue: use fewer newlines in error path

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agologger usage cleanup
Chris Larson [Fri, 17 Dec 2010 21:46:41 +0000 (14:46 -0700)] 
logger usage cleanup

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agorunqueue: kill pre-server-ui-split remnant
Chris Larson [Fri, 17 Dec 2010 21:46:55 +0000 (14:46 -0700)] 
runqueue: kill pre-server-ui-split remnant

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoutils: fix typo in error message
Bernhard Reutner-Fischer [Fri, 17 Dec 2010 20:18:00 +0000 (21:18 +0100)] 
utils: fix typo in error message

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobitbake.conf: use bb.utils.which
Bernhard Reutner-Fischer [Fri, 17 Dec 2010 19:55:51 +0000 (20:55 +0100)] 
bitbake.conf: use bb.utils.which

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobitbake/utils.py: Ensure the last lines of functions are printed in tracebacks
Richard Purdie [Sun, 5 Dec 2010 22:51:38 +0000 (22:51 +0000)] 
bitbake/utils.py: Ensure the last lines of functions are printed in tracebacks

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agobitbake/utils.py: Improve traceback to be more helpful/clear to users
Richard Purdie [Sun, 5 Dec 2010 22:52:44 +0000 (22:52 +0000)] 
bitbake/utils.py: Improve traceback to be more helpful/clear to users

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoTimeout UI runCommand calls if server doesn't respond (or dies)
Bob Foerster [Fri, 17 Dec 2010 19:06:57 +0000 (03:06 +0800)] 
Timeout UI runCommand calls if server doesn't respond (or dies)

Signed-off-by: Bob Foerster <robert@erafx.com>
14 years agoMove LAYERDIR expansion hack into DataSmart
Chris Larson [Fri, 17 Dec 2010 19:15:48 +0000 (12:15 -0700)] 
Move LAYERDIR expansion hack into DataSmart

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoparse: use bb.utils.which
Chris Larson [Fri, 17 Dec 2010 18:54:09 +0000 (11:54 -0700)] 
parse: use bb.utils.which

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoUpdate persist_data usage to the new API
Chris Larson [Fri, 17 Dec 2010 18:53:54 +0000 (11:53 -0700)] 
Update persist_data usage to the new API

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoRevert "build: stop injecting os/bb into __builtins__"
Chris Larson [Fri, 17 Dec 2010 19:13:28 +0000 (12:13 -0700)] 
Revert "build: stop injecting os/bb into __builtins__"

Temporary revert, will resurrect.

This reverts commit 566657c13de3fefb5043b71de953fb805799da95.

14 years agoFix logging level names for post-server-ui-split
Chris Larson [Fri, 17 Dec 2010 18:49:31 +0000 (11:49 -0700)] 
Fix logging level names for post-server-ui-split

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: fix file mode for /dev/null
Chris Larson [Fri, 17 Dec 2010 18:01:51 +0000 (11:01 -0700)] 
build: fix file mode for /dev/null

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobitbake/utils.py: Improve traceback to be more helpful/clear to users
Richard Purdie [Sun, 5 Dec 2010 22:52:44 +0000 (22:52 +0000)] 
bitbake/utils.py: Improve traceback to be more helpful/clear to users

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agobitbake/utils.py: Ensure the last lines of functions are printed in tracebacks
Richard Purdie [Sun, 5 Dec 2010 22:51:38 +0000 (22:51 +0000)] 
bitbake/utils.py: Ensure the last lines of functions are printed in tracebacks

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agobuild: stop injecting os/bb into __builtins__
Chris Larson [Fri, 17 Dec 2010 15:28:25 +0000 (08:28 -0700)] 
build: stop injecting os/bb into __builtins__

For one, we should be able to avoid this via _context in bb.utils.  For two,
__builtins__ only has to exist for CPython, so this causes problems running
bitbake under other python implementations (though we could change to doing
setattr()s against the __builtin__ module, let's avoid this instead).

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobin/bitbake: [HACK] Empty ui event queue on shutdown
Chris Larson [Fri, 17 Dec 2010 16:12:46 +0000 (10:12 -0600)] 
bin/bitbake: [HACK] Empty ui event queue on shutdown

This is a workaround to ensure the user always sees any queued up log
messages, even if the UI has shut down without showing them.  This is far from
ideal.  The correct fix is to alter the UIs to shut down more cleanly,
ensuring they display any remaining queued up events to the user before they
exit.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoEnsure LogHandler is set up for the server construction
Chris Larson [Fri, 17 Dec 2010 16:13:18 +0000 (10:13 -0600)] 
Ensure LogHandler is set up for the server construction

If we add the LogHandler object in the server.main, rather than earlier, any
log messages emitted during the construction of the server (and, therefore,
during the construction of the cooker) will not be seen.  This includes the
error(s) which the cooker can emit when parsing the command line.  With this,
we again see the error if you try to use -g without specifying a recipe to
operate against.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agocooker: ensure parseCommandLine can get BBPKGS
Chris Larson [Fri, 17 Dec 2010 16:22:43 +0000 (10:22 -0600)] 
cooker: ensure parseCommandLine can get BBPKGS

Without this, one can't use BBPKGS with bitbake -g, for example.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoResurrect alternative UIs
Bob Foerster [Fri, 17 Dec 2010 15:20:39 +0000 (23:20 +0800)] 
Resurrect alternative UIs

The various alternative UIs have been updated to once again be functional
with the latest bitbake internals.  Each of the UIs still have much room for
functional improvement.

In particular, they have been updated to:
 - interact with the new process based server
 - handle the current set of events and notifications fired from the server
   and its associated subsystems

Signed-off-by: Bob Foerster <robert@erafx.com>
14 years agoutils: don't overwrite builtin dir() function
Bernhard Reutner-Fischer [Fri, 17 Dec 2010 11:29:49 +0000 (12:29 +0100)] 
utils: don't overwrite builtin dir() function

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobzr: use utils.remove instead of os.system
Bernhard Reutner-Fischer [Fri, 17 Dec 2010 11:26:35 +0000 (12:26 +0100)] 
bzr: use utils.remove instead of os.system

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agobuild: use utils.remove instead of os.system
Bernhard Reutner-Fischer [Fri, 17 Dec 2010 11:25:53 +0000 (12:25 +0100)] 
build: use utils.remove instead of os.system

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
14 years agoutils: drop unnecessary debug msgs from mkdirhier
Chris Larson [Thu, 16 Dec 2010 19:18:31 +0000 (12:18 -0700)] 
utils: drop unnecessary debug msgs from mkdirhier

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoForcibly shut down the server if the UI is terminated
Chris Larson [Thu, 16 Dec 2010 15:38:57 +0000 (08:38 -0700)] 
Forcibly shut down the server if the UI is terminated

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoserver: ensure the cooker is stopped when shutting down
Chris Larson [Thu, 16 Dec 2010 15:50:31 +0000 (08:50 -0700)] 
server: ensure the cooker is stopped when shutting down

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoserver: kill stdin/stdout/stderr
Chris Larson [Fri, 10 Dec 2010 17:37:11 +0000 (10:37 -0700)] 
server: kill stdin/stdout/stderr

This ensures that nothing run from the server can touch the console, in
particular event handlers and python tasks, both of which can use bb.msg or
the bitbake loggers to send output to the UI in a correct fashion instead.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoserver: fix interrupt handling for process
Bob Foerster [Fri, 26 Nov 2010 21:15:36 +0000 (16:15 -0500)] 
server: fix interrupt handling for process

SIGINT is now blocked within the server context, thus allowing the UI to fully
handle all user interaction.  There is no longer a need to check for
KeyboardInterrupt Exceptions anywhere within the server context.

Signed-off-by: Bob Foerster <robert@erafx.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoShow the user progress when loading the cache
Bob Foerster [Mon, 22 Nov 2010 15:13:56 +0000 (10:13 -0500)] 
Show the user progress when loading the cache

Signed-off-by: Bob Foerster <robert@erafx.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoRun the server and UI in separate processes
Bob Foerster [Wed, 24 Nov 2010 17:53:12 +0000 (12:53 -0500)] 
Run the server and UI in separate processes

This uses the python multiprocessing module, both to spawn the server process
and for communication between the processes.

Signed-off-by: Bob Foerster <robert@erafx.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agocooker: fix remnant rq/rqdata issue from poky sync
Chris Larson [Thu, 16 Dec 2010 17:39:21 +0000 (10:39 -0700)] 
cooker: fix remnant rq/rqdata issue from poky sync

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoRevert "build: kill stdout in python functions"
Chris Larson [Thu, 16 Dec 2010 14:51:53 +0000 (07:51 -0700)] 
Revert "build: kill stdout in python functions"

We have a better solution for this on the separate-ui-and-server branch, so
this version is no longer necessary.

This reverts commit 20929afdd87e5124891f121c3640aa9efa368c2c.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agorunqueue: fix remnant rq/rqdata reference from poky sync
Chris Larson [Thu, 16 Dec 2010 14:51:05 +0000 (07:51 -0700)] 
runqueue: fix remnant rq/rqdata reference from poky sync

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoknotty: exit with 1 if we see a critical log message
Chris Larson [Wed, 15 Dec 2010 20:50:28 +0000 (13:50 -0700)] 
knotty: exit with 1 if we see a critical log message

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agocooker: don't swallow recipe parse errors
Chris Larson [Thu, 16 Dec 2010 05:07:38 +0000 (22:07 -0700)] 
cooker: don't swallow recipe parse errors

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agorunqueue: resurrect the fix in 90c2b6c
Chris Larson [Thu, 16 Dec 2010 01:30:07 +0000 (18:30 -0700)] 
runqueue: resurrect the fix in 90c2b6c

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: fix log file display
Chris Larson [Thu, 16 Dec 2010 01:28:52 +0000 (18:28 -0700)] 
build: fix log file display

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agomanual: document scmdata=keep for CVS, SVN and Git
Andreas Oberritter [Thu, 9 Dec 2010 21:22:11 +0000 (21:22 +0000)] 
manual: document scmdata=keep for CVS, SVN and Git

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agofetchers: Add parameter scmdata=keep to include .git/ and others in generated tarballs.
Andreas Oberritter [Wed, 8 Dec 2010 13:38:23 +0000 (13:38 +0000)] 
fetchers: Add parameter scmdata=keep to include .git/ and others in generated tarballs.

* Allows generating version information from SCMs during build.
* Note that tar doesn't need to use --exclude '.git', because
  git checkout-index doesn't clone the repository.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: fix FuncFailed for the no logfile case
Chris Larson [Wed, 15 Dec 2010 22:35:13 +0000 (15:35 -0700)] 
build: fix FuncFailed for the no logfile case

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoprocess: handle OSErrors other than file not found
Chris Larson [Wed, 15 Dec 2010 22:13:07 +0000 (15:13 -0700)] 
process: handle OSErrors other than file not found

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: write logfiles per task, not per function
Chris Larson [Wed, 15 Dec 2010 21:55:04 +0000 (14:55 -0700)] 
build: write logfiles per task, not per function

Based on d14f9bf6 from poky, reworked for master and other cleanup.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agodata_smart: add optional expansion to getVarFlag()
Paul Eggleton [Fri, 10 Dec 2010 15:30:30 +0000 (15:30 +0000)] 
data_smart: add optional expansion to getVarFlag()

Add a parameter to getVarFlag() to auto-expand the value of the flag. This
makes getVarFlag() more consistent with getVar(), and allows expansion of
vardeps and vardepsexclude (which has been done in this commit).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
14 years agobuild: fix copy/paste thinko regarding LC_ALL
Chris Larson [Wed, 15 Dec 2010 15:41:52 +0000 (08:41 -0700)] 
build: fix copy/paste thinko regarding LC_ALL

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agorunqueue: fix check_stamp_task call in chck_stamp_fn
Chris Larson [Wed, 15 Dec 2010 02:08:06 +0000 (21:08 -0500)] 
runqueue: fix check_stamp_task call in chck_stamp_fn

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agorunqueue: fix a get_task_id call
Chris Larson [Wed, 15 Dec 2010 01:42:23 +0000 (20:42 -0500)] 
runqueue: fix a get_task_id call

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: ensure LogTee has a valid name property
Chris Larson [Tue, 14 Dec 2010 16:25:58 +0000 (09:25 -0700)] 
build: ensure LogTee has a valid name property

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: fix -D with shell functions
Chris Larson [Tue, 14 Dec 2010 16:20:33 +0000 (09:20 -0700)] 
build: fix -D with shell functions

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoFix PWD issue with new exec_func_shell
Chris Larson [Tue, 14 Dec 2010 15:10:36 +0000 (08:10 -0700)] 
Fix PWD issue with new exec_func_shell

The previous attempt was incorrect.  The issue isn't that subprocess fails to
set PWD, it's that PWD is in the metadata, inherited from the environment, and
is re-exported, overwriting the actual accurate one in the shell environment
with the old one from the metadata.  So, ensure that PWD in the metadata is
not exported.

We can ditch this when the environment handling is reworked (e.g. poky's
commit to do so).

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoEnsure that the invalid UI error goes to stderr
Chris Larson [Mon, 13 Dec 2010 23:24:14 +0000 (16:24 -0700)] 
Ensure that the invalid UI error goes to stderr

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: set PWD in the subprocess preexec hook
Chris Larson [Mon, 13 Dec 2010 22:58:15 +0000 (15:58 -0700)] 
build: set PWD in the subprocess preexec hook

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoMove the runq task start/failed messages to the UI
Chris Larson [Mon, 6 Dec 2010 21:58:55 +0000 (14:58 -0700)] 
Move the runq task start/failed messages to the UI

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobitbake/runqueue.py: Factor task skipping code into a function
Richard Purdie [Wed, 18 Aug 2010 16:21:40 +0000 (17:21 +0100)] 
bitbake/runqueue.py: Factor task skipping code into a function

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agobitbake/runqueue.py: Create RunQueueExecute and RunQueueExecuteTasks classes, further...
Richard Purdie [Wed, 18 Aug 2010 16:13:06 +0000 (17:13 +0100)] 
bitbake/runqueue.py: Create RunQueueExecute and RunQueueExecuteTasks classes, further splitting up runqueue

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agobitbake: Split Runqueue into two classes, a data processor and the execution part
Richard Purdie [Wed, 18 Aug 2010 10:30:53 +0000 (11:30 +0100)] 
bitbake: Split Runqueue into two classes, a data processor and the execution part

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoSilence python 2.7 nested context manager warning
Chris Larson [Mon, 13 Dec 2010 17:03:55 +0000 (10:03 -0700)] 
Silence python 2.7 nested context manager warning

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoRename command events, adjust compareRevisions
Chris Larson [Fri, 10 Dec 2010 23:53:19 +0000 (16:53 -0700)] 
Rename command events, adjust compareRevisions

- Moved the logic for comparing revisions from cooker into command
- Removed 'Cooker' from the event names
- Renamed the 'ExitCode' event into CommandExit, and changed CommandFailed to
  be a subclass of CommandExit

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agoRework the persist_data API
Chris Larson [Wed, 22 Sep 2010 01:11:54 +0000 (18:11 -0700)] 
Rework the persist_data API

Rather than having to run .addDomain() and then .getValue(domain, key),
.setValue(domain, key), etc, now it just works as mappings.

As an example:

    setValue(domain, key) -> persist[domain][key] = value

It also arranges things so we can construct objects of this type using any
arbitrary filename/path for the sqlite3 database, rather than being so
tightly bound to the metadata.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
14 years agobuild: don't create ${B} when the 'dirs' flag is unset
Chris Larson [Fri, 10 Dec 2010 23:10:33 +0000 (18:10 -0500)] 
build: don't create ${B} when the 'dirs' flag is unset

Signed-off-by: Chris Larson <chris_larson@mentor.com>