vuplus_bitbake
18 years agobitbake/manual/usermanual.xml:
Holger Hans Peter Freyther [Sat, 30 Jul 2005 12:11:01 +0000 (12:11 +0000)]
bitbake/manual/usermanual.xml:
    -Provide an example for writing an event handler

18 years agobitbake/manual/usermanual.xml:
Holger Hans Peter Freyther [Sat, 30 Jul 2005 11:52:20 +0000 (11:52 +0000)]
bitbake/manual/usermanual.xml:
    -Update 1 to True to catch up with python 2.2 ;)

18 years agobitbake/manual/usermanual.xml:
Holger Hans Peter Freyther [Sat, 30 Jul 2005 11:46:54 +0000 (11:46 +0000)]
bitbake/manual/usermanual.xml:
    -Add Documentation for the .= and =. operators we introduce
     with Bitbake 1.3.2.

18 years agobitbake/bin/bitdoc:
Holger Hans Peter Freyther [Sat, 30 Jul 2005 11:26:24 +0000 (11:26 +0000)]
bitbake/bin/bitdoc:
    -Sort the groups (I had not expected to still see this on my disk)

18 years agoadd .= and =. operators, as requested by Holger
Phil Blundell [Wed, 27 Jul 2005 22:58:35 +0000 (22:58 +0000)]
add .= and =. operators, as requested by Holger

18 years agobitbake/bin/bitbake:
Holger Hans Peter Freyther [Tue, 26 Jul 2005 13:45:10 +0000 (13:45 +0000)]
bitbake/bin/bitbake:
-Inject a BUILDSTART variable into each parsed file

18 years agobitbake/lib/bb/fetch.py:
Holger Hans Peter Freyther [Thu, 21 Jul 2005 22:40:39 +0000 (22:40 +0000)]
bitbake/lib/bb/fetch.py:
     -Prepare the Wget fetcher to soon check the MD5SUMs in many
      different ways.

18 years agobitbake/lib/bb/fetch.py:
Holger Hans Peter Freyther [Thu, 21 Jul 2005 22:20:44 +0000 (22:20 +0000)]
bitbake/lib/bb/fetch.py:
     -Remove decodeurl comment/testcase. We will readd to the right
     place to be a proper testcase.

18 years agobitbake/lib/bb/fetch.py:
Holger Hans Peter Freyther [Thu, 21 Jul 2005 22:19:43 +0000 (22:19 +0000)]
bitbake/lib/bb/fetch.py:
     -Create a MD5SumException. We will throw it when the sums do
     not match.

18 years agobitbake/parse/parse_py/ConfHandler.py
Holger Hans Peter Freyther [Thu, 21 Jul 2005 22:16:34 +0000 (22:16 +0000)]
bitbake/parse/parse_py/ConfHandler.py
     -ParseError was unknown to ConfHandler since the moving
      of the directories. Import ParseError into ConfHandler

18 years agoupdate configuration data before entering the shell. patch courtesy Proti - thanks.
Michael 'Mickey' Lauer [Tue, 19 Jul 2005 10:26:06 +0000 (10:26 +0000)]
update configuration data before entering the shell. patch courtesy Proti - thanks.

18 years agobitbake/setup.py:
Holger Hans Peter Freyther [Tue, 12 Jul 2005 13:28:47 +0000 (13:28 +0000)]
bitbake/setup.py:
    -Unmess the result of parser reorginisation even more. Introduce
    parse_py to distutils.

18 years agoSorry for the inconvience and add the missing file
Holger Hans Peter Freyther [Mon, 11 Jul 2005 16:24:44 +0000 (16:24 +0000)]
Sorry for the inconvience and add the missing file

I wonder what would happen if I only commit after getting
enough donations for a file...

Currently it defaults to the python implementation

18 years agoGetting closer...
Holger Hans Peter Freyther [Sun, 10 Jul 2005 21:59:23 +0000 (21:59 +0000)]
Getting closer...

