unset ANDROID_HOST_OUT
export ANDROID_HOST_OUT=$(get_abs_build_var HOST_OUT)
- if [ -n "$ANDROID_CCACHE_DIR" ]; then
- export CCACHE_DIR=$ANDROID_CCACHE_DIR
- fi
-
# needed for building linux on MacOS
# TODO: fix the path
#export HOST_EXTRACFLAGS="-I "$T/system/kernel_headers/host_include
then
# if we can't find a product, try to grab it off the CM github
T=$(gettop)
- pushd $T > /dev/null
+ cd $T > /dev/null
vendor/cm/build/tools/roomservice.py $product
cd - > /dev/null
check_product $product
else
T=$(gettop)
- pushd $T > /dev/null
+ cd $T > /dev/null
vendor/cm/build/tools/roomservice.py $product true
cd - > /dev/null
fi