Remove source directory after building

This commit is contained in:
Aditya 2023-01-08 15:43:27 +05:30
parent 254b0813d1
commit 283c3067e6
4 changed files with 12 additions and 0 deletions

View file

@ -28,3 +28,5 @@ fi
make install make install
cd $LFS/sources
rm -rf binutils-2.39

View file

@ -67,3 +67,7 @@ fi
cd .. cd ..
cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \ cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h
cd $LFS/sources
rm -rf gcc-12.2.0

View file

@ -9,3 +9,7 @@ make mrproper
make headers make headers
find usr/include -type f ! -name '*.h' -delete find usr/include -type f ! -name '*.h' -delete
cp -rv usr/include $LFS/usr cp -rv usr/include $LFS/usr
cd $LFS/sources
rm -rf linux-5.19.2

View file

@ -43,3 +43,5 @@ sed '/RTLDLIST=/s@/usr@@g' -i $LFS/usr/bin/ldd
$LFS/tools/libexec/gcc/$LFS_TGT/12.2.0/install-tools/mkheaders $LFS/tools/libexec/gcc/$LFS_TGT/12.2.0/install-tools/mkheaders
cd $LFS/sources
rm -rf glibc-2.36