Added initramfs cleanup

This commit is contained in:
SolidHal 2019-10-15 07:27:47 -07:00
parent 11bde90289
commit 985c51e919

View File

@ -38,7 +38,8 @@ clean:
@echo " clean_kernel - which deletes the untar'd kernel folder from build" @echo " clean_kernel - which deletes the untar'd kernel folder from build"
@echo " clean_ath - which deletes the untar'd ath9k driver folder from build" @echo " clean_ath - which deletes the untar'd ath9k driver folder from build"
@echo " clean_img - which deletes the built PrawnOS image, this is ran when make image is ran" @echo " clean_img - which deletes the built PrawnOS image, this is ran when make image is ran"
@echo " clean_fs - which deletes the built PrawnOS base image" @echo " clean_basefs - which deletes the built PrawnOS base image"
@echo " clean_initramfs - which deletes the built PrawnOS initramfs image that gets injected into the kernel"
@echo " clean_all - which does all of the above" @echo " clean_all - which does all of the above"
@echo " in most cases none of these need to be used manually as most cleanup steps are handled automatically" @echo " in most cases none of these need to be used manually as most cleanup steps are handled automatically"
@ -54,16 +55,21 @@ clean_ath:
clean_img: clean_img:
rm -f $(OUTNAME) rm -f $(OUTNAME)
.PHONY: clean_fs .PHONY: clean_basefs
clean_fs: clean_basefs:
rm -r $(BASE) rm -r $(BASE)
.PHONY: clean_initramfs
clean_initramfs:
rm -r build/PrawnOS-initramfs.cpio.gz
.PHONY: clean_all .PHONY: clean_all
clean_all: clean_all:
make clean_kernel make clean_kernel
make clean_ath make clean_ath
make clean_img make clean_img
make clean_fs make clean_fs
make clean_initramfs
.PHONY: kernel .PHONY: kernel
@ -99,7 +105,6 @@ image:
cp $(BASE) $(OUTNAME) cp $(BASE) $(OUTNAME)
make kernel_inject make kernel_inject
.PHONY: live_image .PHONY: live_image
live_image: live_image:
echo "TODO" echo "TODO"