mirror of
https://github.com/armbian/build.git
synced 2025-08-15 23:56:57 +02:00
- _told ya it would all make sense eventually..._ - introduce new, real, non-alias `rootfs` command in `cli-rootfs` -- this _only_ builds rootfs, nothing else - no more `main_default_build_single()`; instead `full_build_packages_rootfs_and_image()` - introduce `do_with_default_build()` wrapper, for things that need host prepared + aggregation to run - CLI-specific parts of `main_default_build_single()` moved to cli-build - put prepare/cleanup pair of `prepare_rootfs_build_params_and_trap()` and `trap_handler_cleanup_rootfs_and_image()` into new `trap-rootfs.sh` (this needs further splitting for the image part) - refactor `get_or_create_rootfs_cache_chroot_sdcard()` into `build_rootfs_only()`, `calculate_rootfs_cache_id()` - update library with new files
18 lines
701 B
Bash
18 lines
701 B
Bash
# This does NOT run under the logging manager.
|
|
function full_build_packages_rootfs_and_image() {
|
|
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.
|
|
display_alert "Done building image" "${BOARD}" "target-reached"
|
|
fi
|
|
}
|
|
|
|
function do_with_default_build() {
|
|
main_default_start_build # Has its own logging, prepares workdir, does prepare_host, aggregation, and
|
|
"${@}"
|
|
main_default_end_build
|
|
}
|