summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/packagegroups/packagegroup-core-sdk.bb')
-rw-r--r--meta/recipes-core/packagegroups/packagegroup-core-sdk.bb77
1 files changed, 77 insertions, 0 deletions
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb b/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb
new file mode 100644
index 0000000..1723989
--- /dev/null
+++ b/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb
@@ -0,0 +1,77 @@
1#
2# Copyright (C) 2007 OpenedHand Ltd.
3#
4
5SUMMARY = "Software development tools"
6LICENSE = "MIT"
7PR = "r9"
8
9inherit packagegroup
10
11#PACKAGEFUNCS =+ 'generate_sdk_pkgs'
12
13# For backwards compatibility after rename
14RPROVIDES_packagegroup-core-sdk = "task-core-sdk"
15RREPLACES_packagegroup-core-sdk = "task-core-sdk"
16RCONFLICTS_packagegroup-core-sdk = "task-core-sdk"
17
18RDEPENDS_packagegroup-core-sdk = "\
19 packagegroup-core-buildessential \
20 coreutils \
21 ccache \
22 diffutils \
23 intltool \
24 perl-module-re \
25 perl-module-text-wrap \
26 findutils \
27 quilt \
28 less \
29 distcc \
30 ldd \
31 file \
32 tcl"
33
34RRECOMMENDS_packagegroup-core-sdk = "\
35 libgomp \
36 libgomp-dev"
37
38#python generate_sdk_pkgs () {
39# poky_pkgs = read_pkgdata('packagegroup-core', d)['PACKAGES']
40# pkgs = d.getVar('PACKAGES', True).split()
41# for pkg in poky_pkgs.split():
42# newpkg = pkg.replace('packagegroup-core', 'packagegroup-core-sdk')
43#
44# # for each of the task packages, add a corresponding sdk task
45# pkgs.append(newpkg)
46#
47# # for each sdk task, take the rdepends of the non-sdk task, and turn
48# # that into rrecommends upon the -dev versions of those, not unlike
49# # the package depchain code
50# spkgdata = read_subpkgdata(pkg, d)
51#
52# rdepends = explode_deps(spkgdata.get('RDEPENDS_%s' % pkg) or '')
53# rreclist = []
54#
55# for depend in rdepends:
56# split_depend = depend.split(' (')
57# name = split_depend[0].strip()
58# if packaged('%s-dev' % name, d):
59# rreclist.append('%s-dev' % name)
60# else:
61# deppkgdata = read_subpkgdata(name, d)
62# rdepends2 = explode_deps(deppkgdata.get('RDEPENDS_%s' % name) or '')
63# for depend in rdepends2:
64# split_depend = depend.split(' (')
65# name = split_depend[0].strip()
66# if packaged('%s-dev' % name, d):
67# rreclist.append('%s-dev' % name)
68#
69# oldrrec = d.getVar('RRECOMMENDS_%s' % newpkg) or ''
70# d.setVar('RRECOMMENDS_%s' % newpkg, oldrrec + ' ' + ' '.join(rreclist))
71# # bb.note('RRECOMMENDS_%s = "%s"' % (newpkg, d.getVar('RRECOMMENDS_%s' % newpkg)))
72#
73# # bb.note('pkgs is %s' % pkgs)
74# d.setVar('PACKAGES', ' '.join(pkgs))
75#}
76#
77#PACKAGES_DYNAMIC += "^packagegroup-core-sdk-.*"