armbian-next: `CLEAN_LEVEL=make-kernel` now does `git clean -xfd` instead, faster and 100% clean

This commit is contained in:
Ricardo Pardini 2023-01-09 22:46:33 +01:00
parent 4f743caab8
commit e6b1c4d875
No known key found for this signature in database
GPG Key ID: 3D38CA12A66C5D02
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ function kernel_maybe_clean() {
display_alert "Cleaning Kernel tree - CLEAN_LEVEL contains 'make-kernel'" "$LINUXSOURCEDIR" "info"
(
cd "${kernel_work_dir}" || exit_with_error "Can't cd to kernel_work_dir: ${kernel_work_dir}"
run_host_command_logged make ARCH="${ARCHITECTURE}" clean
run_host_command_logged git clean -xfdq # faster & more efficient than 'make clean'
)
else
display_alert "Not cleaning Kernel tree; use CLEAN_LEVEL=make-kernel if needed" "CLEAN_LEVEL=${CLEAN_LEVEL}" "debug"