18 years agoMore things done on the Bitbake C parser:
Holger Hans Peter Freyther [Sun, 10 Jul 2005 21:20:50 +0000 (21:20 +0000)]
More things done on the Bitbake C parser:
    -Implement token_t and switch the grammar actions
     to the new class
    -Start with the lex_t as well
    -Start with implementing the high level python
     side.

18 years agoStart with the excellent lexer and lemon Grammar from
Holger Hans Peter Freyther [Sun, 10 Jul 2005 18:29:35 +0000 (18:29 +0000)]
Start with the excellent lexer and lemon Grammar from
Marc Singer and turn it into a C module (after pybison
was a total failure).

Lexer Changes:
    Do not allow unquoted R_VALUE

Grammar Changes:
    FILES_${PN} () {
    }
    T_VARIABLE is a legal start of a procedure

18 years agoPrepare for the new tokenizer C-based parser as optional parser.
Holger Hans Peter Freyther [Sun, 10 Jul 2005 18:03:23 +0000 (18:03 +0000)]
Prepare for the new tokenizer C-based parser as optional parser.
For now import bb.parse will function the way it used to work

18 years agotrunk/bitbake/bin/bitbake:
Holger Hans Peter Freyther [Sun, 10 Jul 2005 16:24:30 +0000 (16:24 +0000)]
trunk/bitbake/bin/bitbake:
    -Fix findBestProvider to work with BB collections (hopefully)
    without adding new regressions.
    This fixes bug #137 the patch is courtsey Seb (proti)

18 years agobitbake/bin/bitdoc:
Holger Hans Peter Freyther [Fri, 8 Jul 2005 21:29:22 +0000 (21:29 +0000)]
bitbake/bin/bitdoc:
    -Fix whitespaces
    -Sort the keynames in the key overview
    -Sort the related groups and keys alphabetical as well
    -Fix the URL from the Group description to the contained
     keys s/group/key/

18 years agoShell:
Michael 'Mickey' Lauer [Thu, 7 Jul 2005 10:23:59 +0000 (10:23 +0000)]
Shell:
- remove '...' in output for "SHELL: Building <a number of providees>"
- don't continue if building a number of providees and one fails

18 years agoShell:
Michael 'Mickey' Lauer [Wed, 6 Jul 2005 19:25:34 +0000 (19:25 +0000)]
Shell:
- experimental support for glob expression (wildcards) in command 'build'
- add new command 'match <providers|files> <globexpr>' to see what matches against the expression

18 years agoShell:
Michael 'Mickey' Lauer [Wed, 6 Jul 2005 18:24:16 +0000 (18:24 +0000)]
Shell:
- use shlex to parse command lines as a special service to hrw: Now you can say 'setvar FOO "this is a test"' :)
- use a command queue in the main loop to unify offline (from startup file) and online processing
- add some changes for 1.3.2. Could anyone fill in changes for 1.3.1 ?

18 years agobitbake/
Holger Hans Peter Freyther [Wed, 6 Jul 2005 17:34:56 +0000 (17:34 +0000)]
bitbake/
    Update MANIFEST and setup.py to cope with the removal
    of make.py and bbread and add utils.py to the MANIFEST

18 years agoShell: grab a deepcopy from the initial cooker data to reuse
Michael 'Mickey' Lauer [Wed, 6 Jul 2005 15:42:10 +0000 (15:42 +0000)]
Shell: grab a deepcopy from the initial cooker data to reuse
it in file**** commands. Otherwise we would pollute
cooker.configuration.data (i.e. do_configure_append() appending
multiple times). This fixes BitBake bug #133

18 years agoadd missing self to find_bbfiles() and get_bbfile()
Michael 'Mickey' Lauer [Wed, 6 Jul 2005 12:01:37 +0000 (12:01 +0000)]
add missing self to find_bbfiles() and get_bbfile()

18 years agoremove last trace of make.py
Michael 'Mickey' Lauer [Wed, 6 Jul 2005 08:47:24 +0000 (08:47 +0000)]
remove last trace of make.py

