]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Allow a package to skip per file dependency generation
authorMark Hatle <mark.hatle@windriver.com>
Thu, 28 Jun 2012 21:09:27 +0000 (16:09 -0500)
committerSaul Wold <sgw@linux.intel.com>
Tue, 3 Jul 2012 07:05:40 +0000 (00:05 -0700)
Most of the time skipping per file dependency generation is a bad idea, but
when building a nativesdk or similar you may be required to pickup host
dependencies.  These host dependencies can not always be reconciled within
the scope of other nativesdk components, so if we skip them we can facilitate
this unique situation.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/package.bbclass

index 0b98c6b8459101562cc8212fd0af04aafad70aeb..d94d32f72ab0aaaaab22e64a21743436cd40ced5 100644 (file)
@@ -1154,6 +1154,9 @@ RPMDEPS = "${STAGING_LIBDIR_NATIVE}/rpm/bin/rpmdeps-oecore --macros ${STAGING_LI
 python package_do_filedeps() {
        import re
 
+       if d.getVar('SKIP_FILEDEPS', True) == '1':
+               return
+
        pkgdest = d.getVar('PKGDEST', True)
        packages = d.getVar('PACKAGES', True)