5 mkdir
-p "$HOME/.ccache"
7 grep -sq max_size
"$HOME/.ccache/ccache.conf" || \
8 echo "max_size = 10.0G" >> "$HOME/.ccache/ccache.conf"
10 grep -sq compiler_check
"$HOME/.ccache/ccache.conf" || \
11 echo "compiler_check = %compiler% -dumpmachine; %compiler% -dumpversion" >> "$HOME/.ccache/ccache.conf"
13 for dir
in $
(make --no-print-directory val.TOOLCHAIN_DIR val.STAGING_DIR val.STAGING_DIR_HOST V
=s |
grep staging_dir
/); do
14 if [ ! -L "$dir/ccache" ]; then
17 ln -vs "$HOME/.ccache" "$dir/ccache"
21 .
/staging_dir
/host
/bin
/ccache
-s 2>/dev
/null