Patchwork [09/11] package_ipk: Add support for NO_RECOMMENDATIONS

login
register
mail settings
Submitter Mark Hatle
Date Aug. 14, 2013, 8:30 p.m.
Message ID <1376512209-11622-10-git-send-email-mark.hatle@windriver.com>
Download mbox | patch
Permalink /patch/55641/
State Accepted
Commit e36c9947c82be034133a27db6e0f7a769daeb185
Headers show

Comments

Mark Hatle - Aug. 14, 2013, 8:30 p.m.
Uses the opkg --no-install-recommends option.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
 meta/classes/package_ipk.bbclass | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 3305879..69a6d95 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -11,6 +11,7 @@  PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
 OPKGBUILDCMD ??= "opkg-build"
 
 OPKG_ARGS = "-f $INSTALL_CONF_IPK -o $INSTALL_ROOTFS_IPK --force_postinstall --prefer-arch-to-version"
+OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS", True) == "1"]}"
 
 OPKGLIBDIR = "${localstatedir}/lib"