diff options
-rw-r--r-- | src/opkbuild.sh | 17 |
1 files changed, 17 insertions, 0 deletions
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 /')" |