buildsystem: recursive unpack & build is only needed by sequential builds

This commit is contained in:
MilhouseVH 2019-12-29 23:19:58 +00:00
parent 96c510394d
commit 99ed1d6e31
2 changed files with 18 additions and 11 deletions

View File

@ -63,9 +63,12 @@ case "${TARGET}" in
"init") _pkg_depends="${PKG_DEPENDS_INIT}";; "init") _pkg_depends="${PKG_DEPENDS_INIT}";;
"bootstrap") _pkg_depends="${PKG_DEPENDS_BOOTSTRAP}";; "bootstrap") _pkg_depends="${PKG_DEPENDS_BOOTSTRAP}";;
esac esac
for p in ${_pkg_depends}; do
${SCRIPTS}/build "${p}" "${PARENT_PKG}" if is_sequential_build; then
done for p in ${_pkg_depends}; do
${SCRIPTS}/build "${p}" "${PARENT_PKG}"
done
fi
# virtual packages are not built as they only contain dependencies, so dont go further here # virtual packages are not built as they only contain dependencies, so dont go further here
if [ "${PKG_SECTION}" = "virtual" ]; then if [ "${PKG_SECTION}" = "virtual" ]; then

View File

@ -45,14 +45,18 @@ mkdir -p ${STAMPS_INSTALL}/${PKG_NAME}
${SCRIPTS}/build "${1}" "${PARENT_PKG}" ${SCRIPTS}/build "${1}" "${PARENT_PKG}"
if [ "${TARGET}" = "target" ] ; then if is_sequential_build; then
for p in ${PKG_DEPENDS_TARGET}; do if [ "${TARGET}" = "target" ] ; then
${SCRIPTS}/install "${p}" "${PARENT_PKG}" for p in ${PKG_DEPENDS_TARGET}; do
done ${SCRIPTS}/install "${p}" "${PARENT_PKG}"
elif [ "${TARGET}" = "init" ] ; then done
for p in ${PKG_DEPENDS_INIT}; do elif [ "${TARGET}" = "init" ] ; then
${SCRIPTS}/install "${p}" "${PARENT_PKG}" for p in ${PKG_DEPENDS_INIT}; do
done ${SCRIPTS}/install "${p}" "${PARENT_PKG}"
done
fi
fi
if [ "${TARGET}" = "init" ] ; then
INSTALL=${BUILD}/initramfs INSTALL=${BUILD}/initramfs
fi fi