18 years agoThis (large) patch reintegrates the bb.make module into the bitbake executable.
Michael 'Mickey' Lauer [Tue, 5 Jul 2005 14:32:26 +0000 (14:32 +0000)]
This (large) patch reintegrates the bb.make module into the bitbake executable.
Said make module has been factorered out back in the old days when we had two concurrent
oemake implementations which were in need of code sharing. Nowadays, there's no
more use of a seperated make module and in fact the split has always been a bit
artificial.

A brief overview of the changes:
 * create utils.py which contains three unbound functions for comparing versions
 * create a class BBConfiguration that holds variables which were formerly living in make module scope
 * make functions use the BBConfiguration instance that lives in BBCooker instance
 * move functions into the BBCooker class, adapt them to work as class methods
 * integrate the function of the bbread executable into BitBake; use it with option '-e' and (optionally) -b
 * remove make.py
 * remove bbread
 * adapt the shell module which has been using the make module directly

18 years agoFix for #88 - written by proti:
Marcin Juszkiewicz [Thu, 30 Jun 2005 09:44:36 +0000 (09:44 +0000)]
Fix for #88 - written by proti:
The function should be shielded against the posibility that prevdir could be removed by the function.

18 years agoPatch by Yann Dirson to show a more verbose error log
Holger Hans Peter Freyther [Mon, 27 Jun 2005 21:40:28 +0000 (21:40 +0000)]
Patch by Yann Dirson to show a more verbose error log
when not beeing able to parse a file

18 years agobitbake Poke Changes:
Holger Hans Peter Freyther [Tue, 21 Jun 2005 21:25:24 +0000 (21:25 +0000)]
bitbake Poke Changes:
    make.pkgdata is when used with a CACHE just a holder
    of a list of filenames + the path to the cache.
    Now when poking at files the changes will be lost immediately,
    we now offer a mean to mark a data instance as dirty and we
    will not throw it away in this case...
    setDirty is not meant to be public API

18 years ago- fix _findProvider() for 'PN-PV'
Michael 'Mickey' Lauer [Tue, 21 Jun 2005 20:48:19 +0000 (20:48 +0000)]
- fix _findProvider() for 'PN-PV'
- add columnize helper function
- outcomment poke function and add warning

18 years agobitbake/bin/bitbake:
Holger Hans Peter Freyther [Sat, 18 Jun 2005 22:21:12 +0000 (22:21 +0000)]
bitbake/bin/bitbake:
    -Possible fix for #103 make findBestProvider operate
    on a given, limited pkg_pn (the one we created).

18 years agobitbake/lib/bb/build.py:
Holger Hans Peter Freyther [Sat, 18 Jun 2005 14:48:31 +0000 (14:48 +0000)]
bitbake/lib/bb/build.py:
    -Fix the task_cache as reference assumption as described
     in bug report #60

    Patch courtsey keturn

18 years agomake the cache also work when you use softlinks to the packages - patch courtesy...
Michael 'Mickey' Lauer [Fri, 17 Jun 2005 13:24:41 +0000 (13:24 +0000)]
make the cache also work when you use softlinks to the packages - patch courtesy Holger Schurig

18 years ago- add 'alias' command to allow shortcuts for commands
Michael 'Mickey' Lauer [Fri, 17 Jun 2005 10:46:21 +0000 (10:46 +0000)]
- add 'alias' command to allow shortcuts for commands
- bbshell now processes ~/.bbsh_startup, if existing
All commands valid inside the shell are valid in the startup file.
Don't use | in startup files.

18 years ago- add 'peek' command: Example Usage: peek nano SRC_URI
Michael 'Mickey' Lauer [Fri, 17 Jun 2005 09:47:15 +0000 (09:47 +0000)]
- add 'peek' command: Example Usage: peek nano SRC_URI
- add 'poke' command, outcommented because d.setVar seems not to be persistent

18 years agomake edit command more consistent:
Michael 'Mickey' Lauer [Fri, 17 Jun 2005 09:01:59 +0000 (09:01 +0000)]
make edit command more consistent:
- 'edit' now accepts a providee
- 'fileedit' now calls $EDITOR on a bbfile

