Remove downloads in prefix_clean, remove repo tag in only in static_clean

This commit is contained in:
Wildan M 2026-03-01 03:29:48 +07:00
parent 700101f28b
commit d232299105
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
2 changed files with 5 additions and 4 deletions

View File

@ -25,16 +25,17 @@ PREFIX_CONFIG=CI=1 COOKBOOK_CLEAN_BUILD=true COOKBOOK_CLEAN_TARGET=false COOKBOO
prefix: $(PREFIX)/sysroot
# Remove prefix builds but retain downloaded binaries
# Remove prefix builds and downloads
prefix_clean:
rm -rf $(PREFIX)/sysroot $(PREFIX)/*-install
rm -rf $(PREFIX)
# Remove relibc in sysroot and all statically linked recipes
static_clean: | $(FSTOOLS_TAG)
$(MAKE) c.relibc
$(MAKE) c.base,base-initfs,extrautils,kernel,ion,pkgutils,redoxfs
$(MAKE) c.bash,luajit,gettext,openssl1,pcre2,sdl1,zstd,zlib,bzip2,xz
$(MAKE) c.bash,luajit,gettext,openssl1,openssl3,pcre2,sdl1,zstd,zlib,bzip2,xz
$(MAKE) c.expat,freetype2,libffi,libiconv,libjpeg,liborbital,libpng,libxml2,ncurses,ncursesw
rm -rf $(REPO_TAG)
$(PREFIX)/relibc-install: $(PREFIX)/clang-install $(PREFIX)/rust-install $(PREFIX)/gcc-install | $(FSTOOLS_TAG) $(CONTAINER_TAG)
ifeq ($(PODMAN_BUILD),1)

View File

@ -53,7 +53,7 @@ ifeq ($(PODMAN_BUILD),1)
$(PODMAN_RUN) make $@
else
$(REPO_BIN) clean relibc
rm -rf $(PREFIX)/relibc-install $(PREFIX)/sysroot $(REPO_TAG)
rm -rf $(PREFIX)/relibc-install $(PREFIX)/sysroot
@echo "\033[1;36;49mSysroot cleaned\033[0m"
endif