modify makefiles for qcom legacy