diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-05-20 14:58:34 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-05-20 14:58:34 +0000 |
| commit | bfe8092d3b82939eed9955b58df32274b61f5447 (patch) | |
| tree | 9a9d61700de25763a549f991a4677294c9fc7c4b /meta/classes | |
| parent | 03c0969ef80acf0cf3a3d1d3485df61081fafc1b (diff) | |
| download | poky-bfe8092d3b82939eed9955b58df32274b61f5447.tar.gz | |
poky-image.bbclass: Correctly handle inserting package-managers into images by making it an image feature
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4517 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/package_deb.bbclass | 4 | ||||
| -rw-r--r-- | meta/classes/package_ipk.bbclass | 1 | ||||
| -rw-r--r-- | meta/classes/poky-image.bbclass | 6 | ||||
| -rw-r--r-- | meta/classes/rootfs_deb.bbclass | 3 | ||||
| -rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 3 |
5 files changed, 11 insertions, 6 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index ef0eacf44f..8f5fedada7 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
| @@ -1,11 +1,9 @@ | |||
| 1 | # | 1 | # |
| 2 | # Copyright 2006-2007 OpenedHand Ltd. | 2 | # Copyright 2006-2008 OpenedHand Ltd. |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | inherit package | 5 | inherit package |
| 6 | 6 | ||
| 7 | BOOTSTRAP_EXTRA_RDEPENDS += "dpkg run-postinsts" | ||
| 8 | DISTRO_EXTRA_RDEPENDS += "dpkg run-postinsts" | ||
| 9 | IMAGE_PKGTYPE ?= "deb" | 7 | IMAGE_PKGTYPE ?= "deb" |
| 10 | 8 | ||
| 11 | # Map TARGET_ARCH to Debian's ideas about architectures | 9 | # Map TARGET_ARCH to Debian's ideas about architectures |
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index 4f669aba8e..f6c71a250d 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | inherit package | 1 | inherit package |
| 2 | 2 | ||
| 3 | DISTRO_EXTRA_RDEPENDS += "opkg-collateral opkg" | ||
| 4 | IMAGE_PKGTYPE ?= "ipk" | 3 | IMAGE_PKGTYPE ?= "ipk" |
| 5 | 4 | ||
| 6 | IPKGCONF_TARGET = "${STAGING_ETCDIR_NATIVE}/opkg.conf" | 5 | IPKGCONF_TARGET = "${STAGING_ETCDIR_NATIVE}/opkg.conf" |
diff --git a/meta/classes/poky-image.bbclass b/meta/classes/poky-image.bbclass index 41d5527960..8f7daa3ae2 100644 --- a/meta/classes/poky-image.bbclass +++ b/meta/classes/poky-image.bbclass | |||
| @@ -73,12 +73,14 @@ POKY_BASE_INSTALL = '\ | |||
| 73 | ${@base_contains("IMAGE_FEATURES", "nfs-server", "task-poky-nfs-server", "",d)} \ | 73 | ${@base_contains("IMAGE_FEATURES", "nfs-server", "task-poky-nfs-server", "",d)} \ |
| 74 | ${@base_contains("IMAGE_FEATURES", ["nfs-server", "dbg-pkgs"], "task-poky-nfs-server-dbg", "",d)} \ | 74 | ${@base_contains("IMAGE_FEATURES", ["nfs-server", "dbg-pkgs"], "task-poky-nfs-server-dbg", "",d)} \ |
| 75 | ${@base_contains("IMAGE_FEATURES", ["nfs-server", "dev-pkgs"], "task-poky-nfs-server-dev", "",d)} \ | 75 | ${@base_contains("IMAGE_FEATURES", ["nfs-server", "dev-pkgs"], "task-poky-nfs-server-dev", "",d)} \ |
| 76 | \ | ||
| 77 | ${@base_contains("IMAGE_FEATURES", "package-management", "${ROOTFS_PKGMANAGE}", "",d)} \ | ||
| 76 | ' | 78 | ' |
| 77 | 79 | ||
| 78 | IMAGE_INSTALL ?= "${POKY_BASE_INSTALL}" | 80 | IMAGE_INSTALL ?= "${POKY_BASE_INSTALL}" |
| 79 | 81 | ||
| 80 | X11_IMAGE_FEATURES = "x11-base apps-x11-core" | 82 | X11_IMAGE_FEATURES = "x11-base apps-x11-core package-management" |
| 81 | SATO_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-sato apps-x11-games apps-x11-pimlico" | 83 | SATO_IMAGE_FEATURES = "${X11_IMAGE_FEATURES} apps-x11-sato apps-x11-games apps-x11-pimlico package-management" |
| 82 | 84 | ||
| 83 | inherit image | 85 | inherit image |
| 84 | 86 | ||
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index 467626b2b1..eb08f4ace4 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass | |||
| @@ -2,6 +2,9 @@ | |||
| 2 | # Copyright 2006-2007 Openedhand Ltd. | 2 | # Copyright 2006-2007 Openedhand Ltd. |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | ROOTFS_PKGMANAGE = "run-postinsts dpkg" | ||
| 6 | ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" | ||
| 7 | |||
| 5 | do_rootfs[depends] += "dpkg-native:do_populate_staging apt-native:do_populate_staging" | 8 | do_rootfs[depends] += "dpkg-native:do_populate_staging apt-native:do_populate_staging" |
| 6 | do_rootfs[recrdeptask] += "do_package_write_deb" | 9 | do_rootfs[recrdeptask] += "do_package_write_deb" |
| 7 | 10 | ||
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index a27688a1ac..8a879680c5 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
| @@ -5,6 +5,9 @@ | |||
| 5 | # See image.bbclass for a usage of this. | 5 | # See image.bbclass for a usage of this. |
| 6 | # | 6 | # |
| 7 | 7 | ||
| 8 | ROOTFS_PKGMANAGE = "opkg opkg-collateral" | ||
| 9 | ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" | ||
| 10 | |||
| 8 | do_rootfs[depends] += "opkg-native:do_populate_staging ipkg-utils-native:do_populate_staging" | 11 | do_rootfs[depends] += "opkg-native:do_populate_staging ipkg-utils-native:do_populate_staging" |
| 9 | do_rootfs[recrdeptask] += "do_package_write_ipk" | 12 | do_rootfs[recrdeptask] += "do_package_write_ipk" |
| 10 | 13 | ||