18 years ago- fix pasteLog and pasteBin failure codepaths. Thanks to keturn for spotting.
Michael 'Mickey' Lauer [Thu, 16 Jun 2005 21:29:53 +0000 (21:29 +0000)]
- fix pasteLog and pasteBin failure codepaths. Thanks to keturn for spotting.

18 years ago- add 'showdata' command
Michael 'Mickey' Lauer [Thu, 16 Jun 2005 18:50:13 +0000 (18:50 +0000)]
- add 'showdata' command
- fix readline in python expert mode
- add some more IDEAS

18 years ago- add 'getvar' to print out a variable from the outer environment
Michael 'Mickey' Lauer [Thu, 16 Jun 2005 16:43:08 +0000 (16:43 +0000)]
- add 'getvar' to print out a variable from the outer environment
- 'print' now serves a different purpose, it lists either all bbfiles or all providers
- add '|' to allow the output of commands be piped into grep, sort, and friends: Hint try:
  parse; print files | grep opie
- internal: add debugOut()

18 years agoBitBake (minor update):
Holger Hans Peter Freyther [Wed, 15 Jun 2005 14:05:22 +0000 (14:05 +0000)]
BitBake (minor update):
     -Remove data_dict.py as it was not needed for sooo long
     -Remove TODOs related to data_dict.py
     -Remove data_dict from the MANIFEST

18 years agoKeep all temporary files in proper place not in TMPDIR (patch by Holger Schurig)
Marcin Juszkiewicz [Wed, 15 Jun 2005 09:15:50 +0000 (09:15 +0000)]
Keep all temporary files in proper place not in TMPDIR (patch by Holger Schurig)

18 years agobitbake/lib/bb/__init__.py
Holger Hans Peter Freyther [Tue, 14 Jun 2005 22:06:39 +0000 (22:06 +0000)]
bitbake/lib/bb/__init__.py
    -Fix testcase by silenting the ververify error message

18 years ago- add 'fetch', 'unpack', 'patch', 'configure', 'compile', 'stage'
Michael 'Mickey' Lauer [Tue, 14 Jun 2005 09:19:20 +0000 (09:19 +0000)]
- add 'fetch', 'unpack', 'patch', 'configure', 'compile', 'stage'
  which reflect the execution of the respective tasks on providees
- add 'force' to toggle make.options.force
- switch to a more sane context sensitive completion method inspecting the 'usage' attribute

