diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-12-22 17:03:02 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-28 09:25:13 +0000 |
commit | db5f9645ad3ffb4e9be7075d71cb1b13341f5195 (patch) | |
tree | 3c4bfcfc698840c310d069f26b57863fde877528 /meta | |
parent | 6a7661b8005fadad10bde494131e27406e1e45b8 (diff) | |
download | poky-db5f9645ad3ffb4e9be7075d71cb1b13341f5195.tar.gz |
recipetool: create: support extracting name and version from build scripts
Some build systems (notably autotools) support declaring the name and
version of the program being built; since we need those for the recipe
we can attempt to extract them. It's a little fuzzy as they are often
omitted or may not be appropriately formatted for our purposes, but it
does work on a reasonable number of software packages to be useful.
(From OE-Core rev: 3b3fd33190d89c09e62126eea0e45aa84fe5442e)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/devtool.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/selftest/recipetool.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py index 0a44ae71c8..8faea93784 100644 --- a/meta/lib/oeqa/selftest/devtool.py +++ b/meta/lib/oeqa/selftest/devtool.py | |||
@@ -279,7 +279,7 @@ class DevtoolTests(DevtoolBase): | |||
279 | self.assertIn('_git.bb', recipefile, 'Recipe file incorrectly named') | 279 | self.assertIn('_git.bb', recipefile, 'Recipe file incorrectly named') |
280 | checkvars = {} | 280 | checkvars = {} |
281 | checkvars['S'] = '${WORKDIR}/git' | 281 | checkvars['S'] = '${WORKDIR}/git' |
282 | checkvars['PV'] = '1.0+git${SRCPV}' | 282 | checkvars['PV'] = '1.11+git${SRCPV}' |
283 | checkvars['SRC_URI'] = url | 283 | checkvars['SRC_URI'] = url |
284 | checkvars['SRCREV'] = '${AUTOREV}' | 284 | checkvars['SRCREV'] = '${AUTOREV}' |
285 | self._test_recipe_contents(recipefile, checkvars, []) | 285 | self._test_recipe_contents(recipefile, checkvars, []) |
diff --git a/meta/lib/oeqa/selftest/recipetool.py b/meta/lib/oeqa/selftest/recipetool.py index b1f1d2ab90..bbfce7c394 100644 --- a/meta/lib/oeqa/selftest/recipetool.py +++ b/meta/lib/oeqa/selftest/recipetool.py | |||
@@ -395,7 +395,7 @@ class RecipetoolTests(RecipetoolBase): | |||
395 | checkvars['LICENSE'] = 'LGPLv2.1' | 395 | checkvars['LICENSE'] = 'LGPLv2.1' |
396 | checkvars['LIC_FILES_CHKSUM'] = 'file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34' | 396 | checkvars['LIC_FILES_CHKSUM'] = 'file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34' |
397 | checkvars['S'] = '${WORKDIR}/git' | 397 | checkvars['S'] = '${WORKDIR}/git' |
398 | checkvars['PV'] = '1.0+git${SRCPV}' | 398 | checkvars['PV'] = '1.11+git${SRCPV}' |
399 | checkvars['SRC_URI'] = srcuri | 399 | checkvars['SRC_URI'] = srcuri |
400 | checkvars['DEPENDS'] = 'libpng pango libx11 libxext jpeg' | 400 | checkvars['DEPENDS'] = 'libpng pango libx11 libxext jpeg' |
401 | inherits = ['autotools', 'pkgconfig'] | 401 | inherits = ['autotools', 'pkgconfig'] |