summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-08-29 11:38:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-04 12:52:55 +0100
commit272cb74d70686cb7f72005dc25e02f38b46ecd57 (patch)
tree3a5e4cb0c9a2e407b2d04c78b1eb51d0f429ca64 /meta/classes
parentf1df3f828bfc9e70bf8cf5a7c2e2cf216944785a (diff)
downloadpoky-272cb74d70686cb7f72005dc25e02f38b46ecd57.tar.gz
Rename task to packagegroup
"Package group" is a much more appropriate name for these than task, since we use the word task to describe units of work executed by BitBake. (From OE-Core rev: 424dcf7046e4ad09dcc664eb1992201195247fcf) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/archiver.bbclass4
-rw-r--r--meta/classes/core-image.bbclass34
-rw-r--r--meta/classes/insane.bbclass2
-rw-r--r--meta/classes/package.bbclass2
-rw-r--r--meta/classes/packagegroup.bbclass30
-rw-r--r--meta/classes/populate_sdk_base.bbclass4
-rw-r--r--meta/classes/task.bbclass32
7 files changed, 57 insertions, 51 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 3146d02b3c..160a3aad52 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -188,11 +188,11 @@ def get_applying_patches(d):
188 188
189def not_tarball(d): 189def not_tarball(d):
190 """ 190 """
191 packages including key words 'work-shared', 'native', 'task-' will be passed 191 packages including key words 'work-shared', 'native', 'packagegroup-' will be passed
192 """ 192 """
193 workdir = d.getVar('WORKDIR', True) 193 workdir = d.getVar('WORKDIR', True)
194 s = d.getVar('S', True) 194 s = d.getVar('S', True)
195 if 'work-shared' in s or 'task-' in workdir or 'native' in workdir: 195 if 'work-shared' in s or 'packagegroup-' in workdir or 'native' in workdir:
196 return True 196 return True
197 else: 197 else:
198 return False 198 return False
diff --git a/meta/classes/core-image.bbclass b/meta/classes/core-image.bbclass
index a37cdfc463..a85a9ea456 100644
--- a/meta/classes/core-image.bbclass
+++ b/meta/classes/core-image.bbclass
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
7 7
8# IMAGE_FEATURES control content of the core reference images 8# IMAGE_FEATURES control content of the core reference images
9# 9#
10# By default we install task-core-boot and task-base packages - this gives us 10# By default we install packagegroup-core-boot and packagegroup-base packages - this gives us
11# working (console only) rootfs. 11# working (console only) rootfs.
12# 12#
13# Available IMAGE_FEATURES: 13# Available IMAGE_FEATURES:
@@ -27,21 +27,21 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
27# - ssh-server-openssh - SSH server (openssh) 27# - ssh-server-openssh - SSH server (openssh)
28# - debug-tweaks - makes an image suitable for development 28# - debug-tweaks - makes an image suitable for development
29# 29#
30PACKAGE_GROUP_apps-console-core = "task-core-apps-console" 30PACKAGE_GROUP_apps-console-core = "packagegroup-core-apps-console"
31PACKAGE_GROUP_x11-mini = "task-core-x11-mini" 31PACKAGE_GROUP_x11-mini = "packagegroup-core-x11-mini"
32PACKAGE_GROUP_x11-base = "task-core-x11-base" 32PACKAGE_GROUP_x11-base = "packagegroup-core-x11-base"
33PACKAGE_GROUP_x11-sato = "task-core-x11-sato" 33PACKAGE_GROUP_x11-sato = "packagegroup-core-x11-sato"
34PACKAGE_GROUP_apps-x11-core = "task-core-apps-x11-core" 34PACKAGE_GROUP_apps-x11-core = "packagegroup-core-apps-x11-core"
35PACKAGE_GROUP_apps-x11-games = "task-core-apps-x11-games" 35PACKAGE_GROUP_apps-x11-games = "packagegroup-core-apps-x11-games"
36PACKAGE_GROUP_tools-debug = "task-core-tools-debug" 36PACKAGE_GROUP_tools-debug = "packagegroup-core-tools-debug"
37PACKAGE_GROUP_tools-profile = "task-core-tools-profile" 37PACKAGE_GROUP_tools-profile = "packagegroup-core-tools-profile"
38PACKAGE_GROUP_tools-testapps = "task-core-tools-testapps" 38PACKAGE_GROUP_tools-testapps = "packagegroup-core-tools-testapps"
39PACKAGE_GROUP_tools-sdk = "task-core-sdk task-core-standalone-sdk-target" 39PACKAGE_GROUP_tools-sdk = "packagegroup-core-sdk packagegroup-core-standalone-sdk-target"
40PACKAGE_GROUP_nfs-server = "task-core-nfs-server" 40PACKAGE_GROUP_nfs-server = "packagegroup-core-nfs-server"
41PACKAGE_GROUP_ssh-server-dropbear = "task-core-ssh-dropbear" 41PACKAGE_GROUP_ssh-server-dropbear = "packagegroup-core-ssh-dropbear"
42PACKAGE_GROUP_ssh-server-openssh = "task-core-ssh-openssh" 42PACKAGE_GROUP_ssh-server-openssh = "packagegroup-core-ssh-openssh"
43PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}" 43PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}"
44PACKAGE_GROUP_qt4-pkgs = "task-core-qt-demos" 44PACKAGE_GROUP_qt4-pkgs = "packagegroup-core-qt-demos"
45 45
46 46
47# IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2' 47# IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2'
@@ -52,8 +52,8 @@ IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear"
52# An error exception would be raised if both image features foo and bar1(or bar2) are included 52# An error exception would be raised if both image features foo and bar1(or bar2) are included
53 53
54CORE_IMAGE_BASE_INSTALL = '\ 54CORE_IMAGE_BASE_INSTALL = '\
55 task-core-boot \ 55 packagegroup-core-boot \
56 task-base-extended \ 56 packagegroup-base-extended \
57 \ 57 \
58 ${CORE_IMAGE_EXTRA_INSTALL} \ 58 ${CORE_IMAGE_EXTRA_INSTALL} \
59 ' 59 '
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 6de14e0cac..e74eb3f3f6 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -591,7 +591,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, d):
591 return True 591 return True
592 592
593 sane = True 593 sane = True
594 if not "-dbg" in pkg and not "task-" in pkg and not "-image" in pkg: 594 if not "-dbg" in pkg and not "packagegroup-" in pkg and not "-image" in pkg:
595 # Copied from package_ipk.bbclass 595 # Copied from package_ipk.bbclass
596 # boiler plate to update the data 596 # boiler plate to update the data
597 localdata = bb.data.createCopy(d) 597 localdata = bb.data.createCopy(d)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 78af693551..c8aafc9752 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1763,7 +1763,7 @@ python package_depchains() {
1763 for dep in pkglibdeps[pkg]: 1763 for dep in pkglibdeps[pkg]:
1764 add_dep(pkglibdeplist, dep) 1764 add_dep(pkglibdeplist, dep)
1765 # FIXME this should not look at PN once all task recipes inherit from task.bbclass 1765 # FIXME this should not look at PN once all task recipes inherit from task.bbclass
1766 dbgdefaultdeps = ((d.getVar('DEPCHAIN_DBGDEFAULTDEPS', True) == '1') or (d.getVar('PN', True) or '').startswith('task-')) 1766 dbgdefaultdeps = ((d.getVar('DEPCHAIN_DBGDEFAULTDEPS', True) == '1') or (d.getVar('PN', True) or '').startswith('packagegroup-'))
1767 1767
1768 for suffix in pkgs: 1768 for suffix in pkgs:
1769 for pkg in pkgs[suffix]: 1769 for pkg in pkgs[suffix]:
diff --git a/meta/classes/packagegroup.bbclass b/meta/classes/packagegroup.bbclass
new file mode 100644
index 0000000000..6ec154a033
--- /dev/null
+++ b/meta/classes/packagegroup.bbclass
@@ -0,0 +1,30 @@
1# Task packages are only used to pull in other packages
2# via their dependencies. They are empty.
3ALLOW_EMPTY = "1"
4
5# By default, only the task package itself is in PACKAGES.
6# -dbg and -dev flavours are handled by the anonfunc below.
7# This means that task recipes used to build multiple task
8# packages have to modify PACKAGES after inheriting task.bbclass.
9PACKAGES = "${PN}"
10
11# By default, task packages do not depend on a certain architecture.
12# Only if dependencies are modified by MACHINE_FEATURES, packages
13# need to be set to MACHINE_ARCH after inheriting task.bbclass
14PACKAGE_ARCH = "all"
15
16# This automatically adds -dbg and -dev flavours of all PACKAGES
17# to the list. Their dependencies (RRECOMMENDS) are handled as usual
18# by package_depchains in a following step.
19python () {
20 packages = d.getVar('PACKAGES', True).split()
21 genpackages = []
22 for pkg in packages:
23 for postfix in ['-dbg', '-dev']:
24 genpackages.append(pkg+postfix)
25 d.setVar('PACKAGES', ' '.join(packages+genpackages))
26}
27
28# We don't want to look at shared library dependencies for the
29# dbg packages
30DEPCHAIN_DBGDEFAULTDEPS = "1"
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index c9fb00de48..1c151d7186 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -7,9 +7,9 @@ SDK_DEPLOY = "${TMPDIR}/deploy/sdk"
7 7
8SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${MULTIMACH_TARGET_SYS}" 8SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${MULTIMACH_TARGET_SYS}"
9 9
10TOOLCHAIN_HOST_TASK ?= "nativesdk-task-sdk-host task-cross-canadian-${TRANSLATED_TARGET_ARCH}" 10TOOLCHAIN_HOST_TASK ?= "nativesdk-packagegroup-sdk-host packagegroup-cross-canadian-${TRANSLATED_TARGET_ARCH}"
11TOOLCHAIN_HOST_TASK_ATTEMPTONLY ?= "" 11TOOLCHAIN_HOST_TASK_ATTEMPTONLY ?= ""
12TOOLCHAIN_TARGET_TASK ?= "task-core-standalone-sdk-target task-core-standalone-sdk-target-dbg" 12TOOLCHAIN_TARGET_TASK ?= "packagegroup-core-standalone-sdk-target packagegroup-core-standalone-sdk-target-dbg"
13TOOLCHAIN_TARGET_TASK_ATTEMPTONLY ?= "" 13TOOLCHAIN_TARGET_TASK_ATTEMPTONLY ?= ""
14TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}" 14TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${DISTRO_VERSION}"
15 15
diff --git a/meta/classes/task.bbclass b/meta/classes/task.bbclass
index 6ec154a033..28db50008f 100644
--- a/meta/classes/task.bbclass
+++ b/meta/classes/task.bbclass
@@ -1,30 +1,6 @@
1# Task packages are only used to pull in other packages 1python __anonymous() {
2# via their dependencies. They are empty. 2 bb.warn("%s: task.bbclass is deprecated, please inherit packagegroup instead" % d.getVar("PN", True))
3ALLOW_EMPTY = "1"
4
5# By default, only the task package itself is in PACKAGES.
6# -dbg and -dev flavours are handled by the anonfunc below.
7# This means that task recipes used to build multiple task
8# packages have to modify PACKAGES after inheriting task.bbclass.
9PACKAGES = "${PN}"
10
11# By default, task packages do not depend on a certain architecture.
12# Only if dependencies are modified by MACHINE_FEATURES, packages
13# need to be set to MACHINE_ARCH after inheriting task.bbclass
14PACKAGE_ARCH = "all"
15
16# This automatically adds -dbg and -dev flavours of all PACKAGES
17# to the list. Their dependencies (RRECOMMENDS) are handled as usual
18# by package_depchains in a following step.
19python () {
20 packages = d.getVar('PACKAGES', True).split()
21 genpackages = []
22 for pkg in packages:
23 for postfix in ['-dbg', '-dev']:
24 genpackages.append(pkg+postfix)
25 d.setVar('PACKAGES', ' '.join(packages+genpackages))
26} 3}
27 4
28# We don't want to look at shared library dependencies for the 5inherit packagegroup
29# dbg packages 6
30DEPCHAIN_DBGDEFAULTDEPS = "1"