From e8edfc4a9c70ba6a2271a9415b5e9473796b8b93 Mon Sep 17 00:00:00 2001 From: zhao Date: Thu, 20 Mar 2025 00:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20toolchain/build.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhao --- toolchain/build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/toolchain/build.sh b/toolchain/build.sh index 6c8a670..87a4f8e 100644 --- a/toolchain/build.sh +++ b/toolchain/build.sh @@ -20,6 +20,17 @@ cp -f defconfig/mt7981-ax3000.config .config # Compile make -j$(nproc) +# Organize files +rm -rf build_dir/hostpkg +rm -rf staging_dir/hostpkg +rm -rf staging_dir/packages +rm -rf staging_dir/target-aarch64_cortex-a53_musl/host +rm -rf staging_dir/target-aarch64_cortex-a53_musl/packages +rm -rf staging_dir/target-aarch64_cortex-a53_musl/pkginfo +rm -rf staging_dir/target-aarch64_cortex-a53_musl/root-mediatek +find build_dir/target-aarch64_cortex-a53_musl -mindepth 1 -maxdepth 1 ! -name 'stamp' -exec rm -rf {} + + + # Create folder mkdir toolchain-cache