aboutsummaryrefslogtreecommitdiffstats
path: root/classes/utils.bbclass
AgeCommit message (Collapse)Author
2011-05-31utils.bbclass: modify create_wrapper to correctly follow symlinksAndreas Müller
* taken from OE-Core [1] * thanks Khem for pointing out[2] * fixes build failure perl | env: ./perl5.10.1.real: No such file or directory | make[1]: *** [pod/perlapi.pod] Error 127 [1] http://git.openembedded.org/cgit.cgi/openembedded-core/commit/?id=a10bd976f4cef54ac50b0c82f885c17a26e5989f [2] http://lists.linuxtogo.org/pipermail/openembedded-core/2011-May/002975.html Signed-off-by: Andreas Mueller <schnitzeltony@gmx.de> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-14utils: drop exported var env caching for oe_popenChris Larson
This was dangerous, as an oe_run executed from the configuration metadata would result in caching the config metadata information, rather than the final metadata information. We could also cache it by the datasmart instance, but I don't think its worth the trouble at this time, particularly given the next bitbake release exports all exported vars into the process environment automatically, avoiding the need for any of this. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-12utils.bbclass: restore previous implementation of explode_deps()Andreas Oberritter
* explode_deps() changed its behavior to omit version information when the function was removed from OE in favor of BitBake's implementation in March 2010. Since then, packages didn't contain versioned runtime dependencies. See commit 89b7e433719f43f1c36c76cb8856d559014e99bc * This patch restores the previous implementation of explode_deps(), thus fixing the generation of versioned runtime dependencies. * Reimplementing explode_deps() using bb.utils.explode_dep_versions() didn't work, because it choked upon parsing inline python code, e.g. on update-modules_1.0.bb's RDEPENDS_${PN} field. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-11-21utils.bbclass: add dirs/pushd/popdChris Larson
These can be useful, and even necessary in some tasks, yet are bash, so let's ensure they're available so we can avoid the /bin/sh is bash requirement in the future. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-25utils.bbclass: remove tests for checksums.iniFrans Meulenbroeks
reauthored as the original patch submitted to the mailing list did not appy any more. This original patch was: Acked-by: Michael 'Mickey' Lauer <mickey@vanille-media.de> Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-10-21oe_libinstall: handle .dylibChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-16utils, oe.utils: add 'uniq' functionChris Larson
Ignore duplicates in an iterable. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-16utils.bbclass: add name to SRC_URI[{md5, sha256}sum]Andreas Oberritter
* When a checksum is missing or invalid, print strings which can be copied into a recipe without modification. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-10-13utils: fix popen->Popen referenceChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-13utils.bbclass: add missing import of oe.processChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-13oe.process: pull some common bits overChris Larson
Also update gitver to use the subprocess wrappers Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-10cross.bbclass,staging.bbclass,utils.bbclass: Make sure that .la munging is ↵Khem Raj
not done for libtool > 2.4 Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Koen Kooi <k-kooi@ti.com>
2010-10-03create_wrapper: wrappers are more useful if they pass args *coughs*Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-02create_wrapper: check syntax of argumentsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-01utils.bbclass: add wrapper script generatorChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-21utils.bbclass: fix is_machine_specificEric Bénard
* base.bbclass can set a package's PACKAGE_ARCH to MACHINE_ARCH if it finds file:// in the SRC_URI and the corresponding file is machine specific (recipes/foo/foo-1.0/<some machine>/) * but is_machine_specific actually fails to detect these files as urldata.path is used instead of urldata.localpath thus preventing the comparison of the file's path with machinepaths * tested with bitbake HEAD & 1.8.18, with OE's tree alone and OE's tree plus an overlay. Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Chris Larson <clarson@kergoth.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-08-25oe.utils: add oe_run convenience functionChris Larson
This one is intended to be used from python snippets in variables. It returns the stdout of the subprocess and raises an exception if the exit code isn't 0. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-20Fix the package_arch=machine_arch logic to use FILESPATH*Chris Larson
- Use FILESPATHPKG and FILESPATHBASE to locate the machine specific dirs - Use the fetch urldata rather than poking at urls ourselves - Move the logic into utils.bbclass as def'd python functions - Simplify Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-07-07utils.bbclass: base_chk_file_checksum uses strick_checksums as a booleanTom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-06-10utils.bbclass: set close_fds=True by default for the popen helperChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-05-06classes/recipes: Catch populate_staging references that were missed in the ↵Richard Purdie
first pass Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-04-23Initial move of common python bits into modules of the 'oe' python packageChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-22Use the python modules for checksum generation where we canChris Larson
Based on df32920678d15c86897b50b752b937210a01edea. Signed-off-by: Chris Larson <chris_larson@mentor.com> Tested-by: Khem Raj <raj.khem@gmail.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-04-21utils.bbclass: make check_app_exists slightly more pythonicChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-12utils.bbclass: simplify checksum check, prepare for checksums.ini removalMartin Jansa
* show note, when there are checksums only in checksums.ini (prepare for script for moving all to recipes) * parse checksums.ini only when there is no checksum in recipe (could be faster, but for more checked items in SRC_URI it is parsed repeatedly) * if one checksum doesn't match then count and show both (md5 as well as sha256) - usefull for copy&paste checksums for new recipe. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-03-21base.bbclass: add popen/system convenience functionsChristopher Larson
Provides oe_popen, which is a subprocess.Popen wrapper that automatically provides our exported variables in the environment, including the PATH, and oe_system, which is just a wrapper that acts like system. Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-03-19Initial split of base.bbclassChris Larson
Acked-by: Richard Purdie <rpurdie@linux.intel.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Signed-off-by: Chris Larson <chris_larson@mentor.com>