live-bootstrap/steps/improve/clean_artifacts.sh
Gábor Stefanik 32138d13b9 Clean pre-Bash build artifacts before building the Linux kernel
All of these are archived, in a compressed form, in base.tar.bz2.
2024-02-17 15:32:02 +01:00

13 lines
348 B
Bash

# SPDX-FileCopyrightText: 2024 Gábor Stefanik <netrolller.3d@gmail.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Delete build artifacts to free up space for Linux kernel build
for pkg in $(ls "${SRCDIR}"); do
if [ -d "${SRCDIR}/${pkg}/build" ]; then
rm -rf "${SRCDIR}/${pkg}/build"
fi
done
rm -rf "/${ARCH_DIR}/artifact"