build: Add Qualcomm's helper macros from cm-11.0

 * This is used everywhere in Qualcomm's code. There's no reason we need
   to constantly replace it with uglier stuff in our Makefiles.