]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_ipk: Add support for PACKAGE_EXCLUDE
authorMark Hatle <mark.hatle@windriver.com>
Wed, 14 Aug 2013 01:31:23 +0000 (20:31 -0500)
committerSaul Wold <sgw@linux.intel.com>
Thu, 22 Aug 2013 16:15:34 +0000 (09:15 -0700)
This uses the new --add-exclude arguments in opkg-cl, to list the excluded
packages.

If an excluded package is needed for the install to resolve,
an error will be generated.  Recommended packages will not
generate an error.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/package_ipk.bbclass

index 69a6d953621c217e0d6306651555c90d5855717b..68ffc62583b02c92c83e2b378eca725d7df01a49 100644 (file)
@@ -12,6 +12,7 @@ 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"]}"
+OPKG_ARGS += "${@['', '--add-exclude ' + ' --add-exclude '.join((d.getVar('PACKAGE_EXCLUDE', True) or "").split())][(d.getVar("PACKAGE_EXCLUDE", True) or "") != ""]}"
 
 OPKGLIBDIR = "${localstatedir}/lib"