summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_deb.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2013-08-12 19:47:11 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-22 18:30:00 +0100
commit388278818d2af0a2c6a687765d43f22fe6f3c407 (patch)
tree97f629be5a3d01036bdc5d5e2e97e23ef6127299 /meta/classes/rootfs_deb.bbclass
parentdc5f6c3898555b59f16bf809ae4c5418656e6ac9 (diff)
downloadpoky-388278818d2af0a2c6a687765d43f22fe6f3c407.tar.gz
package_deb: Add support for NO_RECOMMENDATIONS and PACKAGE_EXCLUDE
Add support for NO_RECOMMENDATIONS and PACKAGE_EXCLUDE. Also add a warning that ensures users know that BAD_RECOMMENDATIONS support is not implemented in the debian package/rootfs classes. (From OE-Core rev: 42b115b6d65c8205acb77b96db481f3e5172266b) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
-rw-r--r--meta/classes/rootfs_deb.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index edd1037f87..dcfe78669c 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -11,6 +11,12 @@ rootfs_deb_do_rootfs[vardepsexclude] += "BUILDNAME"
11 11
12do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock" 12do_rootfs[lockfiles] += "${DEPLOY_DIR_DEB}/deb.lock"
13 13
14python rootfs_deb_bad_recommendations() {
15 if d.getVar("BAD_RECOMMENDATIONS", True):
16 bb.warn("Debian package install does not support BAD_RECOMMENDATIONS")
17}
18do_rootfs[prefuncs] += "rootfs_deb_bad_recommendations"
19
14DEB_POSTPROCESS_COMMANDS = "" 20DEB_POSTPROCESS_COMMANDS = ""
15 21
16opkglibdir = "${localstatedir}/lib/opkg" 22opkglibdir = "${localstatedir}/lib/opkg"
@@ -113,7 +119,7 @@ remove_packaging_data_files() {
113} 119}
114 120
115rootfs_install_packages() { 121rootfs_install_packages() {
116 ${STAGING_BINDIR_NATIVE}/apt-get install `cat $1` --force-yes --allow-unauthenticated 122 ${STAGING_BINDIR_NATIVE}/apt-get ${APT_ARGS} install `cat $1` --force-yes --allow-unauthenticated
117 123
118 # Mark all packages installed 124 # Mark all packages installed
119 sed -i -e "s/Status: install ok unpacked/Status: install ok installed/;" $INSTALL_ROOTFS_DEB/var/lib/dpkg/status 125 sed -i -e "s/Status: install ok unpacked/Status: install ok installed/;" $INSTALL_ROOTFS_DEB/var/lib/dpkg/status