Skip to content

Commit

Permalink
remove unnecessary files after installing
Browse files Browse the repository at this point in the history
the sysroot is populated with unneeded (or even detrimental) files, and
the build artifacts are entirely redundant
  • Loading branch information
ArsenArsen committed Aug 13, 2023
1 parent 6c2abf5 commit b5f4b42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ This repository is used to generate a collection of

* Resulting image layout
=${ARCH}-linux-mlibc= toolchains are built and installed with a prefix of
=/usr/local= and configured with a sysroot in =/sysroots/${ARCH}-linux-mlibc/=,
in which mlibc and Linux headers are installed.
=/usr/local= and configured with a sysroot in =/sysroots/${ARCH}-linux-mlibc/=.
10 changes: 10 additions & 0 deletions build-many-tools.bash
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,18 @@ for target in "${targets[@]}"; do (
${MANYTOOLS_CONF_EXTRA}
make -O -j"${PARALLELISM}"
make -O -j"${PARALLELISM}" install
rm -rf "${sysroot}"/*
); done

# Clean up build dirs
for target in "${targets[@]}"; do
rm -rf "${target}"
done

# Clean up source dirs
rm -rf gcc binutils tool-src tool-checksums *.tar* config.{sub,guess} \
tool-checksums linux mlibc-src

# Local Variables:
# indent-tabs-mode: nil
# End:

0 comments on commit b5f4b42

Please sign in to comment.