aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* oe.patch: for 'patch', always use -fChris Larson2010-11-081-4/+1
| | | | | | | | Apparently quilt always ignores hunks that seem already applied, so let's do the same via -f. -t would probably be better, but isn't safe to use from a portability standpoint. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Handle .lz/.tar.lz URIsChris Larson2010-10-261-0/+5
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.patch: fall back to '-' for quiltrcChris Larson2010-10-231-1/+1
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.patch: use --quiltrc= instead of --quiltrcChris Larson2010-10-231-1/+1
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.patch: don't use dry-run for 'patch'Chris Larson2010-10-211-4/+3
| | | | | | | | There are patches which 'patch' thinks it can't apply, but which do apply, so stop using dry-run. In addition, --dry-run isn't compatible with all versions of patch. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.patch: use oe.processChris Larson2010-10-211-62/+21
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.process: allow passing input into run()Chris Larson2010-10-211-2/+2
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.patch: fix 'd' referencesChris Larson2010-10-211-4/+4
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* utils, oe.utils: add 'uniq' functionChris Larson2010-10-161-0/+7
| | | | | | Ignore duplicates in an iterable. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.unpack: fix subdir-featureHenning Heinold2010-10-151-1/+1
|
* oe.unpack: use oe.processChris Larson2010-10-131-7/+6
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.process: subclass PopenChris Larson2010-10-131-21/+18
| | | | | | | Rather than providing a wrapper function, we can subclass Popen and provide our slightly different defaults that way. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.process: pull some common bits overChris Larson2010-10-131-0/+77
| | | | | | Also update gitver to use the subprocess wrappers Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.packagegroup: fix python version compat issueChris Larson2010-10-101-2/+3
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Implement 'dbg', 'dev', and 'doc' package groupsChris Larson2010-10-092-42/+99
| | | | | | | These allow one to include debugging, development, and documentation files for all packages installed in the image, via IMAGE_FEATURES. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Move packagedata code into oe.packagedataChris Larson2010-10-091-0/+62
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.packagegroup: add code for package groupsChris Larson2010-10-091-0/+15
| | | | | | | | | | | | | This includes some utility functions for dealing with groups of packages defined in the metadata. Metadata syntax: PACKAGE_GROUP_<group> = "<list of packages>" If the packages in the group are optional: PACKAGE_GROUP_<group>[optional] = "1" Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.package: add 'files' functionChris Larson2010-10-091-0/+24
| | | | | | | | | This function obtains a list of files to be included in a package, using the globs in FILES_<pkg> and the files installed in ${D}. Currently, the only user is package_dbg, but I can see this being useful in package.bbclass as well. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.path: add 'find' convenience functionChris Larson2010-10-091-2/+10
| | | | | | | find is simply an os.walk in generator form, yielding the absolute path to each file. Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.path: added 'recurse' argument to remove()Enrico Scholz2010-09-271-2/+2
| | | | | | | | | | This makes it possible to specify whether the equivalent of 'rm -rf' or only this of 'rm -f' is wanted. Due to backward compatibility it defaults to the recursive variant. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Acked-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* oe/patch.py: Remove series file during Clean()Khem Raj2010-09-231-0/+1
| | | | | | | | | | | | | | | | | | | | | Currently if there is a failed do_patch the series files get appended so if there were two patches a.patch b.patch and b.patch failed during next run it would append a.patch again a.patch b.patch a.patch and this would keep growing. We can remove series file in Clean() because we populate it in Import() anyway Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Eric Bénard <eric@eukrea.com>
* lib/oe/unpack.py: fix uncompressing .gz .bz2 or .xzEric Bénard2010-09-061-6/+6
| | | | | | | | | | | | * Actually, the uncompressed file is written into the source path instead of the destination path. * By also removing the source path, this patch should fix this problem. * An other fix could be to not uncompress to stdout but let gunzip|bunzip2| xz uncompress directly to the file. Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com>
* do_unpack, do_patch: shift some responsibility around, clean things upChris Larson2010-09-021-0/+95
| | | | | | | | | | | | | | | | | - Consolidate 'is this file a patch' logic - Move unpack functions from classes into oe.unpack - Move the unpacking message printing into do_unpack - Move the destination directory determination into do_unpack - Use subprocess's ability to pass in PATH and cwd rather than mangling the cmd - Use shutil.copy2/copytree for ordinary file "unpack" - Use the existing urldata from bb.fetch.init rather than re-decodeurl'ing the urls - Make handling of globs in url paths explicit rather than implicit, calling oe_unpack on each one, so showing an unpacking message to the user for each globbed file, rather than the entirety Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com>
* oe.patch: don't error when the symlink already exists and is correctEvgeniy Dushistov2010-07-262-1/+14
| | | | | | | Adds oe.path.symlink convenience function. Signed-off-by: Evgeniy Dushistov <dushistov@mail.ru> Signed-off-by: Chris Larson <chris_larson@mentor.com>
* lib/oe/patch.py: Dont import patches but symlink them insteadKhem Raj2010-06-101-9/+4
| | | | | | | | | | | | | | | | | * This patch removes the usage of quilt import <patch> instead it creasted a symlink to the patch in the patches directory and synthesizes the series file which otherwise would be done automatically by quilt import. * This should help a bit in reducing build time as it avoids copying of the patch and also other things that quilt import would otherwise do. * Tested by doing minimal-image on qemuarm. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Roman I Khimov <khimov@altell.ru>
* Add a rm -rf utility function and use it in packaged-staging.bbclassChris Larson2010-06-101-0/+11
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Revert "lib/oe/patch.py: Dont import patches but symlink them instead"Khem Raj2010-06-091-4/+9
| | | | | | pushed wrong branch. It needs to be reviewed before pushing. This reverts commit 428c2de6d27dd49274b9884c3123b053c42af0ce.
* lib/oe/patch.py: Dont import patches but symlink them insteadKhem Raj2010-06-091-9/+4
| | | | | | | | | | | | | | | * This patch removes the usage of quilt import <patch> instead it creasted a symlink to the patch in the patches directory and synthesizes the series file which otherwise would be done automatically by quilt import. * This should help a bit in reducing build time as it avoids copying of the patch and also other things that quilt import would otherwise do. * Tested by doing minimal-image on qemuarm. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* oe.utils: added param_bool() methodEnrico Scholz2010-05-271-0/+11
| | | | | | | | | | | | This new function works like dict's get() method but converts the returned value to a boolean. It is to be used to interpret e.g. 'apply=yes' parameters in SRC_URI. Moved from base.bbclass into lib/oe/utils.py -kergoth Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.patch: kill long standing annoying messages from the non-quilt patch ↵Chris Larson2010-05-231-4/+0
| | | | | | application Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.path.relative: add missing importsChris Larson2010-04-241-2/+2
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Revert "oe.path.relative: switch to a different appraoch"Chris Larson2010-04-241-16/+19
| | | | | | Drop this for now, seems to cause issues with python 2.5. This reverts commit 5c923fd35c369bae929fc0e110121abeaffab493.
* oe.path.relative: switch to a different appraochChris Larson2010-04-231-19/+16
| | | | Signed-off-by: Chris Larson <clarson@kergoth.com>
* oe.path.relative: leverage os.path.relpath if availableChris Larson2010-04-231-12/+15
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* oe.path.join: simplify a bitChris Larson2010-04-231-8/+3
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Initial move of common python bits into modules of the 'oe' python packageChris Larson2010-04-235-0/+598
Signed-off-by: Chris Larson <chris_larson@mentor.com>