clone from CyanogenMod/andorid_build