diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-20 14:18:45 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-20 14:18:45 +0100 |
commit | 79a4501a2ead92cb512eef0bd3dfe133d0e5d799 (patch) | |
tree | 5f82f1971c81034799bd5ab330e54b281020fc24 /meta/recipes-core/tasks/task-poky-sdk.bb | |
parent | 03d9669cbcc35a49120b9cc277723bccd93f4cf3 (diff) | |
download | openembedded-core-79a4501a2ead92cb512eef0bd3dfe133d0e5d799.tar.gz openembedded-core-79a4501a2ead92cb512eef0bd3dfe133d0e5d799.tar.bz2 openembedded-core-79a4501a2ead92cb512eef0bd3dfe133d0e5d799.zip |
Complete packages -> recipes transition
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/tasks/task-poky-sdk.bb')
-rw-r--r-- | meta/recipes-core/tasks/task-poky-sdk.bb | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/meta/recipes-core/tasks/task-poky-sdk.bb b/meta/recipes-core/tasks/task-poky-sdk.bb new file mode 100644 index 0000000000..021878cf06 --- /dev/null +++ b/meta/recipes-core/tasks/task-poky-sdk.bb @@ -0,0 +1,84 @@ +# +# Copyright (C) 2007 OpenedHand Ltd. +# + +DESCRIPTON = "Software Development Tasks for OpenedHand Poky" +LICENSE = "MIT" +DEPENDS = "task-poky" +PR = "r5" + +ALLOW_EMPTY = "1" +#PACKAGEFUNCS =+ 'generate_sdk_pkgs' + +PACKAGES = "\ + task-poky-sdk \ + task-poky-sdk-dbg \ + task-poky-sdk-dev" + +RDEPENDS_task-poky-sdk = "\ + autoconf \ + automake \ + binutils \ + binutils-symlinks \ + coreutils \ + cpp \ + cpp-symlinks \ + diffutils \ + gcc \ + gcc-symlinks \ + g++ \ + g++-symlinks \ + gettext \ + make \ + intltool \ + libstdc++ \ + libstdc++-dev \ + libtool \ + perl-module-re \ + perl-module-text-wrap \ + pkgconfig \ + findutils \ + quilt \ + less \ + distcc" + +#python generate_sdk_pkgs () { +# poky_pkgs = read_pkgdata('task-poky', d)['PACKAGES'] +# pkgs = bb.data.getVar('PACKAGES', d, 1).split() +# for pkg in poky_pkgs.split(): +# newpkg = pkg.replace('task-poky', 'task-poky-sdk') +# +# # for each of the task packages, add a corresponding sdk task +# pkgs.append(newpkg) +# +# # for each sdk task, take the rdepends of the non-sdk task, and turn +# # that into rrecommends upon the -dev versions of those, not unlike +# # the package depchain code +# spkgdata = read_subpkgdata(pkg, d) +# +# rdepends = explode_deps(spkgdata.get('RDEPENDS_%s' % pkg) or '') +# rreclist = [] +# +# for depend in rdepends: +# split_depend = depend.split(' (') +# name = split_depend[0].strip() +# if packaged('%s-dev' % name, d): +# rreclist.append('%s-dev' % name) +# else: +# deppkgdata = read_subpkgdata(name, d) +# rdepends2 = explode_deps(deppkgdata.get('RDEPENDS_%s' % name) or '') +# for depend in rdepends2: +# split_depend = depend.split(' (') +# name = split_depend[0].strip() +# if packaged('%s-dev' % name, d): +# rreclist.append('%s-dev' % name) +# +# oldrrec = bb.data.getVar('RRECOMMENDS_%s' % newpkg, d) or '' +# bb.data.setVar('RRECOMMENDS_%s' % newpkg, oldrrec + ' ' + ' '.join(rreclist), d) +# # bb.note('RRECOMMENDS_%s = "%s"' % (newpkg, bb.data.getVar('RRECOMMENDS_%s' % newpkg, d))) +# +# # bb.note('pkgs is %s' % pkgs) +# bb.data.setVar('PACKAGES', ' '.join(pkgs), d) +#} +# +#PACKAGES_DYNAMIC = "task-poky-sdk-*" |