From e992df524e42b68c5279068574c32768b1b5dbe4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 21 Sep 2014 12:26:22 -0400 Subject: opkbuild: Set OPK_PACKAGES_REDUCED --- (limited to 'src') diff --git a/src/opkbuild.sh b/src/opkbuild.sh index dfa3f40..dde438a 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -318,6 +318,23 @@ setup_build() ob_get_binary_packages -a "${OPK_HOST_ARCH}" -P 'all'; \ ob_get_binary_packages -a 'all' -P "${OPK_HOST_PLAT}"; \ ob_get_binary_packages -a 'all' -P 'all')" + # This is an internal non-SPF variable. The definition of OPK_PACKAGES + # may change in future SPF versions. + OPK_PACKAGES_REDUCED="$(\ + ob_get_binary_packages -a "${OPK_HOST_ARCH}" \ + -P "${OPK_HOST_PLAT}")" + if ! ${opt_plat_dep}; then + OPK_PACKAGES_REDUCED="${OPK_PACKAGES_REDUCED} $(\ + ob_get_binary_packages -a "${OPK_HOST_ARCH}" -P 'all')" + fi + if ! ${opt_arch_dep}; then + OPK_PACKAGES_REDUCED="${OPK_PACKAGES_REDUCED} $(\ + ob_get_binary_packages -a 'all' -P "${OPK_HOST_PLAT}")" + if ! ${opt_plat_dep}; then + OPK_PACKAGES_REDUCED="${OPK_PACKAGES_REDUCED} $(\ + ob_get_binary_packages -a 'all' -P 'all')" + fi + fi eval "$('@@BINDIR@@/ob-buildenv' | sed 's/^/export /')" -- cgit v0.9.1