18 years agoBitBake:
Holger Hans Peter Freyther [Mon, 13 Jun 2005 21:25:31 +0000 (21:25 +0000)]
BitBake:
    -Remove old code (python version >= 2.3 check)
    -Remove commented code (as we've a scm)
    -Fix most of the testcases (only one is failing)
      -by importing string
      -by removing new lines
      -by changing '"' to "'"
      -by reodering some elements

18 years agocollect_bbfiles:
Michael 'Mickey' Lauer [Sat, 11 Jun 2005 14:46:09 +0000 (14:46 +0000)]
collect_bbfiles:
- save progress callback in function attribute
- remain completely silent when no progress callback is requested

18 years agoOO overhaul:
Michael 'Mickey' Lauer [Fri, 10 Jun 2005 20:59:09 +0000 (20:59 +0000)]
OO overhaul:
 - Introduce classes for commands and the command processor
 - Autoregister available commands
 - Fix 'shell' command to work with unlimited number of parameters
 - Remove 'exec' command

18 years ago- capture bb.parse exception in 'filebuild'
Michael 'Mickey' Lauer [Fri, 10 Jun 2005 09:20:28 +0000 (09:20 +0000)]
- capture bb.parse exception in 'filebuild'
- restore sys.stdout during raw_input, this repairs
tab completion which I broke two revisions ago

18 years agoadd 'shell <command>' which hands a command over to the shell and dumps the output
Michael 'Mickey' Lauer [Thu, 9 Jun 2005 18:03:25 +0000 (18:03 +0000)]
add 'shell <command>' which hands a command over to the shell and dumps the output
NOTE: Due to a limitation in the bbshell command processor, 'shell' and 'exec' are
currently broken when using more than one parameter. This will be sorted out asap.

18 years agoUse socket.gethostname() instead of os.environ["HOST"]. That should work on all systems.
Michael 'Mickey' Lauer [Thu, 9 Jun 2005 13:25:28 +0000 (13:25 +0000)]
Use socket.gethostname() instead of os.environ["HOST"]. That should work on all systems.

18 years agoGreatly improve pastebin functionality:
Michael 'Mickey' Lauer [Thu, 9 Jun 2005 13:11:42 +0000 (13:11 +0000)]
Greatly improve pastebin functionality:
The BitBake shell now features a generic output buffer for the last 10 commands.
You can dump an overview about the buffered commands with 'buffers' and dump
the contents of a buffer with 'buffer <n>'. Likewise, 'pastebin <n>' uploads
the contents of the said buffer. NOTE: 'lasterror' is still available, but has been
renamed to 'lastlog'. The old pastebin command is still available with 'pastelog'.

18 years agoremove sys.exc_info() hack and instead use the magic .args variable of the exception...
Michael 'Mickey' Lauer [Wed, 8 Jun 2005 17:30:37 +0000 (17:30 +0000)]
remove sys.exc_info() hack and instead use the magic .args variable of the exception instance variable

18 years agoadd pastebin command to upload the latest error log (if there is one)
Michael 'Mickey' Lauer [Wed, 8 Jun 2005 17:29:51 +0000 (17:29 +0000)]
add pastebin command to upload the latest error log (if there is one)

18 years ago- set magic args attribute for event exception
Michael 'Mickey' Lauer [Wed, 8 Jun 2005 17:29:07 +0000 (17:29 +0000)]
- set magic args attribute for event exception
- remove event property
- submit descriptive error messages when raising event exceptions

18 years agobuild in a try/except block and intercept faulty builds
Michael 'Mickey' Lauer [Tue, 7 Jun 2005 13:33:36 +0000 (13:33 +0000)]
build in a try/except block and intercept faulty builds

18 years agobitbake/bin/bitdoc:
Holger Hans Peter Freyther [Mon, 6 Jun 2005 23:04:19 +0000 (23:04 +0000)]
bitbake/bin/bitdoc:
     -Small utility to generate a Hyper Linked online version
     out of documentation.conf.
     An example can be found here:http://handhelds.org/~zecke/oe_html/

     TODO:
      -Beautify the HTML output (shameless rip off from gtkdoc)
      -Sort the keys
      -Fix and extend OpenEmbedded's documentation.conf to follow the
       simple ruleset
     KEY[doc] = "This is the description. It can go on \
     @see MOO_RELATED, FOO_DOO, GRUFT, BLUR, TOCOTRONIC @group rock, POP \
     NewWave"

     It will extract the description, related keys (everything after @see
     separated by ',') and the groups this key is in. This simple rules
     should and could bring us forward.

18 years agocatch build exceptions also when building just one file
Michael 'Mickey' Lauer [Fri, 3 Jun 2005 12:05:26 +0000 (12:05 +0000)]
catch build exceptions also when building just one file

18 years agobitbake/bin/bitbake:
Holger Hans Peter Freyther [Thu, 2 Jun 2005 20:22:55 +0000 (20:22 +0000)]
bitbake/bin/bitbake:
   Rework handling of pkg_pn. I still wonder if we should
   set pkg_pn[pn] at all in this method.

   Patch courtsey proti

18 years agouse cooker.findBestProvider() for the 'which' command
Michael 'Mickey' Lauer [Wed, 1 Jun 2005 14:08:52 +0000 (14:08 +0000)]
use cooker.findBestProvider() for the 'which' command

18 years agobitbake/bin/bitbake:
Holger Hans Peter Freyther [Tue, 31 May 2005 22:57:05 +0000 (22:57 +0000)]
bitbake/bin/bitbake:
Create a common method to get the preferred version
given a package name.
This patch was done by proti (seb BEI frankengul.org)
and made work by myself. The list in list logic does not
seem 'obvious' and I need to consider how to kill it.
(when I understand what the file_set should represent)

18 years agocalculate absolute path when parsing a bitbake file. this fixes -b with
Michael 'Mickey' Lauer [Mon, 30 May 2005 22:10:10 +0000 (22:10 +0000)]
calculate absolute path when parsing a bitbake file. this fixes -b with
relative paths

18 years agofix stupid typo. this repairs bitbake -f
Michael 'Mickey' Lauer [Mon, 30 May 2005 21:45:30 +0000 (21:45 +0000)]
fix stupid typo. this repairs bitbake -f

18 years agoadd ; as command seperator
Michael 'Mickey' Lauer [Mon, 30 May 2005 19:30:22 +0000 (19:30 +0000)]
add ; as command seperator
unify error messages
add new <directory> <bbfile> command

18 years agoadd some more things to TODO
Michael 'Mickey' Lauer [Mon, 30 May 2005 15:04:16 +0000 (15:04 +0000)]
add some more things to TODO

18 years ago- fix bug in file*** commands (need to clean the _task_cache per
Michael 'Mickey' Lauer [Mon, 30 May 2005 14:57:28 +0000 (14:57 +0000)]
- fix bug in file*** commands (need to clean the _task_cache per
  package)
- add fileRebuild (clean and rebuild a .bbfile)

18 years agoremove accidantly commited debug line
Michael 'Mickey' Lauer [Mon, 30 May 2005 11:39:42 +0000 (11:39 +0000)]
remove accidantly commited debug line

18 years agomajor update:
Michael 'Mickey' Lauer [Sun, 29 May 2005 21:33:46 +0000 (21:33 +0000)]
major update:
- improve registerCommand
- build, clean, and rebuild no longer work on providees or bbfiles, but just on providees
- filebuild, fileclean and filerebuild work on bbfiles
- add which 'providee'

18 years agomisc. refactoring bits for bin/bitbake:
Michael 'Mickey' Lauer [Sun, 29 May 2005 21:29:31 +0000 (21:29 +0000)]
misc. refactoring bits for bin/bitbake:
 - remove executeOneBB
 - add tryBuildPackage
 - add more docstrings
 - less abbrevations
 - s/buildPackage/buildProvider/

18 years agobitbake/lib/bb/*: 1.3.0
Holger Hans Peter Freyther [Sat, 28 May 2005 20:24:00 +0000 (20:24 +0000)]
bitbake/lib/bb/*:
include 'time' into the scope. For bitbake 1.3.1 we need
to define which modules will be visible when executing
embedded python methods

18 years agobitbake/bin/bitbake:
Holger Hans Peter Freyther [Sat, 28 May 2005 19:08:00 +0000 (19:08 +0000)]
bitbake/bin/bitbake:
update_data() of make.cfg after we've parsed the
each and every bitbake file.
Call me paranoid but this way we make sure that changes
made in the bb files are actually taken...

18 years ago- add command specific tab completion
Michael 'Mickey' Lauer [Fri, 27 May 2005 16:00:52 +0000 (16:00 +0000)]
- add command specific tab completion
- add expert mode - an embedded python interpreter
- add exec command

18 years agobitbake:
Holger Hans Peter Freyther [Thu, 26 May 2005 19:00:30 +0000 (19:00 +0000)]
bitbake:
-Prepare the 1.3.0 release of bitbake

18 years agosome fixes
Michael 'Mickey' Lauer [Thu, 26 May 2005 14:59:58 +0000 (14:59 +0000)]
some fixes

18 years agocatch parse error in parseConfigurationFile()
Michael 'Mickey' Lauer [Thu, 26 May 2005 14:57:24 +0000 (14:57 +0000)]
catch parse error in parseConfigurationFile()

18 years agoadd bbfile completion
Michael 'Mickey' Lauer [Thu, 26 May 2005 13:26:12 +0000 (13:26 +0000)]
add bbfile completion

18 years ago- remove checking for return if parse-only is set when executing just one BB
Michael 'Mickey' Lauer [Thu, 26 May 2005 13:25:30 +0000 (13:25 +0000)]
- remove checking for return if parse-only is set when executing just one BB
- don't sys.exit() for parse-only, but return. This makes dropping into the Python interactive mode possible.

18 years agohave bb.parse.handle() throw ParseError if the input file is not
Phil Blundell [Thu, 26 May 2005 12:30:02 +0000 (12:30 +0000)]
have bb.parse.handle() throw ParseError if the input file is not
understood by any handler, rather than quietly returning None

18 years ago- add more commands: edit, clean, rebuild.
Michael 'Mickey' Lauer [Thu, 26 May 2005 11:36:20 +0000 (11:36 +0000)]
- add more commands: edit, clean, rebuild.
- load command history on startup
- save command history on exit
Bug: A bug can be seen when you call rebuild on a package more than once -
somehow the make module no longer calls the tasks then.

18 years agocall update_data right after parsing the conf files
Michael 'Mickey' Lauer [Wed, 25 May 2005 22:02:46 +0000 (22:02 +0000)]
call update_data right after parsing the conf files

18 years agoPython 2.3.x compatibility fix
Michael 'Mickey' Lauer [Wed, 25 May 2005 21:55:06 +0000 (21:55 +0000)]
Python 2.3.x compatibility fix

18 years agoadd first (preview) version of the bitbake interactive mode
Michael 'Mickey' Lauer [Wed, 25 May 2005 21:02:38 +0000 (21:02 +0000)]
add first (preview) version of the bitbake interactive mode

18 years agobitbake: factor out methods parseConfigurationFile() and handleCollections()
Michael 'Mickey' Lauer [Wed, 25 May 2005 21:02:11 +0000 (21:02 +0000)]
bitbake: factor out methods parseConfigurationFile() and handleCollections()

18 years agotolerate ${...} in function names
Phil Blundell [Wed, 25 May 2005 10:14:30 +0000 (10:14 +0000)]
tolerate ${...} in function names

18 years agoMickey's style and performance tunings, volume I:
Michael 'Mickey' Lauer [Tue, 24 May 2005 12:03:15 +0000 (12:03 +0000)]
Mickey's style and performance tunings, volume I:
 * substitute 'if dictionary.has_key( key )' with 'if key in dictionary'
It's faster, more understandable and looks much better

18 years agoupdate data to make _append's etc. appear. patch courtesy BB-Meister
Michael 'Mickey' Lauer [Mon, 23 May 2005 21:39:25 +0000 (21:39 +0000)]
update data to make _append's etc. appear. patch courtesy BB-Meister
Zecke

18 years agobitbake/MANIFEST:
Holger Hans Peter Freyther [Mon, 23 May 2005 18:41:38 +0000 (18:41 +0000)]
bitbake/MANIFEST:
-Include data_smart.py in the MANIFEST

18 years agobitbake/lib/bb module:
Holger Hans Peter Freyther [Mon, 23 May 2005 18:40:42 +0000 (18:40 +0000)]
bitbake/lib/bb module:
Bump the version number to be different from the
last version

18 years agobitbake/TODO:
Holger Hans Peter Freyther [Mon, 23 May 2005 18:39:43 +0000 (18:39 +0000)]
bitbake/TODO:
-Not much is done yet but at least fake that we've done
something

18 years agoSlight OO refactoring of BitBake command line utility in order to
Michael 'Mickey' Lauer [Mon, 23 May 2005 16:53:40 +0000 (16:53 +0000)]
Slight OO refactoring of BitBake command line utility in order to
prepare for the BitBake shell which will need to have instance based
variables as opposed to module global ones.

Sorry, this diff is larger than it should be, but I had to reorder
methods and change indenting all over the place. What I basically did
is:

 1.) Add a class managing the statistics values: BBStatistics
 2.) Add a class managing the build process: BBCooker
 3.) Refactor all unbound methods into the BBCooker class
 4.) Refactor all module global values into the BBCooker class
 5.) Adjust function calls and accesses of the module global values
accordingly

The shell module itself is under construction and will be uploaded asap.

18 years agobitbake/bin/bitbake:
Holger Hans Peter Freyther [Sun, 22 May 2005 22:41:43 +0000 (22:41 +0000)]
bitbake/bin/bitbake:
-Drastically increase the amount of needed RAM to the
 unbelievable amount of 12MB when parsing ~2320 bb files.
-Start creating the provider hash and other lists/dictionaries
         from the progressCallback. A BBStatusProgress struct was added
 to accumulate the data to be used in the buildPackage, showVersions
 and similiar methods.
         This makes it possible to kill the long delay and also building the
         provider hash completely.
 Only for building and checking if a package was built (has stamps) it
         is necessary to get the data instace from make.pkgdata.

18 years agobitbake/ChangeLog:
Holger Hans Peter Freyther [Sun, 22 May 2005 22:35:19 +0000 (22:35 +0000)]
bitbake/ChangeLog:
-Mention changes in bitbake since the 1.2.1 release

18 years agobitbake/lib/bb/make.py:
Holger Hans Peter Freyther [Sun, 22 May 2005 19:44:39 +0000 (19:44 +0000)]
bitbake/lib/bb/make.py:
        Pass more data to the parsing progressCallBack.
        We will soon use this data to eliminate the long
        delay before building.

bitbake/bin/bitbake:
        Just change the signature of the callback method for now.
        We will soon keep the 'parsing status' in a instance
        we will fill while parsing and only evaluate in build_depgraph

18 years agobitbake/lib/bb/data_smart.py:
Holger Hans Peter Freyther [Sat, 21 May 2005 13:53:38 +0000 (13:53 +0000)]
bitbake/lib/bb/data_smart.py:
        -Do a deepcopy of the parent for the persistent
         data storage constructor.
        -Store the dict as _data member and not the instance
        -Operate on the dict in the methods instead of the
         DataSmart instances...

        Happy deletion of the cache

18 years agobitbake/lib/bb/fetch.py:
Holger Hans Peter Freyther [Fri, 20 May 2005 21:51:03 +0000 (21:51 +0000)]
bitbake/lib/bb/fetch.py:
-be less anoying and only print debug messages when
d is none

18 years agobitbake/lib/bb/fetch.py:
Holger Hans Peter Freyther [Fri, 20 May 2005 19:39:59 +0000 (19:39 +0000)]
bitbake/lib/bb/fetch.py:
-Warn when init is called without a data instance, we're not able to reorder
 them as it would break bitbake <= 1.2.1 and OpenEmbedded

bitbake/lib/bb/parse/BBHandler.py:
-Do not call fetch.init without a data instance. This changes the AtiCore
 problem the OE folks are seeing a bit...

18 years agobitbake/lib/bb/data.py:
Holger Hans Peter Freyther [Fri, 20 May 2005 19:37:06 +0000 (19:37 +0000)]
bitbake/lib/bb/data.py:
-Don't be too keen finding a bug in expand when there is None...
 Fix the testcase to delete {TARGET_MOO} first.

18 years agobitbake/lib/bb/data.py:
Holger Hans Peter Freyther [Fri, 20 May 2005 19:11:10 +0000 (19:11 +0000)]
bitbake/lib/bb/data.py:
-Write an expand test case that actually shows a bug I need to fix

18 years agobitbake/lib/bb/data.py:
Holger Hans Peter Freyther [Fri, 20 May 2005 18:55:41 +0000 (18:55 +0000)]
bitbake/lib/bb/data.py:
       -Add two test cases to the expand method. The behaviour
        was not tested before.

18 years agobitbake/lib/bb/data.py:
Holger Hans Peter Freyther [Fri, 20 May 2005 18:38:01 +0000 (18:38 +0000)]
bitbake/lib/bb/data.py:
        -We've killed the default arguments in the methods
         now the tests were updatet to initialize a data
         instance to work again.

18 years agobitbake/lib/bb/data_dict.py:
Holger Hans Peter Freyther [Fri, 20 May 2005 18:11:10 +0000 (18:11 +0000)]
bitbake/lib/bb/data_dict.py:
-Fix one bug in the unused data_dict.py. There is still one
         left... again cookies for the one finding it