From 79a4501a2ead92cb512eef0bd3dfe133d0e5d799 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 20 Sep 2010 14:18:45 +0100 Subject: Complete packages -> recipes transition Signed-off-by: Richard Purdie --- meta/recipes-core/tasks/task-poky-nfs.bb | 24 +++++++ meta/recipes-core/tasks/task-poky-sdk.bb | 84 ++++++++++++++++++++++ .../tasks/task-poky-standalone-sdk-target.bb | 14 ++++ meta/recipes-core/tasks/task-poky-tools.bb | 77 ++++++++++++++++++++ meta/recipes-core/tasks/task-sdk-host.bb | 32 +++++++++ 5 files changed, 231 insertions(+) create mode 100644 meta/recipes-core/tasks/task-poky-nfs.bb create mode 100644 meta/recipes-core/tasks/task-poky-sdk.bb create mode 100644 meta/recipes-core/tasks/task-poky-standalone-sdk-target.bb create mode 100644 meta/recipes-core/tasks/task-poky-tools.bb create mode 100644 meta/recipes-core/tasks/task-sdk-host.bb (limited to 'meta/recipes-core/tasks') diff --git a/meta/recipes-core/tasks/task-poky-nfs.bb b/meta/recipes-core/tasks/task-poky-nfs.bb new file mode 100644 index 000000000..b929bbe82 --- /dev/null +++ b/meta/recipes-core/tasks/task-poky-nfs.bb @@ -0,0 +1,24 @@ +# +# Copyright (C) 2008 OpenedHand Ltd. +# + +DESCRIPTION = "NFS tasks for Poky" +LICENSE = "MIT" +PR = "r0" + +PACKAGES = "\ + task-poky-nfs-server \ + task-poky-nfs-server-dbg \ + task-poky-nfs-server-dev \ + " + +ALLOW_EMPTY = "1" + +RDEPENDS_task-poky-nfs-server = "\ + nfs-utils" + +# rpcinfo can be useful but only with glibc images +GLIBC_DEPENDENCIES = "glibc-utils" + +RRECOMMENDS_task-poky-nfs-server_append_linux = "${GLIBC_DEPENDENCIES}" +RRECOMMENDS_task-poky-nfs-server_append_linux-gnueabi = "${GLIBC_DEPENDENCIES}" \ No newline at end of file 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 000000000..021878cf0 --- /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-*" diff --git a/meta/recipes-core/tasks/task-poky-standalone-sdk-target.bb b/meta/recipes-core/tasks/task-poky-standalone-sdk-target.bb new file mode 100644 index 000000000..4aa318881 --- /dev/null +++ b/meta/recipes-core/tasks/task-poky-standalone-sdk-target.bb @@ -0,0 +1,14 @@ +DESCRIPTION = "Target packages for the standalone SDK" +PR = "r6" +LICENSE = "MIT" +ALLOW_EMPTY = "1" + +PACKAGES = "${PN} ${PN}-dbg" + +RDEPENDS_${PN} = "\ + libgcc \ + libgcc-dev \ + libstdc++ \ + libstdc++-dev \ + ${LIBC_DEPENDENCIES} \ + " diff --git a/meta/recipes-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb new file mode 100644 index 000000000..e5d4200eb --- /dev/null +++ b/meta/recipes-core/tasks/task-poky-tools.bb @@ -0,0 +1,77 @@ +# +# Copyright (C) 2008 OpenedHand Ltd. +# + +DESCRIPTION = "Tools tasks for Poky" +LICENSE = "MIT" +PR = "r6" + +PACKAGES = "\ + task-poky-tools-debug \ + task-poky-tools-debug-dbg \ + task-poky-tools-debug-dev \ + task-poky-tools-profile \ + task-poky-tools-profile-dbg \ + task-poky-tools-profile-dev \ + task-poky-tools-testapps \ + task-poky-tools-testapps-dbg \ + task-poky-tools-testapps-dev \ + " + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +ALLOW_EMPTY = "1" + +# kexec-tools doesn't work on Mips +KEXECTOOLS ?= "kexec-tools" +KEXECTOOLS_mips ?= "" +KEXECTOOLS_mipsel ?= "" +KEXECTOOLS_powerpc ?= "" + +RDEPENDS_task-poky-tools-debug = "\ + gdb \ + gdbserver \ + tcf-agent \ + strace" + +RDEPENDS_task-poky-tools-profile = "\ + oprofile \ + oprofileui-server \ + powertop \ + latencytop \ + lttng-control \ + lttng-viewer" + +RRECOMMENDS_task-poky-tools-profile = "\ + perf \ + trace-cmd \ + kernel-module-oprofile" + +# exmap-console +# exmap-server + +# At present we only build lttng-ust on +# qemux86/qemux86-64/qemuppc/emenlow/netbook since upstream liburcu +# (which is required by lttng-ust) may not build on other platforms, like +# MIPS and qemu ARMv5te that poky uses now. +RDEPENDS_task-poky-tools-profile_append_qemux86 = " valgrind lttng-ust" +RDEPENDS_task-poky-tools-profile_append_qemux86-64 = " lttng-ust" +RDEPENDS_task-poky-tools-profile_append_qemuppc = " lttng-ust" +RDEPENDS_task-poky-tools-profile_append_emenlow = " lttng-ust" +RDEPENDS_task-poky-tools-profile_append_netbook = " lttng-ust" + +RDEPENDS_task-poky-tools-testapps = "\ + blktool \ + tslib-calibrate \ + tslib-tests \ + lrzsz \ + ${KEXECTOOLS} \ + alsa-utils-amixer \ + alsa-utils-aplay \ + owl-video \ + gst-meta-video \ + gst-meta-audio \ + xrestop \ + xwininfo \ + xprop \ + xvideo-tests" diff --git a/meta/recipes-core/tasks/task-sdk-host.bb b/meta/recipes-core/tasks/task-sdk-host.bb new file mode 100644 index 000000000..bccf48dbd --- /dev/null +++ b/meta/recipes-core/tasks/task-sdk-host.bb @@ -0,0 +1,32 @@ +# +# Copyright (C) 2007 OpenedHand Ltd +# + +DESCRIPTION = "Host packages for the standalone SDK or external toolchain" +PR = "r8" +LICENSE = "MIT" +ALLOW_EMPTY = "1" + +inherit nativesdk + +PACKAGES = "${PN}" + +RDEPENDS_${PN} = "\ + binutils-cross-canadian \ + gdb-cross-canadian \ + gcc-cross-canadian \ + pkgconfig-nativesdk \ + qemu-nativesdk \ + qemu-helper-nativesdk \ + pseudo-nativesdk \ + unfs-server-nativesdk \ + opkg-nativesdk \ + " + +RDEPENDS_${PN}_darwin8 = "\ + odcctools-cross-canadian \ + llvm-cross-canadian \ + pkgconfig-nativesdk \ + opkg-nativesdk \ + libtool-nativesdk \ + " -- cgit v1.2.3