summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-01-19 00:18:33 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-19 17:24:53 +0000
commit2c8c9fe3b4e2d3a0910d567e99f0b268a854c0fe (patch)
tree863a899e78f3213f75729db08efc6cfed1a4a51c /scripts/lib/recipetool/create.py
parent3eb397fab6a5c5a86ac4eb30c5159f19e8ebf796 (diff)
downloadpoky-2c8c9fe3b4e2d3a0910d567e99f0b268a854c0fe.tar.gz
recipetool: create: add basic support for extracting dependencies from cmake
Add support for extracting dependencies from CMakeLists.txt. There's still a bunch of things missing that are outside the scope of OE-Core and we still lack a proper extension mechanism, but this is a good start. This also adds an oe-selftest test to exercise the new code a bit. Implements [YOCTO #7635]. (From OE-Core rev: 77e73e6930381fdbd6e78d3913d6467572e16568) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 1601a7f8c4..ad6bf7ba4b 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -558,6 +558,8 @@ def create_recipe(args):
558 outlines = [] 558 outlines = []
559 outlines.extend(lines_before) 559 outlines.extend(lines_before)
560 if classes: 560 if classes:
561 if outlines[-1] and not outlines[-1].startswith('#'):
562 outlines.append('')
561 outlines.append('inherit %s' % ' '.join(classes)) 563 outlines.append('inherit %s' % ' '.join(classes))
562 outlines.append('') 564 outlines.append('')
563 outlines.extend(lines_after) 565 outlines.extend(lines_after)
@@ -627,6 +629,7 @@ def get_license_md5sums(d, static_only=False):
627 md5sums['5f30f0716dfdd0d91eb439ebec522ec2'] = 'LGPLv2' 629 md5sums['5f30f0716dfdd0d91eb439ebec522ec2'] = 'LGPLv2'
628 md5sums['55ca817ccb7d5b5b66355690e9abc605'] = 'LGPLv2' 630 md5sums['55ca817ccb7d5b5b66355690e9abc605'] = 'LGPLv2'
629 md5sums['252890d9eee26aab7b432e8b8a616475'] = 'LGPLv2' 631 md5sums['252890d9eee26aab7b432e8b8a616475'] = 'LGPLv2'
632 md5sums['3214f080875748938ba060314b4f727d'] = 'LGPLv2'
630 md5sums['d32239bcb673463ab874e80d47fae504'] = 'GPLv3' 633 md5sums['d32239bcb673463ab874e80d47fae504'] = 'GPLv3'
631 md5sums['f27defe1e96c2e1ecd4e0c9be8967949'] = 'GPLv3' 634 md5sums['f27defe1e96c2e1ecd4e0c9be8967949'] = 'GPLv3'
632 md5sums['6a6a8e020838b23406c81b19c1d46df6'] = 'LGPLv3' 635 md5sums['6a6a8e020838b23406c81b19c1d46df6'] = 'LGPLv3'