8 if [[ ! $CCACHE_DIR ]];then
9 CCACHE_DIR="$build_root/.ccache"
11 ADD_TO_PATH="$build_root/tools/ccache-bin:$build_root/tools/bin"
13 # Construct build-config.mk
15 echo SOURCE_PATH = $wsroot > build-config.mk
17 echo Saving PATH settings in `pwd`/path_setup
18 echo Source this file later, as needed
22 export PATH=$ADD_TO_PATH:$PATH
23 export CCACHE_DIR=$CCACHE_DIR
26 # regenerate tools/ccache-bin
27 rm -rf tools/ccache-bin
28 mkdir -p tools/ccache-bin
30 if [ ! -f /usr/bin/ccache ] ; then
31 echo Please install ccache AYEC and re-run this script
37 if [ -f /usr/bin/ccache ] ; then
38 ln -s /usr/bin/ccache $c
47 echo Compile native tools
50 make V=0 is_build_tool=yes $tool-install