aboutsummaryrefslogtreecommitdiffstats
path: root/classes/utils.bbclass
AgeCommit message (Collapse)Author
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>