diff options
Diffstat (limited to 'meta/packages/tasks/task-oh-sdk.bb')
-rw-r--r-- | meta/packages/tasks/task-oh-sdk.bb | 89 |
1 files changed, 46 insertions, 43 deletions
diff --git a/meta/packages/tasks/task-oh-sdk.bb b/meta/packages/tasks/task-oh-sdk.bb index a142816306..ac3aaec746 100644 --- a/meta/packages/tasks/task-oh-sdk.bb +++ b/meta/packages/tasks/task-oh-sdk.bb | |||
@@ -1,10 +1,13 @@ | |||
1 | DESCRIPTON = "Software Development Tasks for OpenedHand Poky" | 1 | DESCRIPTON = "Software Development Tasks for OpenedHand Poky" |
2 | PR = "r11" | 2 | PR = "r12" |
3 | DEPENDS = "task-oh" | 3 | DEPENDS = "task-oh" |
4 | ALLOW_EMPTY = "1" | 4 | ALLOW_EMPTY = "1" |
5 | PACKAGEFUNCS =+ 'generate_sdk_pkgs' | 5 | #PACKAGEFUNCS =+ 'generate_sdk_pkgs' |
6 | 6 | ||
7 | PACKAGES = "task-oh-sdk" | 7 | PACKAGES = "\ |
8 | task-oh-sdk \ | ||
9 | task-oh-sdk-dbg \ | ||
10 | task-oh-sdk-dev" | ||
8 | 11 | ||
9 | RDEPENDS_task-oh-sdk = "\ | 12 | RDEPENDS_task-oh-sdk = "\ |
10 | autoconf \ | 13 | autoconf \ |
@@ -19,43 +22,43 @@ RDEPENDS_task-oh-sdk = "\ | |||
19 | pkgconfig \ | 22 | pkgconfig \ |
20 | distcc" | 23 | distcc" |
21 | 24 | ||
22 | python generate_sdk_pkgs () { | 25 | #python generate_sdk_pkgs () { |
23 | ohpkgs = read_pkgdata('task-oh', d)['PACKAGES'] | 26 | # ohpkgs = read_pkgdata('task-oh', d)['PACKAGES'] |
24 | pkgs = bb.data.getVar('PACKAGES', d, 1).split() | 27 | # pkgs = bb.data.getVar('PACKAGES', d, 1).split() |
25 | for pkg in ohpkgs.split(): | 28 | # for pkg in ohpkgs.split(): |
26 | newpkg = pkg.replace('task-oh', 'task-oh-sdk') | 29 | # newpkg = pkg.replace('task-oh', 'task-oh-sdk') |
27 | 30 | # | |
28 | # for each of the task packages, add a corresponding sdk task | 31 | # # for each of the task packages, add a corresponding sdk task |
29 | pkgs.append(newpkg) | 32 | # pkgs.append(newpkg) |
30 | 33 | # | |
31 | # for each sdk task, take the rdepends of the non-sdk task, and turn | 34 | # # for each sdk task, take the rdepends of the non-sdk task, and turn |
32 | # that into rrecommends upon the -dev versions of those, not unlike | 35 | # # that into rrecommends upon the -dev versions of those, not unlike |
33 | # the package depchain code | 36 | # # the package depchain code |
34 | spkgdata = read_subpkgdata(pkg, d) | 37 | # spkgdata = read_subpkgdata(pkg, d) |
35 | 38 | # | |
36 | rdepends = explode_deps(spkgdata.get('RDEPENDS_%s' % pkg) or '') | 39 | # rdepends = explode_deps(spkgdata.get('RDEPENDS_%s' % pkg) or '') |
37 | rreclist = [] | 40 | # rreclist = [] |
38 | 41 | # | |
39 | for depend in rdepends: | 42 | # for depend in rdepends: |
40 | split_depend = depend.split(' (') | 43 | # split_depend = depend.split(' (') |
41 | name = split_depend[0].strip() | 44 | # name = split_depend[0].strip() |
42 | if packaged('%s-dev' % name, d): | 45 | # if packaged('%s-dev' % name, d): |
43 | rreclist.append('%s-dev' % name) | 46 | # rreclist.append('%s-dev' % name) |
44 | else: | 47 | # else: |
45 | deppkgdata = read_subpkgdata(name, d) | 48 | # deppkgdata = read_subpkgdata(name, d) |
46 | rdepends2 = explode_deps(deppkgdata.get('RDEPENDS_%s' % name) or '') | 49 | # rdepends2 = explode_deps(deppkgdata.get('RDEPENDS_%s' % name) or '') |
47 | for depend in rdepends2: | 50 | # for depend in rdepends2: |
48 | split_depend = depend.split(' (') | 51 | # split_depend = depend.split(' (') |
49 | name = split_depend[0].strip() | 52 | # name = split_depend[0].strip() |
50 | if packaged('%s-dev' % name, d): | 53 | # if packaged('%s-dev' % name, d): |
51 | rreclist.append('%s-dev' % name) | 54 | # rreclist.append('%s-dev' % name) |
52 | 55 | # | |
53 | oldrrec = bb.data.getVar('RRECOMMENDS_%s' % newpkg, d) or '' | 56 | # oldrrec = bb.data.getVar('RRECOMMENDS_%s' % newpkg, d) or '' |
54 | bb.data.setVar('RRECOMMENDS_%s' % newpkg, oldrrec + ' ' + ' '.join(rreclist), d) | 57 | # bb.data.setVar('RRECOMMENDS_%s' % newpkg, oldrrec + ' ' + ' '.join(rreclist), d) |
55 | # bb.note('RRECOMMENDS_%s = "%s"' % (newpkg, bb.data.getVar('RRECOMMENDS_%s' % newpkg, d))) | 58 | # # bb.note('RRECOMMENDS_%s = "%s"' % (newpkg, bb.data.getVar('RRECOMMENDS_%s' % newpkg, d))) |
56 | 59 | # | |
57 | # bb.note('pkgs is %s' % pkgs) | 60 | # # bb.note('pkgs is %s' % pkgs) |
58 | bb.data.setVar('PACKAGES', ' '.join(pkgs), d) | 61 | # bb.data.setVar('PACKAGES', ' '.join(pkgs), d) |
59 | } | 62 | #} |
60 | 63 | # | |
61 | PACKAGES_DYNAMIC = "task-oh-sdk-*" | 64 | #PACKAGES_DYNAMIC = "task-oh-sdk-*" |