summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2013-08-16tinfoil: backport to 1.121.12Paul Eggleton
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>
2011-09-20bitbake/cooker: Fix -b option by ensuring the empty cache structure is presentRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-15bitbake: use layer priority when applying bbappendsPaul Eggleton
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>
2011-08-15cooker.py: Don't show spurious warnings for collections of .bbappend filesRichard Purdie
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>
2011-08-15bitbake/cooker.py: Ensure BBFILES is processed in orderRichard Purdie
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>
2011-04-04cooker: fix -b with BBCLASSEXTENDChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-03-11server: use local fixed _bootstrap when appropriateChris Larson
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>
2011-02-18Release 1.12.01.12.0Richard Purdie
2011-02-16uihelper: import bb.build, kill commented linesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-16cooker: don't choke if we have nothing to parseChris Larson
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>
2011-02-16siggen: add bb.data, bb.parse importsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-16runqueue: simplify RunQueueStats.copyChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-16runqueue: pass a copy of the RunQueueStats to eventsChris Larson
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>
2011-02-15server: clean up call of write_profile_statsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-15server: add profiling support to ProcessServerChris Larson
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>
2011-02-11Enable some DeprecationWarningsChris Larson
We'll be skipping the Pending Deprecation step given our release process. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-11persist_data: handle lock in sqlite and use the shared cacheChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-11persist_data: drop SQLData indirectionChris Larson
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>
2011-02-11persist_data: use better items/values methods for SQLTableChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-10fetch2: Correct the clean() mechanism for the fetcher2 codeSaul Wold
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>
2011-02-10bitbake/fetch2/git: Write mirror tarballs if enabled and they don't exist, ↵Richard Purdie
also set a default value for mirror tarball generation (From Poky rev: 59a08262aba2d2b9b8b299a2818fb4cfe13b9909) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Fix negated if check for BB_FETCH_PREMIRRORONLYRichard Purdie
(From Poky rev: 29ed2c6e9a0c3cc57c5bbaf3c53e1cff8586c51c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10fetch2: Add SRPM knowledgeMark Hatle
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>
2011-02-10bitbake/fetch2: Ignore UnboundLocalError in exception handler in try_mirrorRichard Purdie
(From Poky rev: aa45760702e874977454778659c205b29d1ff049) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Move symlink handling into try_mirror where is belongs ↵Richard Purdie
instead of the main download function (From Poky rev: ee1a9c0476cc4b2ce9dfb0faa29a1371a8517c40) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: When using BB_FETCH_PREMIRRORONLY, set BB_NO_NETWORK after ↵Richard Purdie
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>
2011-02-10bitbake/fetch2: Ensure we only remove files, not directories when fetch ↵Richard Purdie
failures occur (From Poky rev: 91eeb9b0d334275ff2730e55e86fd351e1b652ef) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Ensure original ud is preserved in try_mirrorRichard Purdie
(From Poky rev: 0713fb6b99486cd08c6036dba7aeb15e3bfb8129) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2/git: Fix broken variable referenceRichard Purdie
(From Poky rev: a235c67479846590eb2c7236bec3360b23c3e9b6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2/git: Ensure unresolved branches are translated into revisionsRichard Purdie
(From Poky rev: 5920e85c561624e657c126df58f5c378a8950bbc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10fetch2: add try/finally to ensure lockfile is unlocked on failureSaul Wold
(From Poky rev: 1544aa8ab4a80d529a001e27b473645f2caec87c) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10fetch2: add runfetchcmd to import for fetchersSaul Wold
(From Poky rev: 232b6f3c92928c333ad1201aa8eb3706e7251cdf) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2:Fetch Make using the fn based cache optionalRichard Purdie
(From Poky rev: 500c66337c7cb5e3044a02ef761097713e47f523) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Fix pickling issues with fetcher exceptionsRichard Purdie
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>
2011-02-10bitbake/fetch2: Update mirror processing to ensure we look for mirror tarballsRichard Purdie
(From Poky rev: 94faffdaf6c13ce59987aab28383d66a9a0bf100) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Update forcefetch and mirror handling to clean up, simplfy ↵Richard Purdie
and bug fix the code (From Poky rev: 37624b97450f2ba3d6fad3e1e51818486451447e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Match Fetcher log domain to that in bb.msgRichard Purdie
(From Poky rev: ded83ffc3bd86553c9b540795660985905c925ba) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2/git: use clonedir as ud.localfile too since the mirror ↵Richard Purdie
tarball may not exist (From Poky rev: 681bcf4e6b606dde2029d143805023a927285917) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2/git.py: Ensure that forcefetch operates in the correct ↵Richard Purdie
directory for calling _contains_ref() (From Poky rev: 330886826770ff6ec1449dc375cb4c3604b2736b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2/git: Fix localpath to point at the clone repo since we no ↵Richard Purdie
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>
2011-02-10bitbake/fetch2: Use True instead of integer valuesRichard Purdie
(From Poky rev: 7202a77134029cb37540c785ce0161a4dd574853) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Drop name/override ordering backwards compatibility codeRichard Purdie
(From Poky rev: 8f2abf4a9f000d42e98c4936e393bd5033a1af48) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2/svn: The concept of using dates with svn is totally insane, ↵Richard Purdie
drop support (From Poky rev: ee6f34483a9bfeca5b5c3656fd62bb4849d5fbb8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Define a new interface to the fetcher code though the ↵Richard Purdie
'Fetch' class (From Poky rev: ca7adf75295c2a6041b891bfa61e0b4bc2f7c860) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Fix typoRichard Purdie
(From Poky rev: 08a9fef4fa0036708f29bd150d7ecf66354e5475) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Drop legacy CVSDATE supportRichard Purdie
(From Poky rev: 806d1c25f8ca8ab5116652e6f82f7d9ee5774278) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Move getSRCDate to FetchData class where is more appropriateRichard Purdie
(From Poky rev: f60d9d6bd4bb7691b62bf1f4b1fbeaa1faa53879) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Make srcrev_internal_helper a normal function, doesn't ↵Richard Purdie
belong in the FetchMethod class (From Poky rev: 831c6c1d3c23c50f9c55a6bbf8dc6311bca3881b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Rename Fetch class to FetchMethodRichard Purdie
(From Poky rev: ab0dd1397491478ee6149283e5ba8775dd8cdc3b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-10bitbake/fetch2: Drop old md5 handling codeRichard Purdie
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>