armbian-next: move aggregation-had-run check to more strategic places (pre-bsp, pre-rootfs) instead of at the beginning of full_build_packages_rootfs_and_image()

This commit is contained in:
Ricardo Pardini
2023-01-28 20:03:06 +01:00
parent fa666aa3d4
commit a011de8476
2 changed files with 5 additions and 3 deletions

View File

@@ -107,6 +107,9 @@ function main_default_build_packages() {
overlayfs_wrapper "cleanup"
# Further packages require aggregation (BSPs use aggregated stuff, etc)
assert_requires_aggregation # Bombs if aggregation has not run
# create board support package
if [[ -n "${RELEASE}" && ! -f "${DEB_STORAGE}/${BSP_CLI_PACKAGE_FULLNAME}.deb" && "${REPOSITORY_INSTALL}" != *armbian-bsp-cli* ]]; then
LOG_SECTION="create_board_package" do_with_logging create_board_package

View File

@@ -1,14 +1,13 @@
# This does NOT run under the logging manager.
function full_build_packages_rootfs_and_image() {
assert_requires_aggregation # Bombs if aggregation has not run
main_default_build_packages # has its own logging sections # requires aggregation
# build rootfs, if not only kernel. Again, read "KERNEL_ONLY" as if it was "PACKAGES_ONLY"
if [[ "${KERNEL_ONLY}" != "yes" ]]; then
display_alert "Building image" "${BOARD}" "target-started"
build_rootfs_and_image # old "debootstrap-ng"; has its own logging sections.
assert_requires_aggregation # Bombs if aggregation has not run
build_rootfs_and_image # old "debootstrap-ng"; has its own logging sections.
display_alert "Done building image" "${BOARD}" "target-reached"
fi
}