summaryrefslogtreecommitdiff
path: root/bitbake/lib
Commit message (Collapse)AuthorAgeFilesLines
* bitbake: [parser] Move more stuff out to separate methods...Holger Freyther2010-02-101-20/+25
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: [parser] Move the handling of a method to a functionHolger Freyther2010-02-101-11/+15
| | | | | | | | 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. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: [parse] Unify opening a file...Holger Freyther2010-02-103-37/+23
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: [parser] Kill obtain/localpath from the parserHolger Freyther2010-02-102-54/+3
| | | | | | | | | 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. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: fix invalid method and logicJoshua Lock2010-02-051-3/+3
| | | | | | The previous bitbake change included an invalid method call and inverted logic. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: Test premirrors and mirrors in checkstatus()Joshua Lock2010-02-051-4/+18
| | | | | | | | | | | | checkstatus() is used to ensure we can fetch a copy of each file, so it makes sense to also test PREMIRRORS and MIRRORS in the method. This patch adds calls to try_mirrors() to the Fetch.checkstatus() method and changes the try_mirrors() method to take a check argument, which is False by default. When check is True try_mirrors() will call a fetchers checkstatus() with the replaced uri. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: Fix try_mirrors() logic, was only trying the first mirror.Joshua Lock2010-02-041-1/+2
| | | | | | | | | The logic in try_mirrors() was buggy such that only the first entry in the mirrors list was tried. This patch fixes this. Thanks to Richard for the review. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: if PREMIRRORS set test for local file in FetchData.setup_localpathJoshua Lock2010-02-041-8/+22
| | | | | | | | | | When we are using PREMIRRORS it's possible a mirror in the local namespace (some filesystem path, i.e. an NFS share) provides read-only files. This is a perfectly valid scenario so this patch fixes bitbake so that for such a scenario locapath is set to the files path rather than some child of DL_DIR. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: Enhance the fetchers' support for local mirrorsJoshua Lock2010-02-041-7/+15
| | | | | | | | | | Modify the try_mirrors() function to return the localpath of the fetched file and update the data dictionary to reflect this. Secondly the metadata files, lock and md5, should always be stored relative to the ${DL_DIR} as it is possible that the localpath is a read-only directory, for example in the scenario where there is a read-only file:// mirror. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake: unify mirror support and make it independant of the fetcherJoshua Lock2010-02-0410-99/+53
| | | | | | | | | | | | | | | | | | This patch serves two purposes. Firstly it unifies the concept of mirrors into PREMIRRORS and MIRRORS. PREMIRRORS are tried before the SRC_URI defined in the recipe whereas MIRRORS are tried only if that fails. The tarball stash was conceptually inline with a PREMIRROR only with special handling within the wget fetcher and therefore only worked with certain fetch types. Secondly the patch removes the need for individual fetch implementations to worry about mirror handling. With this patch, the base fetch implementation will first try to use a PREMIRROR to fetch the desired object, if this fails the native fetch method for the object will be tried and if this fails will try to fetch a copy from one of the MIRRORS. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bitbake/build.py: No need for this gross hack nowRichard Purdie2010-01-271-3/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Don't import xmlrpc server unless neededRichard Purdie2010-01-221-2/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/cooker: Drop unneeded importRichard Purdie2010-01-221-1/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* knotty: Improve task failure message handling using the uihelper codeRichard Purdie2010-01-213-10/+31
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* runqueue.py: Use fcntl to make the worker pipes non-blockingRichard Purdie2010-01-211-1/+6
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/event: If the server disappears, we just exit tooRichard Purdie2010-01-211-3/+6
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* runqueue: When a task fails, make sure the server still processes events ↵Richard Purdie2010-01-211-1/+11
| | | | | | from other workers Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/__init__.py: Fix bb.plain and bb.warn function, initial patch from ↵Richard Purdie2010-01-211-2/+2
| | | | | | Petri Lehtinen <petri.lehtinen+bitbake-dev@inoi.fi> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/git: remove repodir usage (from bitbake master)Martin Jansa2010-01-211-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/runqueue: Fix typoRichard Purdie2010-01-211-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Switch to bitbake-dev version (bitbake master upstream)Richard Purdie2010-01-2037-735/+4731
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Apply modified version of a patch from Martin Jansa ↵Richard Purdie2010-01-121-1/+13
| | | | | | <martin.jansa@gmail.com> to allow wildcards at the end of PREFERRED_VERSION strings Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* taskdata.py: Improve error message if a task dependency has an incorrect formatRichard Purdie2009-12-181-0/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/BBHandler: Only add do_ prefix to tasks if its not already presentRichard Purdie2009-12-181-1/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/data_smart.py: Fix error where update-rc.d would not get added to ↵Richard Purdie2009-12-161-5/+6
| | | | | | | | | | | | | the dependency tree 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>
* bitbake/git.py: Typo fixRichard Purdie2009-12-111-2/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/git.py: Add support for fullclone parameterRichard Purdie2009-12-111-2/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/git.py: Move variable init into the localpath functionRichard Purdie2009-12-111-19/+17
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/cooker.py: Fix handling of extra configuration filesRichard Purdie2009-12-111-5/+6
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* git.py: Improve command failure error messagesRichard Purdie2009-12-111-1/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Fix dict changing size problemsRichard Purdie2009-11-261-3/+5
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* fetch/__init__.py: Try and make the sortable_revision code mode readableRichard Purdie2009-11-132-4/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Sync various functions with those from bitbake-dev and bitbake upstreamRichard Purdie2009-11-136-26/+32
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Sync module import cleanups back from bitbake trunkRichard Purdie2009-11-1311-21/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* build.py: Fix zero size logfile problemsRichard Purdie2009-11-131-2/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: hg fetcher - sync bitbake-dev and remove debugRichard Purdie2009-10-201-4/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Add hg fetcher auto revisioning, patch from Carl Simonson ↵Richard Purdie2009-10-191-0/+32
| | | | | | <simonsonc@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Fix svk fetcherRichard Purdie2009-10-171-3/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Anonymous funciton improvements - use methodpool to allow cached ↵Richard Purdie2009-10-131-12/+17
| | | | | | code and remove anonymous function indentation mismatch problems Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Add bb and os to __builtins__, not the exec function globalRichard Purdie2009-10-131-6/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Remove unused and hence pointless internal__functions__ variableRichard Purdie2009-10-131-7/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/build.py: Remove zero sized log filesRichard Purdie2009-09-241-0/+4
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/cache.py: Add warnings for leakage of SRCREVINACTION magic valueRichard Purdie2009-09-241-1/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/fetch: Ensure SRCREVINACTION always resets the core flags even when ↵Richard Purdie2009-09-241-3/+5
| | | | | | parsing failes by using a try/finally Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake cache: Add code to catch a nasty cache corruption issue to aid in ↵Richard Purdie2009-09-031-0/+3
| | | | | | tracking it down Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* __init__.py: export GIT_PROXY_COMMAND for those behind draconian proxiesMike Turquette2009-08-261-1/+1
| | | | Signed-off-by: Mike Turquette <mturquette@ti.com>
* bitbake: Remove persist_data domain renaming code as it appears to expose ↵Richard Purdie2009-07-302-13/+7
| | | | | | sqlite bugs and data consistency issues Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Make sure tables exist when renamingRichard Purdie2009-07-301-0/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Add a --revisions-changed commandline option to indicate when ↵Richard Purdie2009-07-292-1/+25
| | | | | | floating srcrevs have changed Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake: Add renameDomain and getKeyValues functions to the persistent data codeRichard Purdie2009-07-291-0/+20
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>