forked from garynych/hammerhead_kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean_kernel.sh
More file actions
37 lines (29 loc) · 885 Bytes
/
Copy pathclean_kernel.sh
File metadata and controls
37 lines (29 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
echo "***** Setting up Environment *****";
. ./env_setup.sh ${1} || exit 1;
echo "${bldcya}***** Cleaning in Progress *****${txtrst}";
make mrproper;
make clean;
rm -rf $INITRAMFS_TMP;
rm -f $KERNELDIR/r*.cpio
rm -f $KERNELDIR/ramdisk.gz
rm -f $KERNELDIR/zImage;
rm -f $KERNELDIR/out/zImage;
rm -f $KERNELDIR/out/boot.img;
rm -f $KERNELDIR/boot.img;
rm -f $KERNELDIR/dt.img;
rm -rf $KERNELDIR/out/system/lib/modules;
rm -rf $KERNELDIR/out/tmp_modules;
rm -f $KERNELDIR/out/Chaos-Kernel_*;
rm -rf $KERNELDIR/tmp;
find . -type f \( -iname \*.rej \
-o -iname \*.orig \
-o -iname \*.bkp \
-o -iname \*.ko \
-o -iname \*.c.BACKUP.[0-9]*.c \
-o -iname \*.c.BASE.[0-9]*.c \
-o -iname \*.c.LOCAL.[0-9]*.c \
-o -iname \*.c.REMOTE.[0-9]*.c \
-o -iname \*.org \) \
| parallel rm -fv {};
echo "${bldcya}***** Cleaning Done *****${txtrst}";