Cleanup some files during ct-ng build (flatpak)
This commit is contained in:
@@ -75,8 +75,16 @@ modules:
|
||||
tag: 620b909cd0713f68084378b63cf61b5232757b90
|
||||
- type: shell
|
||||
commands:
|
||||
# Make the build lighter:
|
||||
# don't generate debug symbols at all
|
||||
- sed -i 's/-O2 -g/-O2/' scripts/crosstool-NG.sh
|
||||
- sed -i 's/-g -O2/-O2/' scripts/build/cc/gcc.sh
|
||||
# Delete extracted sources when no longer needed
|
||||
- sed -i '/# Cleanup/a rm -r "$(readlink "${kernel_path}")"' scripts/build/kernel/linux.sh
|
||||
# Delete tarballs once extracted
|
||||
- sed -i '2228i CT_DoExecLog FILE rm "$(readlink -f "${file}")"' scripts/functions
|
||||
# Delete big test files
|
||||
- sed -i '/CT_ExtractPatch GCC/a CT_Pushd "${CT_SRC_DIR}/gcc/gcc/testsuite/";CT_DoExecLog ALL rm -rf $(ls -1 | grep -v selftests);CT_Popd' scripts/build/cc/gcc.sh
|
||||
cleanup:
|
||||
- '*'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user