aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tinfoil: backport to 1.121.12Paul Eggleton2013-08-162-6/+111
| | | | | | | | | Backport the tinfoil wrapper that allows external utilities to make use of bitbake code easily. This allows the OpenEmbedded layer index to parse recipes from OE-Classic. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/cooker: Fix -b option by ensuring the empty cache structure is presentRichard Purdie2011-09-202-2/+3
| | | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Chris Larson <chris_larson@mentor.com>
* bitbake: use layer priority when applying bbappendsPaul Eggleton2011-08-151-10/+14
| | | | | | | | | | | If the priority of a layer has been specified with BBFILE_PRIORITY_ then use that to sort the list of BBFILES entries, which will affect the order in which .bbappend files are applied. Fixes [YOCTO #1125] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cooker.py: Don't show spurious warnings for collections of .bbappend filesRichard Purdie2011-08-151-1/+18
| | | | | | | | | | | | Seeing warnings like: WARNING: No bb files matched BBFILE_PATTERN_yocto '^/xxx/meta-yocto/' are not encouraging to users and we shouldn't show these if we found .bbappend files (but no .bb files). This change stops these warnings from appearing. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/cooker.py: Ensure BBFILES is processed in orderRichard Purdie2011-08-151-3/+8
| | | | | | | | | | | | | The files found by collect_bbfiles should be processed in order but due to being processed using python's set(), the order was not being preserved. Use a list instead as whilst the code is slightly more ugly, order is preserved. Addresses [YOCTO #1100] Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cooker: fix -b with BBCLASSEXTENDChris Larson2011-04-041-7/+10
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* server: use local fixed _bootstrap when appropriateChris Larson2011-03-111-3/+52
| | | | | | | | | | When running on python versions 2.6.0 through 2.6.2, we use a local copy of the python 2.6.6 _bootstrap method of Process, to ensure that we have the fix for http://bugs.python.org/issue5313. This avoids the "hang" of the bitbake process at 0% progress during the parsing on older distros like Fedora 12. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Release 1.12.01.12.0Richard Purdie2011-02-182-2/+2
|
* uihelper: import bb.build, kill commented linesChris Larson2011-02-161-10/+2
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* cooker: don't choke if we have nothing to parseChris Larson2011-02-161-5/+11
| | | | | | | If all our recipes were cached, there's no reason to fire off any parsing progress events at all. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* siggen: add bb.data, bb.parse importsChris Larson2011-02-161-0/+2
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* runqueue: simplify RunQueueStats.copyChris Larson2011-02-161-4/+1
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* runqueue: pass a copy of the RunQueueStats to eventsChris Larson2011-02-161-1/+9
| | | | | | | This avoids cases where the stats are modified after the event is fired but before it's dispatched to the UI. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* server: clean up call of write_profile_statsChris Larson2011-02-151-5/+4
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* server: add profiling support to ProcessServerChris Larson2011-02-151-0/+34
| | | | | | | Based on poky's support, particularly the format of the processed log file and the log message shown to the user regarding the files written. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Enable some DeprecationWarningsChris Larson2011-02-113-17/+16
| | | | | | We'll be skipping the Pending Deprecation step given our release process. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* persist_data: handle lock in sqlite and use the shared cacheChris Larson2011-02-111-11/+3
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* persist_data: drop SQLData indirectionChris Larson2011-02-114-52/+23
| | | | | | | | | The common case (if not the only case) is to only use a single domain. The only reason SQLData exists is to make it easier to delete a domain. Yet, there's no need for us to delete a domain if SQLTable knows how to clear itself out. So, add clear() to the table and pass the domain to persist(). Signed-off-by: Chris Larson <chris_larson@mentor.com>
* persist_data: use better items/values methods for SQLTableChris Larson2011-02-111-8/+10
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* fetch2: Correct the clean() mechanism for the fetcher2 codeSaul Wold2011-02-105-0/+63
| | | | | | | | | | This create a clean() method in each of the fetcher modules and correctly cleans the .done stamp file and lock files (From Poky rev: 14dea89521c0c648e8e543388096a6dcd6d4f2e0) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2/git: Write mirror tarballs if enabled and they don't exist, ↵Richard Purdie2011-02-101-11/+11
| | | | | | | | also set a default value for mirror tarball generation (From Poky rev: 59a08262aba2d2b9b8b299a2818fb4cfe13b9909) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Fix negated if check for BB_FETCH_PREMIRRORONLYRichard Purdie2011-02-101-1/+1
| | | | | | (From Poky rev: 29ed2c6e9a0c3cc57c5bbaf3c53e1cff8586c51c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* fetch2: Add SRPM knowledgeMark Hatle2011-02-101-24/+38
| | | | | | | | | | | | | | | | | | | Enable the fetcher to be able to unpack and SRPM. By default the system will unpack the contents of the SRPM into the WORKDIR. A new syntax "unpack=file" was developed for the SRC_URI, to allow for a recipe to extract a specific file within an SRPM. An unpack operation will then be executed on the extracted file. In order to apply extracted patches (or unpack files not specified with unpack), you must specify the path using WORKDIR, i.e.: file://${WORKDIR}/mypatch.patch (From Poky rev: 906285ff00d6ffd3fd7713af52250e7c6503edb7) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Ignore UnboundLocalError in exception handler in try_mirrorRichard Purdie2011-02-101-2/+5
| | | | | | (From Poky rev: aa45760702e874977454778659c205b29d1ff049) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Move symlink handling into try_mirror where is belongs ↵Richard Purdie2011-02-101-12/+21
| | | | | | | | instead of the main download function (From Poky rev: ee1a9c0476cc4b2ce9dfb0faa29a1371a8517c40) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: When using BB_FETCH_PREMIRRORONLY, set BB_NO_NETWORK after ↵Richard Purdie2011-02-101-13/+15
| | | | | | | | premirrors as there could be data processing needed by the real fetcher (From Poky rev: c4e66a7fe0c314b843aac6340995c584ec156529) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Ensure we only remove files, not directories when fetch ↵Richard Purdie2011-02-101-3/+5
| | | | | | | | failures occur (From Poky rev: 91eeb9b0d334275ff2730e55e86fd351e1b652ef) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Ensure original ud is preserved in try_mirrorRichard Purdie2011-02-101-4/+4
| | | | | | (From Poky rev: 0713fb6b99486cd08c6036dba7aeb15e3bfb8129) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2/git: Fix broken variable referenceRichard Purdie2011-02-101-1/+1
| | | | | | (From Poky rev: a235c67479846590eb2c7236bec3360b23c3e9b6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2/git: Ensure unresolved branches are translated into revisionsRichard Purdie2011-02-101-1/+2
| | | | | | (From Poky rev: 5920e85c561624e657c126df58f5c378a8950bbc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* fetch2: add try/finally to ensure lockfile is unlocked on failureSaul Wold2011-02-101-42/+44
| | | | | | | (From Poky rev: 1544aa8ab4a80d529a001e27b473645f2caec87c) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* fetch2: add runfetchcmd to import for fetchersSaul Wold2011-02-106-2/+15
| | | | | | | (From Poky rev: 232b6f3c92928c333ad1201aa8eb3706e7251cdf) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2:Fetch Make using the fn based cache optionalRichard Purdie2011-02-101-3/+4
| | | | | | (From Poky rev: 500c66337c7cb5e3044a02ef761097713e47f523) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Fix pickling issues with fetcher exceptionsRichard Purdie2011-02-101-14/+21
| | | | | | | | | See the problems in http://bugs.python.org/issue1692335, need to set self.args correctly. (From Poky rev: d4b4b48addfa781d7b94965e0477974c3fb6dbb3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Update mirror processing to ensure we look for mirror tarballsRichard Purdie2011-02-101-16/+21
| | | | | | (From Poky rev: 94faffdaf6c13ce59987aab28383d66a9a0bf100) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Update forcefetch and mirror handling to clean up, simplfy ↵Richard Purdie2011-02-105-83/+67
| | | | | | | | and bug fix the code (From Poky rev: 37624b97450f2ba3d6fad3e1e51818486451447e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Match Fetcher log domain to that in bb.msgRichard Purdie2011-02-101-1/+1
| | | | | | (From Poky rev: ded83ffc3bd86553c9b540795660985905c925ba) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2/git: use clonedir as ud.localfile too since the mirror ↵Richard Purdie2011-02-101-1/+1
| | | | | | | | tarball may not exist (From Poky rev: 681bcf4e6b606dde2029d143805023a927285917) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2/git.py: Ensure that forcefetch operates in the correct ↵Richard Purdie2011-02-101-0/+3
| | | | | | | | directory for calling _contains_ref() (From Poky rev: 330886826770ff6ec1449dc375cb4c3604b2736b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2/git: Fix localpath to point at the clone repo since we no ↵Richard Purdie2011-02-101-0/+3
| | | | | | | | longer always generate a mirror tarball and it isn't a good guide to fetcher success (From Poky rev: 917d3e9697acefe308e7139e86df37a072ee3500) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Use True instead of integer valuesRichard Purdie2011-02-108-31/+31
| | | | | | (From Poky rev: 7202a77134029cb37540c785ce0161a4dd574853) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Drop name/override ordering backwards compatibility codeRichard Purdie2011-02-101-2/+0
| | | | | | (From Poky rev: 8f2abf4a9f000d42e98c4936e393bd5033a1af48) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2/svn: The concept of using dates with svn is totally insane, ↵Richard Purdie2011-02-101-21/+1
| | | | | | | | drop support (From Poky rev: ee6f34483a9bfeca5b5c3656fd62bb4849d5fbb8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Define a new interface to the fetcher code though the ↵Richard Purdie2011-02-101-144/+169
| | | | | | | | 'Fetch' class (From Poky rev: ca7adf75295c2a6041b891bfa61e0b4bc2f7c860) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Fix typoRichard Purdie2011-02-101-1/+1
| | | | | | (From Poky rev: 08a9fef4fa0036708f29bd150d7ecf66354e5475) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Drop legacy CVSDATE supportRichard Purdie2011-02-101-3/+3
| | | | | | (From Poky rev: 806d1c25f8ca8ab5116652e6f82f7d9ee5774278) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Move getSRCDate to FetchData class where is more appropriateRichard Purdie2011-02-101-18/+16
| | | | | | (From Poky rev: f60d9d6bd4bb7691b62bf1f4b1fbeaa1faa53879) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Make srcrev_internal_helper a normal function, doesn't ↵Richard Purdie2011-02-102-35/+32
| | | | | | | | belong in the FetchMethod class (From Poky rev: 831c6c1d3c23c50f9c55a6bbf8dc6311bca3881b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Rename Fetch class to FetchMethodRichard Purdie2011-02-1013-29/+29
| | | | | | (From Poky rev: ab0dd1397491478ee6149283e5ba8775dd8cdc3b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake/fetch2: Drop old md5 handling codeRichard Purdie2011-02-101-30/+8
| | | | | | | | | | | | Drop some old md5 functions since we have improved functionality now which includes sha256 checksum support. This stops each download being md5 checksumed twice. Also change ".md5" stamp extentions to ".done" to better describe its use as a download complete marker file and no longer write the md5 sum to the files. (From Poky rev: 74b71864fed79ce60e721945c8e239b3ebf49200) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>